:root {
    --bm-primary: #754C29;
    --bm-primary-dark: #462D1A;
    --bm-accent: #FAE25C;
    --bm-accent-soft: #FCB851;
    --bm-warm: #CF7537;
    --bm-warm-dark: #B95A2C;
    --bm-surface: #FFDAA9;
    --bm-bg: #fffaf4;
    --bm-text: #4d3929;
    --bm-border: rgba(117, 76, 41, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --bm-bg: #120e0a;
    --bm-text: #f0e6dd;
    --bm-surface: #2d241c;
    --bm-border: rgba(250, 226, 92, 0.1);
    --bm-primary-dark: #f0e6dd;
    --bm-primary: #cf7537;
    --bs-body-bg: #120e0a;
    --bs-body-color: #f0e6dd;
}

body {
    background: radial-gradient(circle at top right, rgba(250, 226, 92, 0.08), transparent 22%), var(--bm-bg);
    color: var(--bm-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

[data-bs-theme="dark"] body {
    background: radial-gradient(circle at top right, rgba(117, 76, 41, 0.2), transparent 22%), #0a0806;
}

[data-bs-theme="dark"] .card, 
[data-bs-theme="dark"] .auth-card,
[data-bs-theme="dark"] .top-navbar,
[data-bs-theme="dark"] .header-bar,
[data-bs-theme="dark"] footer {
    background: rgba(30, 24, 18, 0.9) !important;
    border-color: rgba(255, 218, 169, 0.08) !important;
    color: #f0e6dd;
    backdrop-filter: blur(10px);
}

[data-bs-theme="dark"] .text-brown {
    color: #ffdaaa !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: #1e1812 !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #2d241c !important;
}

[data-bs-theme="dark"] .breadcrumb {
    background: rgba(117, 76, 41, 0.2);
}

[data-bs-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #1a1410 0%, #0a0806 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .sidebar-menu-item a:hover,
[data-bs-theme="dark"] .sidebar-menu-item.active a {
    background: rgba(255, 218, 169, 0.1);
}

[data-bs-theme="dark"] .nav-shortcut-btn {
    background: #1e1812 !important;
}

[data-bs-theme="dark"] .nav-shortcut-btn:hover {
    background: #2d241c !important;
}

[data-bs-theme="dark"] .dropdown-menu {
    background-color: #1e1812;
    border-color: #2d241c;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #f0e6dd;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #2d241c;
}

/* DataTables Dark Mode Fixes */
[data-bs-theme="dark"] .table {
    color: #f0e6dd;
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table thead th {
    background-color: rgba(117, 76, 41, 0.2);
    color: #ffdaaa;
}

[data-bs-theme="dark"] .page-link {
    background-color: #1e1812;
    border-color: #2d241c;
    color: #ffdaaa;
}

[data-bs-theme="dark"] .page-item.active .page-link {
    background-color: #754C29;
    border-color: #754C29;
}

[data-bs-theme="dark"] .dataTables_wrapper .dataTables_length select,
[data-bs-theme="dark"] .dataTables_wrapper .dataTables_filter input {
    background-color: #1e1812;
    border-color: #2d241c;
    color: #f0e6dd;
}

/* Form Controls Dark Mode */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #1e1812;
    border-color: rgba(255, 218, 169, 0.1);
    color: #f0e6dd;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #241d16;
    border-color: #754C29;
}

/* Modal Dark Mode */
[data-bs-theme="dark"] .modal-content {
    background-color: #1e1812;
    border-color: #2d241c;
    color: #f0e6dd;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: rgba(255, 218, 169, 0.05);
}

/* Image Tools Dark Mode */
[data-bs-theme="dark"] .upload-zone {
    background-color: #1e1812 !important;
    border-color: rgba(255, 218, 169, 0.1) !important;
}

[data-bs-theme="dark"] .input-group-text {
    background-color: #2d241c;
    border-color: rgba(255, 218, 169, 0.1);
    color: #ffdaaa;
}

[data-bs-theme="dark"] .preview-container {
    background-color: #0a0806 !important;
}

/* Sticky Notes Dark Mode */
[data-bs-theme="dark"] {
    --note-yellow: #454019;
    --note-peach : #4a341e;
    --note-green : #1e3a2a;
    --note-blue  : #1a2e3a;
    --note-pink  : #3d1d2e;
}

[data-bs-theme="dark"] .note-card {
    border-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .note-title {
    color: #ffdaaa;
}

[data-bs-theme="dark"] .note-content {
    color: #e0d5cb;
}

[data-bs-theme="dark"] .sn-title {
    color: #ffdaaa;
}

[data-bs-theme="dark"] .sn-count {
    background: rgba(117, 76, 41, 0.4);
    color: #ffdaaa;
}

/* Override inline background for icons in dark mode */
[data-bs-theme="dark"] div[style*="background: rgba(117, 76, 41, 0.08)"],
[data-bs-theme="dark"] div[style*="background: rgba(207, 117, 55, 0.08)"],
[data-bs-theme="dark"] div[style*="background: rgba(220, 53, 69, 0.08)"] {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Kanban Dark Mode Fixes */
[data-bs-theme="dark"] .kanban-column {
    background: rgba(45, 36, 28, 0.4);
    border-color: rgba(255, 218, 169, 0.05);
}

[data-bs-theme="dark"] .kanban-card {
    background: #1e1812;
    border-color: rgba(255, 218, 169, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .kanban-card-title {
    color: #ffdaaa;
}

[data-bs-theme="dark"] .kanban-card-meta {
    border-color: rgba(255, 255, 255, 0.05);
    color: #a38d7c;
}

[data-bs-theme="dark"] .kanban-card-assignee {
    background: rgba(207, 117, 55, 0.15);
    color: #f7b084;
}

/* Custom Text and Styles */
.text-brown {
    color: var(--bm-primary-dark) !important;
    font-weight: 700;
}

.text-warm {
    color: var(--bm-warm) !important;
}

/* Beautiful Cards */
.card, .auth-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--bm-border);
    border-radius: 24px !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(70, 45, 26, 0.04);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(70, 45, 26, 0.08);
}

/* Custom Buttons */
.btn-bashmonkey {
    background: linear-gradient(135deg, var(--bm-accent), var(--bm-accent-soft)) !important;
    color: var(--bm-primary-dark) !important;
    border: none !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 14px rgba(252, 184, 81, 0.24) !important;
    transition: var(--transition-smooth) !important;
}

.btn-bashmonkey:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 184, 81, 0.35) !important;
    filter: brightness(1.05);
}

.btn-bashmonkey:active {
    transform: translateY(0);
}

.btn-secondary {
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    transition: var(--transition-smooth) !important;
}

/* Header Bar for Admin Dashboard */
.header-bar {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--bm-border);
    border-radius: 24px;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(70, 45, 26, 0.03);
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-title h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bm-primary-dark);
}

/* Admin Dashboard Summary Cards */
.card-summary {
    border: 1px solid var(--bm-border) !important;
    transition: var(--transition-smooth);
    border-radius: 20px !important;
}

.card-summary i {
    color: var(--bm-warm);
    transition: var(--transition-smooth);
}

.card-summary:hover i {
    transform: scale(1.1) rotate(5deg);
}

.card-summary h6 {
    font-weight: 700;
    color: var(--bm-primary-dark);
    margin-top: 8px;
    font-size: 0.95rem;
}

.card-summary p {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bm-primary-dark);
    margin-bottom: 0;
}

.stats-row {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--bm-text);
    gap: 2px;
    margin-top: 8px;
}

/* Menu items for Admin Dashboard */
.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.menu-container a {
    background: #fff;
    border: 1px solid var(--bm-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    color: var(--bm-primary-dark);
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(70, 45, 26, 0.02);
}

.menu-container a i {
    color: var(--bm-warm);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
}

.menu-container a:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(70, 45, 26, 0.08);
    background: linear-gradient(135deg, #fff, rgba(255, 218, 169, 0.15));
}

.menu-container a:hover i {
    transform: scale(1.15);
}

/* Breadcrumbs */
.breadcrumb {
    background: rgba(255, 218, 169, 0.15);
    padding: 10px 20px;
    border-radius: 999px;
    display: inline-flex;
    margin-bottom: 24px;
}

.breadcrumb-item a {
    color: var(--bm-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.breadcrumb-item a:hover {
    color: var(--bm-warm);
}

.breadcrumb-item.active {
    color: var(--bm-primary-dark);
    font-weight: 600;
}

/* Inputs and Forms */
.form-control, .form-select, .input-group-text {
    border-radius: 12px !important;
    border: 1px solid var(--bm-border);
    padding: 10px 16px;
    font-size: 0.95rem;
    background-color: #fff;
    transition: var(--transition-smooth);
}

.form-control:focus, .form-select:focus {
    border-color: var(--bm-warm);
    box-shadow: 0 0 0 3px rgba(207, 117, 55, 0.15);
    background-color: #fff;
}

.input-group-text {
    background-color: rgba(255, 218, 169, 0.15);
    color: var(--bm-primary);
    font-weight: 600;
}

/* ---- Premium Form Field System ---- */
.bm-form-group {
    margin-bottom: 20px;
}

.bm-form-group .bm-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bm-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    padding-left: 2px;
}

.bm-form-group .bm-label i {
    margin-right: 5px;
    color: var(--bm-warm);
    font-size: 0.85rem;
}

.bm-form-group .input-group {
    border: 1px solid var(--bm-border);
    border-radius: 14px !important;
    overflow: hidden;
    background: #fff;
    transition: var(--transition-smooth);
}

.bm-form-group .input-group:focus-within {
    border-color: var(--bm-warm);
    box-shadow: 0 0 0 3px rgba(207, 117, 55, 0.12);
}

.bm-form-group .input-group .input-group-text {
    border: none !important;
    background: rgba(255, 218, 169, 0.12);
    border-radius: 0 !important;
    padding: 10px 14px;
    min-width: 44px;
    justify-content: center;
}

.bm-form-group .input-group .form-control,
.bm-form-group .input-group .form-select {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 11px 16px;
}

.bm-form-group .input-group .form-control:focus,
.bm-form-group .input-group .form-select:focus {
    box-shadow: none !important;
}

/* Eye toggle button inside input-group */
.bm-form-group .input-group .btn-eye-toggle {
    border: none !important;
    border-left: 1px solid var(--bm-border) !important;
    border-radius: 0 !important;
    background: rgba(255, 218, 169, 0.08);
    color: var(--bm-primary);
    padding: 10px 14px;
    transition: var(--transition-smooth);
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bm-form-group .input-group .btn-eye-toggle:hover {
    background: rgba(255, 218, 169, 0.22);
    color: var(--bm-warm);
}

/* Standalone selects (not inside input-group) */
.bm-form-group .form-select {
    border-radius: 14px !important;
    padding: 11px 16px;
    border: 1px solid var(--bm-border);
}

/* Password strength indicator */
.bm-strength-bar {
    display: block;
    font-size: 0.8rem;
    padding: 4px 2px 0 2px;
    font-weight: 600;
}

/* Form section dividers */
.bm-form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--bm-primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bm-form-divider::before,
.bm-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bm-border), transparent);
}

/* Action buttons at form bottom */
.bm-form-actions {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Table Style Improvements */
.table-responsive {
    border-radius: 20px;
    overflow-x: auto;
    border: 1px solid var(--bm-border);
    -webkit-overflow-scrolling: touch;
}

/* Styled scrollbar for table container */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(117, 76, 41, 0.03);
    border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(117, 76, 41, 0.15);
    border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(117, 76, 41, 0.25);
}


.table {
    margin-bottom: 0 !important;
}

.table thead th {
    background-color: var(--bm-primary-dark) !important;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 16px;
    border-bottom: none;
}

.table td {
    padding: 16px;
    color: var(--bm-text);
    border-bottom: 1px solid rgba(117, 76, 41, 0.08);
}

.table tbody tr:hover {
    background-color: rgba(255, 218, 169, 0.1) !important;
}

/* Custom styles for detail listings */
.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(117, 76, 41, 0.06);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--bm-primary-dark);
}

.detail-value {
    color: var(--bm-text);
}

/* ==========================================================================
   SIDEBAR & LAYOUT SYSTEM
   ========================================================================== */
.admin-layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--bm-primary-dark) 0%, #352112 100%);
    color: #fffaf4;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    border-right: 1px solid rgba(255, 218, 169, 0.1);
    transition: var(--transition-smooth);
    overflow-y: auto;
}

/* Styled scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}


.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 218, 169, 0.15);
    text-decoration: none;
    color: #fff;
}

.sidebar-brand img {
    height: 40px;
    width: auto;
}

.sidebar-brand span {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--bm-accent);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 14px;
    color: #ffdcb3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.sidebar-menu-item a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-menu-item a:hover {
    background: rgba(255, 218, 169, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-menu-item.active a {
    background: linear-gradient(135deg, var(--bm-accent), var(--bm-accent-soft));
    color: var(--bm-primary-dark);
    box-shadow: 0 4px 14px rgba(252, 184, 81, 0.2);
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 218, 169, 0.1);
    font-size: 0.8rem;
    color: rgba(255, 218, 169, 0.6);
}

.main-content-wrapper {
    margin-left: 280px;
    width: calc(100% - 280px);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bm-bg);
    transition: var(--transition-smooth);
}

.sidebar-collapsed .sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
    border-right: none;
}

.sidebar-collapsed .main-content-wrapper {
    margin-left: 0;
    width: 100%;
}

.top-navbar {
    height: 70px;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--bm-border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.content-body {
    padding: 32px;
    flex-grow: 1;
}

/* Mobile Toggle Button */
.sidebar-toggle {
    display: block;
    background: rgba(117, 76, 41, 0.05);
    border: none;
    color: var(--bm-primary-dark);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.sidebar-toggle:hover {
    background: rgba(117, 76, 41, 0.1);
    color: var(--bm-warm);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
}

/* ==========================================================================
   TRELLO KANBAN BOARD STYLES
   ========================================================================== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .kanban-board {
        grid-template-columns: 1fr;
    }
}

.kanban-column {
    background: rgba(117, 76, 41, 0.04);
    border: 1px solid var(--bm-border);
    border-radius: 20px;
    padding: 16px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kanban-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-bottom: 2px solid var(--bm-border);
    margin-bottom: 8px;
}

.kanban-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bm-primary-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kanban-task-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    min-height: 500px;
}

.kanban-card {
    background: #ffffff;
    border: 1px solid var(--bm-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(70, 45, 26, 0.02);
    cursor: grab;
    transition: var(--transition-smooth);
}

.kanban-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 18px rgba(70, 45, 26, 0.05);
    border-color: var(--bm-warm);
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bm-primary-dark);
    margin-bottom: 8px;
}

.kanban-card-desc {
    font-size: 0.85rem;
    color: var(--bm-text);
    opacity: 0.85;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kanban-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #8c725e;
    border-top: 1px solid rgba(117, 76, 41, 0.06);
    padding-top: 10px;
    margin-top: 10px;
}

.kanban-card-assignee {
    font-weight: 600;
    background: rgba(207, 117, 55, 0.08);
    color: var(--bm-warm-dark);
    padding: 4px 10px;
    border-radius: 999px;
}

.kanban-card-creator {
    font-style: italic;
}

/* Dragging visual cues */
.kanban-card.dragging {
    opacity: 0.5;
    border: 2px dashed var(--bm-warm);
    background: rgba(255, 218, 169, 0.1);
}

