/* ===================================
   THEME SYSTEM - Light & Dark Mode
   =================================== */

/* Root Variables - Light Theme (Default) */
:root {
    /* ===================================
       OLIVE GREEN COLOR PALETTE
       =================================== */

    /* Primary Olive Green Shades */
    --olive-primary: #6B8E23;        /* Main olive green */
    --olive-light: #8AB032;          /* Lighter olive */
    --olive-lighter: #A3C14A;        /* Very light olive */
    --olive-dark: #5A7A1E;           /* Darker olive */
    --olive-darker: #4A6619;         /* Very dark olive */
    --olive-deepest: #3A5214;        /* Deepest olive */

    /* Olive Tints (for backgrounds) */
    --olive-tint-10: #F5F8EE;        /* 10% olive tint */
    --olive-tint-20: #EBF1DD;        /* 20% olive tint */
    --olive-tint-30: #E1EACC;        /* 30% olive tint */
    --olive-tint-50: #D4E7B8;        /* 50% olive tint */

    /* Olive with transparency */
    --olive-alpha-05: rgba(107, 142, 35, 0.05);
    --olive-alpha-08: rgba(107, 142, 35, 0.08);
    --olive-alpha-10: rgba(107, 142, 35, 0.1);
    --olive-alpha-15: rgba(107, 142, 35, 0.15);
    --olive-alpha-20: rgba(107, 142, 35, 0.2);
    --olive-alpha-25: rgba(107, 142, 35, 0.25);
    --olive-alpha-30: rgba(107, 142, 35, 0.3);
    --olive-alpha-40: rgba(107, 142, 35, 0.4);
    --olive-alpha-50: rgba(107, 142, 35, 0.5);

    /* RGB values for calculations */
    --olive-primary-rgb: 107, 142, 35;

    /* ===================================
       WARM BEIGE COLOR PALETTE (Secondary) - Enhanced for Light Theme
       =================================== */

    /* Enhanced Beige Shades with Olive Tint for Better Contrast */
    --beige-primary: #f0f5e8;        /* Main beige - card backgrounds (olive-tinted) */
    --beige-light: #f8faf5;          /* Lighter - subtle highlights */
    --beige-dark: #d8e5c8;           /* Darker - borders, dividers */
    --beige-accent: #c8d8b5;         /* Rich beige - hover states */
    --beige-hover: #eef3e5;          /* Interactive hover */
    --beige-muted: #e5edd8;          /* Muted beige */

    /* Beige with transparency */
    --beige-alpha-10: rgba(245, 230, 211, 0.1);
    --beige-alpha-20: rgba(245, 230, 211, 0.2);
    --beige-alpha-30: rgba(245, 230, 211, 0.3);
    --beige-alpha-50: rgba(245, 230, 211, 0.5);

    /* Combined olive/beige effects */
    --olive-soft: rgba(107, 142, 35, 0.1);     /* 10% olive backgrounds */
    --olive-shadow: rgba(107, 142, 35, 0.3);   /* Olive shadows */
    --beige-shadow: rgba(245, 230, 211, 0.4);  /* Beige shadows */

    /* ===================================
       LIGHT THEME COLORS
       =================================== */

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #F5F8EE;         /* Light olive tint */
    --bg-tertiary: #EBF1DD;          /* Medium olive tint */
    --bg-card: #ffffff;
    --bg-hover: #F0F4E8;             /* Olive-tinted hover */
    --bg-accent: #E8F3D6;            /* Accent background */

    /* Text Colors */
    --text-primary: #2C3E0F;         /* Dark olive for text */
    --text-secondary: #5A7A1E;       /* Medium olive for secondary text */
    --text-muted: #7A9438;           /* Muted olive */
    --text-inverse: #ffffff;

    /* Border Colors */
    --border-color: #D4E7B8;         /* Light olive border */
    --border-light: #E1EACC;         /* Lighter olive border */
    --border-dark: #8AB032;          /* Darker olive border */

    /* Brand Colors - Olive Green as Primary */
    --brand-primary: #6B8E23;        /* Olive Green Primary */
    --brand-primary-hover: #5A7A1E;  /* Darker on hover */
    --brand-primary-active: #4A6619; /* Even darker on active */
    --brand-primary-light: #8AB032;  /* Light variant */
    --brand-primary-lighter: #A3C14A; /* Lighter variant */

    --brand-success: #6B8E23;        /* Use olive for success */
    --brand-success-hover: #5A7A1E;
    --brand-danger: #C85A54;         /* Muted red */
    --brand-danger-hover: #B44A44;
    --brand-warning: #D4A017;        /* Earthy gold */
    --brand-warning-hover: #B8900F;
    --brand-info: #5B9AA0;           /* Muted teal */
    --brand-info-hover: #4A8289;

    /* Brand RGB triplets for rgba() usage */
    --brand-info-rgb: 91, 154, 160;
    --brand-success-rgb: 107, 142, 35;
    --brand-warning-rgb: 212, 160, 23;
    --brand-danger-rgb: 200, 90, 84;

    /* Legacy green (now points to olive) */
    --brand-green: #6B8E23;
    --brand-green-dark: #5A7A1E;

    /* Shadow - with olive tint */
    --shadow-sm: 0 0.125rem 0.25rem rgba(107, 142, 35, 0.08);
    --shadow: 0 0.5rem 1rem rgba(107, 142, 35, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(107, 142, 35, 0.2);
    --shadow-olive: 0 4px 12px rgba(107, 142, 35, 0.15);

    /* Input Colors */
    --input-bg: #ffffff;
    --input-border: #D4E7B8;         /* Light olive border */
    --input-text: #2C3E0F;           /* Dark olive text */
    --input-placeholder: #7A9438;     /* Muted olive placeholder */
    --input-focus-border: #6B8E23;   /* Olive focus */
    --input-focus-shadow: rgba(107, 142, 35, 0.25);

    /* Link Colors */
    --link-color: #6B8E23;           /* Olive links */
    --link-hover: #5A7A1E;           /* Darker olive on hover */
    --link-active: #4A6619;          /* Even darker on active */

    /* Navbar */
    --navbar-bg: #6B8E23;            /* Olive Green */
    --navbar-text: #ffffff;          /* White text for contrast */
    --navbar-border: #5A7A1E;        /* Dark olive border */
    --navbar-hover: #5A7A1E;         /* Dark olive hover */

    /* Sidebar */
    --sidebar-bg: #F5F8EE;           /* Light olive tint */
    --sidebar-text: #2C3E0F;
    --sidebar-hover: #F0F4E8;
    --sidebar-active: #EBF1DD;

    /* Post/Card */
    --post-bg: #ffffff;
    --post-border: #D4E7B8;          /* Light olive border */
    --post-hover: #F5F8EE;           /* Light olive tint on hover */

    /* Comment */
    --comment-bg: #F5F8EE;           /* Light olive tint */
    --comment-border: #E1EACC;       /* Medium olive tint */

    /* Button */
    --btn-text: #ffffff;
    --btn-primary-bg: #6B8E23;
    --btn-primary-hover: #5A7A1E;
    --btn-primary-active: #4A6619;
    --btn-primary-shadow: rgba(107, 142, 35, 0.3);

    /* Scrollbar */
    --scrollbar-track: #F5F8EE;      /* Light olive tint */
    --scrollbar-thumb: #8AB032;      /* Light olive */
    --scrollbar-thumb-hover: #6B8E23; /* Primary olive */

    /* ===================================
       SWEETALERT2 CUSTOM VARIABLES
       =================================== */
    --swal-bg: #ffffff;
    --swal-text: #2C3E0F;
    --swal-title: #2C3E0F;
    --swal-confirm-bg: #6B8E23;
    --swal-confirm-hover: #5A7A1E;
    --swal-cancel-bg: #C85A54;
    --swal-cancel-hover: #B44A44;
    --swal-border: #D4E7B8;
    --swal-icon-success: #6B8E23;
    --swal-icon-error: #C85A54;
    --swal-icon-warning: #D4A017;
    --swal-icon-info: #5B9AA0;

    /* ===================================
       STAR RATING COLORS
       =================================== */
    --star-filled: #D4A017;          /* Gold for filled stars */
    --star-empty: #D4E7B8;           /* Light olive for empty stars */
    --star-hover: #E5B82A;           /* Brighter gold on hover */
    --star-olive-filled: #6B8E23;    /* Olive alternative for filled */
    --star-olive-empty: #E1EACC;     /* Light olive for empty */

    /* ===================================
       MEDAL/RANKING COLORS
       =================================== */
    --medal-gold: #FFD700;
    --medal-gold-light: #ffed4e;
    --medal-gold-shadow: rgba(255, 215, 0, 0.3);
    --medal-silver: #C0C0C0;
    --medal-silver-light: #e8e8e8;
    --medal-silver-shadow: rgba(192, 192, 192, 0.3);
    --medal-bronze: #CD7F32;
    --medal-bronze-light: #e39760;
    --medal-bronze-shadow: rgba(205, 127, 50, 0.3);
    --rank-1: #FFD700;
    --rank-2: #C0C0C0;
    --rank-3: #CD7F32;
    --rank-default: #6B8E23;

    /* ===================================
       SHORTHAND ALIASES (For convenience)
       =================================== */
    --card: var(--bg-card);
    --primary: var(--brand-primary);
    --success: var(--brand-success);
    --danger: var(--brand-danger);
    --warning: var(--brand-warning);
    --info: var(--brand-info);
}

/* Dark Theme */
[data-theme="dark"] {
    /* ===================================
       DARK MODE OLIVE GREEN PALETTE
       =================================== */

    /* Enhanced Olive for Dark Backgrounds */
    --olive-primary: #9AC136;        /* Bright olive for visibility */
    --olive-light: #B0D157;          /* Lighter bright olive */
    --olive-lighter: #C6E178;        /* Very light olive */
    --olive-dark: #8AB032;           /* Medium olive */
    --olive-darker: #7A9F2E;         /* Darker olive */
    --olive-deepest: #6B8E23;        /* Deep olive */

    /* Olive Tints for Dark Backgrounds */
    --olive-tint-10: rgba(154, 193, 54, 0.1);
    --olive-tint-20: rgba(154, 193, 54, 0.2);
    --olive-tint-30: rgba(154, 193, 54, 0.3);
    --olive-tint-50: rgba(154, 193, 54, 0.5);

    /* Olive with transparency for dark mode */
    --olive-alpha-05: rgba(154, 193, 54, 0.05);
    --olive-alpha-08: rgba(154, 193, 54, 0.08);
    --olive-alpha-10: rgba(154, 193, 54, 0.1);
    --olive-alpha-15: rgba(154, 193, 54, 0.15);
    --olive-alpha-20: rgba(154, 193, 54, 0.2);
    --olive-alpha-25: rgba(154, 193, 54, 0.25);
    --olive-alpha-30: rgba(154, 193, 54, 0.3);
    --olive-alpha-40: rgba(154, 193, 54, 0.4);
    --olive-alpha-50: rgba(154, 193, 54, 0.5);

    /* RGB values */
    --olive-primary-rgb: 154, 193, 54;

    /* ===================================
       WARM BEIGE COLOR PALETTE (Secondary) - Dark Mode
       =================================== */

    /* Dark Warm Beige Shades */
    --beige-primary: #2A2520;        /* Dark warm beige */
    --beige-light: #3A3530;          /* Lighter dark beige */
    --beige-dark: #1A1510;           /* Deepest beige-black */
    --beige-accent: #4A4035;         /* Accent beige */
    --beige-hover: #3F362E;          /* Hover state */
    --beige-muted: #352F28;          /* Muted dark beige */

    /* Beige with transparency */
    --beige-alpha-10: rgba(42, 37, 32, 0.1);
    --beige-alpha-20: rgba(42, 37, 32, 0.2);
    --beige-alpha-30: rgba(42, 37, 32, 0.3);
    --beige-alpha-50: rgba(42, 37, 32, 0.5);

    /* Combined olive/beige effects */
    --olive-soft: rgba(154, 193, 54, 0.15);    /* Subtle bg for dark mode */
    --olive-shadow: rgba(154, 193, 54, 0.4);   /* Glows */
    --beige-shadow: rgba(42, 37, 32, 0.6);     /* Dark beige shadow */

    /* ===================================
       DARK THEME COLORS
       =================================== */

    /* Background Colors - Dark with olive undertones */
    --bg-primary: #0F1410;           /* Very dark olive-black */
    --bg-secondary: #1A1F16;         /* Dark olive-gray */
    --bg-tertiary: #252C20;          /* Medium dark olive */
    --bg-card: #1A1F16;              /* Card background */
    --bg-hover: #2A3125;             /* Olive-tinted hover */
    --bg-accent: #323A2B;            /* Accent background */

    /* Text Colors - Bright for contrast */
    --text-primary: #E8F1D5;         /* Very light olive-white */
    --text-secondary: #B0D157;       /* Bright olive */
    --text-muted: #8AB032;           /* Muted bright olive */
    --text-inverse: #0F1410;         /* Dark background color */

    /* Border Colors - Subtle olive tints */
    --border-color: #3A4432;         /* Olive-tinted border */
    --border-light: #2A3125;         /* Light olive border */
    --border-dark: #4A5542;          /* Darker olive border */

    /* Brand Colors - Bright Olive as Primary */
    --brand-primary: #9AC136;        /* Bright Olive Primary */
    --brand-primary-hover: #B0D157;  /* Brighter on hover */
    --brand-primary-active: #C6E178; /* Brightest on active */
    --brand-primary-light: #8AB032;  /* Darker variant */
    --brand-primary-lighter: #7A9F2E; /* Even darker variant */

    --brand-success: #9AC136;        /* Bright olive for success */
    --brand-success-hover: #B0D157;
    --brand-danger: #E76F51;         /* Muted warm red */
    --brand-danger-hover: #F28B73;
    --brand-warning: #F4A261;        /* Warm orange */
    --brand-warning-hover: #F6B47D;
    --brand-info: #7FB3D5;           /* Muted blue */
    --brand-info-hover: #9BC4E0;

    /* Brand RGB triplets for rgba() usage */
    --brand-info-rgb: 127, 179, 213;
    --brand-success-rgb: 154, 193, 54;
    --brand-warning-rgb: 244, 162, 97;
    --brand-danger-rgb: 231, 111, 81;

    /* Legacy green (now points to olive) */
    --brand-green: #9AC136;
    --brand-green-dark: #8AB032;

    /* Shadow - with olive glow */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.6);
    --shadow-olive: 0 4px 16px rgba(154, 193, 54, 0.2);

    /* Input Colors */
    --input-bg: #1A1F16;             /* Dark olive-gray */
    --input-border: #3A4432;         /* Olive-tinted border */
    --input-text: #E8F1D5;           /* Light olive-white */
    --input-placeholder: #8AB032;    /* Muted bright olive */
    --input-focus-border: #9AC136;   /* Bright olive focus */
    --input-focus-shadow: rgba(154, 193, 54, 0.3);

    /* Link Colors */
    --link-color: #9AC136;           /* Bright olive links */
    --link-hover: #B0D157;           /* Brighter on hover */
    --link-active: #C6E178;          /* Brightest on active */

    /* Navbar */
    --navbar-bg: #2A3125;            /* Dark Olive */
    --navbar-text: #ffffff;          /* White text */
    --navbar-border: #3A4432;        /* Olive-tinted border */
    --navbar-hover: #3A4432;         /* Olive-tinted hover */

    /* Sidebar */
    --sidebar-bg: #1F2519;           /* Dark olive background */
    --sidebar-text: #E8F1D5;
    --sidebar-hover: #2A3125;
    --sidebar-active: #323A2B;

    /* Post/Card */
    --post-bg: #1A1F16;              /* Dark olive-gray */
    --post-border: #3A4432;          /* Olive-tinted border */
    --post-hover: #252C20;           /* Medium dark olive on hover */

    /* Comment */
    --comment-bg: #0F1410;           /* Very dark olive-black */
    --comment-border: #2A3125;       /* Light olive border */

    /* Button */
    --btn-text: #0F1410;             /* Dark text for bright buttons */
    --btn-primary-bg: #9AC136;
    --btn-primary-hover: #B0D157;
    --btn-primary-active: #C6E178;
    --btn-primary-shadow: rgba(154, 193, 54, 0.4);

    /* Scrollbar */
    --scrollbar-track: #1A1F16;      /* Dark olive-gray */
    --scrollbar-thumb: #4A5542;      /* Medium olive */
    --scrollbar-thumb-hover: #9AC136; /* Bright olive on hover */

    /* ===================================
       SWEETALERT2 CUSTOM VARIABLES - DARK MODE
       =================================== */
    --swal-bg: #1A1F16;
    --swal-text: #E8F1D5;
    --swal-title: #E8F1D5;
    --swal-confirm-bg: #9AC136;
    --swal-confirm-hover: #B0D157;
    --swal-cancel-bg: #E76F51;
    --swal-cancel-hover: #F28B73;
    --swal-border: #3A4432;
    --swal-icon-success: #9AC136;
    --swal-icon-error: #E76F51;
    --swal-icon-warning: #F4A261;
    --swal-icon-info: #7FB3D5;

    /* ===================================
       STAR RATING COLORS - DARK MODE
       =================================== */
    --star-filled: #F4A261;          /* Warm gold for dark mode */
    --star-empty: #3A4432;           /* Dark olive for empty stars */
    --star-hover: #F6B47D;           /* Brighter on hover */
    --star-olive-filled: #9AC136;    /* Bright olive for filled */
    --star-olive-empty: #2A3125;     /* Dark olive for empty */

    /* ===================================
       MEDAL/RANKING COLORS - DARK MODE
       =================================== */
    --medal-gold: #FFD700;
    --medal-gold-light: #ffed4e;
    --medal-gold-shadow: rgba(255, 215, 0, 0.4);
    --medal-silver: #D4D4D4;
    --medal-silver-light: #ececec;
    --medal-silver-shadow: rgba(212, 212, 212, 0.4);
    --medal-bronze: #E5A040;
    --medal-bronze-light: #f0b85a;
    --medal-bronze-shadow: rgba(229, 160, 64, 0.4);
    --rank-1: #FFD700;
    --rank-2: #D4D4D4;
    --rank-3: #E5A040;
    --rank-default: #9AC136;

    /* ===================================
       SHORTHAND ALIASES (For convenience)
       =================================== */
    --card: var(--bg-card);
    --primary: var(--brand-primary);
    --success: var(--brand-success);
    --danger: var(--brand-danger);
    --warning: var(--brand-warning);
    --info: var(--brand-info);
}

/* ===================================
   APPLY THEME TO ELEMENTS
   =================================== */

/* Body */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    border-color: var(--navbar-border) !important;
    color: var(--navbar-text) !important;
}

.navbar-brand,
.navbar .nav-link {
    color: var(--navbar-text) !important;
}

.navbar .nav-link:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* Ensure dropdown items inside navbar use proper theme colors - override navbar text */
.navbar .dropdown-menu {
    background-color: var(--bg-card) !important;
}

.navbar .dropdown-menu .dropdown-item {
    color: var(--text-primary) !important;
    background-color: transparent;
}

.navbar .dropdown-menu .dropdown-item:hover {
    color: var(--olive-primary) !important;
    background: rgba(107, 142, 35, 0.1) !important;
}

.navbar .dropdown-menu .dropdown-header {
    color: var(--text-primary) !important;
}

.navbar .dropdown-menu .text-muted {
    color: var(--text-muted) !important;
}

.navbar .nav-icon i,
.navbar .text-green {
    color: var(--navbar-text) !important;
}

.navbar .nav-icon:hover i {
    opacity: 0.8;
}

/* Cards - Enhanced Light Theme */
.card {
    background: linear-gradient(135deg, #ffffff 0%, var(--beige-light) 100%) !important;
    border-left: 4px solid var(--olive-primary) !important;
    border-top: 2px solid var(--beige-dark) !important;
    border-right: 2px solid var(--beige-dark) !important;
    border-bottom: 2px solid var(--beige-dark) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-left-color: #5a7a1f !important;
    border-color: #c8d8b5 !important;
    box-shadow: 0 12px 28px rgba(107, 142, 35, 0.15), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.card-body {
    color: var(--text-primary) !important;
}

.card-header {
    background: linear-gradient(135deg, #f5f8f0 0%, #eef3e5 100%) !important;
    border-color: var(--beige-dark) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Dark Mode Card Override */
[data-theme="dark"] .card {
    background: linear-gradient(135deg, #1a1f1a 0%, #151a15 100%) !important;
    border-left: 4px solid var(--olive-primary) !important;
    border-top: 2px solid #2a352a !important;
    border-right: 2px solid #2a352a !important;
    border-bottom: 2px solid #2a352a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card:hover {
    border-left-color: var(--olive-light) !important;
    border-color: #3a453a !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .card-header {
    background: linear-gradient(135deg, #1f251f 0%, #1a1f1a 100%) !important;
    border-color: #2a352a !important;
    color: var(--text-primary) !important;
}

/* Stat Cards - Enhanced Light Theme */
.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--beige-light) 30%, var(--beige-primary) 100%) !important;
    border-left: 5px solid var(--olive-primary) !important;
    border-top: 1px solid var(--beige-dark) !important;
    border-right: 1px solid var(--beige-dark) !important;
    border-bottom: 1px solid var(--beige-dark) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Dark Mode Stat Card Override */
[data-theme="dark"] .stat-card {
    background: linear-gradient(135deg, #1a1f1a 0%, #151a15 50%, #1f251f 100%) !important;
    border-top: 1px solid #2a352a !important;
    border-right: 1px solid #2a352a !important;
    border-bottom: 1px solid #2a352a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .stat-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: #3a453a !important;
}

[data-theme="dark"] .stat-card .icon {
    background: linear-gradient(135deg, rgba(154, 193, 54, 0.2) 0%, rgba(154, 193, 54, 0.1) 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(107, 142, 35, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(107, 142, 35, 0.18), 0 4px 8px rgba(0, 0, 0, 0.06);
    border-left-width: 6px !important;
    border-color: #c8d8b5 !important;
}

.stat-card .icon {
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.12) 0%, rgba(107, 142, 35, 0.06) 100%);
    color: var(--olive-primary);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(107, 142, 35, 0.12);
}

.stat-card:hover .icon {
    background: linear-gradient(135deg, #7a9a28 0%, var(--olive-primary) 100%);
    color: white;
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(107, 142, 35, 0.3);
}

/* Offcanvas (Sidebar) */
.offcanvas {
    background-color: var(--sidebar-bg) !important;
    color: var(--sidebar-text) !important;
}

.offcanvas-header {
    border-color: var(--border-color) !important;
}

.offcanvas-title {
    color: var(--text-primary) !important;
}

/* Nav Links */
.nav-link {
    color: var(--text-primary) !important;
}

.nav-link:hover {
    color: var(--brand-primary) !important;
    background-color: var(--bg-hover) !important;
}

/* Forms - Theme Aware */
.form-control,
.form-select {
    background-color: var(--input-bg) !important;
    border: 2px solid var(--beige-dark) !important;
    border-radius: 8px !important;
    color: var(--input-text) !important;
    transition: all 0.25s ease;
}

.form-control:hover:not(:focus),
.form-select:hover:not(:focus) {
    border-color: var(--border-dark) !important;
    background-color: var(--bg-hover) !important;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-hover) !important;
    border-color: var(--olive-primary) !important;
    color: var(--input-text) !important;
    box-shadow: 0 0 0 4px var(--input-focus-shadow) !important;
    outline: none;
}

/* Select Dropdowns */
.form-select {
    cursor: pointer;
}

.form-select:hover {
    cursor: pointer;
    border-color: var(--olive-primary) !important;
}

/* Checkboxes & Radios */
.form-check-input {
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input:checked {
    background-color: var(--olive-primary) !important;
    border-color: var(--olive-primary) !important;
}

.form-check-input:hover {
    box-shadow: 0 0 0 4px var(--olive-soft);
}

.form-control::placeholder {
    color: var(--input-placeholder) !important;
}

/* Text Colors */
.text-muted {
    color: var(--text-muted) !important;
}

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

/* Backgrounds */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
}

/* Borders */
.border,
.border-top,
.border-bottom,
.border-start,
.border-end {
    border-color: var(--border-color) !important;
}

/* ===================================
   BUTTON STYLES - OLIVE GREEN THEME
   =================================== */

/* Base Button Styling */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    border-radius: 0.375rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.btn:active::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn:focus {
    box-shadow: 0 0 0 0.25rem var(--btn-primary-shadow);
    outline: none;
}

/* Primary Buttons - Olive Green */
.btn-primary {
    background-color: var(--olive-primary);
    border-color: var(--olive-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(107, 142, 35, 0.2);
}

.btn-primary:hover {
    background-color: var(--olive-hover);
    border-color: var(--olive-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--olive-shadow);
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--olive-active);
    border-color: var(--olive-active);
    transform: translateY(0);
    color: white;
}

/* Secondary Buttons - Warm Beige */
.btn-secondary {
    background-color: var(--beige-primary);
    border-color: var(--olive-primary);
    border-width: 2px;
    color: var(--olive-primary);
    box-shadow: 0 2px 4px rgba(245, 230, 211, 0.3);
}

.btn-secondary:hover {
    background-color: var(--beige-hover);
    border-color: var(--olive-hover);
    color: var(--olive-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 230, 211, 0.5);
}

.btn-secondary:active,
.btn-secondary.active {
    background-color: var(--beige-dark);
    border-color: var(--olive-active);
    color: var(--olive-active);
    transform: translateY(0);
}

/* Success Buttons - Olive Green */
.btn-success {
    background-color: var(--brand-success);
    border-color: var(--brand-success);
    color: var(--btn-text);
}

.btn-success:hover {
    background-color: var(--brand-success-hover);
    border-color: var(--brand-success-hover);
    color: var(--btn-text);
    transform: translateY(-2px);
}

/* Danger Buttons */
.btn-danger {
    background-color: var(--brand-danger);
    border-color: var(--brand-danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: var(--brand-danger-hover);
    border-color: var(--brand-danger-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Warning Buttons */
.btn-warning {
    background-color: var(--brand-warning);
    border-color: var(--brand-warning);
    color: #ffffff;
}

.btn-warning:hover {
    background-color: var(--brand-warning-hover);
    border-color: var(--brand-warning-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Info Buttons */
.btn-info {
    background-color: var(--brand-info);
    border-color: var(--brand-info);
    color: #ffffff;
}

.btn-info:hover {
    background-color: var(--brand-info-hover);
    border-color: var(--brand-info-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--olive-primary);
    border-color: var(--olive-primary);
    background-color: transparent;
    border-width: 2px;
}

.btn-outline-primary:hover {
    background-color: var(--olive-soft);
    border-color: var(--olive-hover);
    color: var(--olive-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 142, 35, 0.15);
}

.btn-outline-primary:active {
    background-color: var(--olive-alpha-20);
    transform: translateY(0);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
    background-color: transparent;
    border-width: 2px;
}

.btn-outline-secondary:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-dark);
    color: var(--text-primary);
}

.btn-outline-success {
    color: var(--brand-success);
    border-color: var(--brand-success);
    background-color: transparent;
    border-width: 2px;
}

.btn-outline-success:hover {
    background-color: var(--brand-success);
    border-color: var(--brand-success);
    color: var(--btn-text);
}

.btn-outline-danger {
    color: var(--brand-danger);
    border-color: var(--brand-danger);
    background-color: transparent;
    border-width: 2px;
}

.btn-outline-danger:hover {
    background-color: var(--brand-danger);
    border-color: var(--brand-danger);
    color: var(--text-inverse);
}

/* Button Close (X button) */
.btn-close {
    filter: var(--text-primary) !important;
    opacity: 0.5;
}

[data-theme="dark"] .btn-close {
    filter: invert(1);
}

.btn-close:hover {
    opacity: 1;
}

/* Links */
a {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover);
}

/* Modals */
.modal-content {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-radius: 12px !important;
}

.modal-header {
    background: linear-gradient(135deg, var(--olive-primary), var(--olive-dark)) !important;
    color: white !important;
    border-bottom: 3px solid var(--beige-accent) !important;
    border-radius: 12px 12px 0 0 !important;
}

.modal-header .modal-title {
    color: white !important;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1) !important;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.badge-olive,
.badge-success {
    background: var(--olive-primary);
    color: white;
}

.badge-olive:hover,
.badge-success:hover {
    background: var(--olive-hover);
    transform: scale(1.05);
    box-shadow: 0 2px 4px var(--olive-shadow);
    cursor: pointer;
}

.badge-beige {
    background: var(--beige-primary);
    color: var(--olive-primary);
    border: 2px solid var(--olive-primary);
}

.badge-beige:hover {
    background: var(--beige-hover);
    transform: scale(1.05);
    cursor: pointer;
}

.badge-primary {
    background: var(--olive-primary);
    color: white;
}

.badge-primary:hover {
    background: var(--olive-hover);
    transform: scale(1.05);
}

.modal-footer {
    border-color: var(--border-color) !important;
}

/* Dropdowns */
.dropdown-menu {
    background-color: var(--bg-card) !important;
    border: 2px solid var(--beige-dark) !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, var(--beige-light), var(--beige-accent)) !important;
    color: var(--olive-primary) !important;
    padding-left: 24px !important;
    transform: translateX(2px);
}

.dropdown-divider {
    border-color: var(--border-color) !important;
    opacity: 1;
}

.dropdown-header {
    color: var(--text-primary) !important;
    background-color: transparent;
}

/* Tables */
.table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.table thead {
    background: linear-gradient(180deg, var(--olive-primary), var(--olive-dark));
    color: white !important;
}

.table thead th {
    color: white !important;
    font-weight: 600;
    border: none !important;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--beige-dark);
}

/* Light Mode Row Hover */
[data-theme="light"] .table tbody tr:hover {
    background: linear-gradient(90deg, var(--beige-light), var(--beige-accent)) !important;
    box-shadow: inset 3px 0 0 var(--olive-primary);
    transform: translateX(2px);
    cursor: pointer;
}

/* Dark Mode Row Hover */
[data-theme="dark"] .table tbody tr:hover {
    background: linear-gradient(90deg, var(--beige-primary), var(--beige-light)) !important;
    box-shadow: inset 3px 0 0 var(--olive-hover);
    cursor: pointer;
}

/* Zebra Striping */
.table-striped tbody tr:nth-of-type(even) {
    background-color: var(--beige-primary) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--bg-secondary) !important;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border-left-width: 5px !important;
    transition: all 0.3s ease;
}

.alert:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateX(2px);
}

.alert-success {
    background-color: var(--beige-light) !important;
    border-left-color: var(--olive-primary) !important;
    color: var(--olive-dark) !important;
}

.alert-success:hover {
    box-shadow: 0 4px 8px rgba(107, 142, 35, 0.2);
}

/* Dark mode alerts */
[data-theme="dark"] .alert-success {
    background-color: rgba(154, 193, 54, 0.15) !important;
    border-color: var(--brand-success) !important;
    color: var(--brand-success) !important;
}

[data-theme="dark"] .alert-danger {
    background-color: rgba(248, 81, 73, 0.15) !important;
    border-color: var(--brand-danger) !important;
    color: var(--brand-danger) !important;
}

[data-theme="dark"] .alert-warning {
    background-color: rgba(210, 153, 34, 0.15) !important;
    border-color: var(--brand-warning) !important;
    color: var(--brand-warning) !important;
}

[data-theme="dark"] .alert-info {
    background-color: rgba(121, 192, 255, 0.15) !important;
    border-color: var(--brand-info) !important;
    color: var(--brand-info) !important;
}

/* Loading Spinners */
.spinner-border,
.spinner-grow {
    color: var(--olive-primary) !important;
}

.spinner-olive {
    border: 4px solid var(--beige-primary);
    border-top-color: var(--olive-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Bar */
.loading-bar {
    height: 4px;
    background: var(--beige-primary);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--olive-primary), var(--olive-light));
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { left: -40%; }
    100% { left: 100%; }
}

/* Custom Green Colors (from common.css) */
.text-green {
    color: var(--brand-green) !important;
}

.bg-green {
    background-color: var(--brand-green) !important;
}

.btn-green {
    color: var(--btn-text);
    background-color: var(--brand-green-dark);
    border-color: var(--brand-green);
}

.btn-green:hover {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    color: var(--btn-text);
}

/* Comments Section */
.comment {
    background-color: var(--comment-bg) !important;
    border-color: var(--comment-border) !important;
}

.comments-section {
    border-color: var(--border-color) !important;
}

/* Input Groups */
.input-group-text {
    background-color: var(--bg-secondary) !important;
    border-color: var(--input-border) !important;
    color: var(--text-primary) !important;
}

/* Badges */
.badge {
    color: var(--btn-text) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Theme Toggle Button - Enhanced */
.theme-toggle {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-primary);
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
}

.theme-toggle:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-light);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Theme Icon Display Control */
.theme-icon-sun {
    display: none;
}

.theme-icon-moon {
    display: inline-block;
}

[data-theme="dark"] .theme-icon-sun {
    display: inline-block;
}

[data-theme="dark"] .theme-icon-moon {
    display: none;
}

/* Theme Text (for sidebar) */
.theme-text-light,
.theme-text-dark {
    display: none;
}

[data-theme="light"] .theme-text-dark {
    display: inline;
}

[data-theme="dark"] .theme-text-light {
    display: inline;
}

/* Theme Toggle in Navbar */
.navbar .theme-toggle {
    margin-right: 0.5rem;
}

/* ===================================
   HAMBURGER MENU BUTTON
   =================================== */

/* Hamburger Button Container */
.hamburger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
    position: relative;
}

.hamburger-btn:hover {
    background-color: var(--bg-hover);
    border-color: var(--border-light);
}

.hamburger-btn:active {
    transform: scale(0.95);
}

.hamburger-btn:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Hamburger Icon Container */
.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
}

/* Hamburger Bars */
.hamburger-icon .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

/* Hover Effect - Expand bars */
.hamburger-btn:hover .hamburger-icon .bar {
    background-color: var(--brand-primary);
}

.hamburger-btn:hover .hamburger-icon .bar:nth-child(1) {
    transform: translateY(-1px);
}

.hamburger-btn:hover .hamburger-icon .bar:nth-child(3) {
    transform: translateY(1px);
}

/* Active State - Keep hamburger icon (no X transformation) */
.hamburger-btn[aria-expanded="true"] .hamburger-icon .bar:nth-child(1) {
    /* Keep as hamburger - no transformation */
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon .bar:nth-child(2) {
    /* Keep visible - no transformation */
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon .bar:nth-child(3) {
    /* Keep as hamburger - no transformation */
}

/* Active State Background */
.hamburger-btn[aria-expanded="true"] {
    background-color: var(--brand-primary);
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon .bar {
    background-color: #ffffff;
}

/* Dark Mode Adjustments */
[data-theme="dark"] .hamburger-icon .bar {
    background-color: var(--text-primary);
}

[data-theme="dark"] .hamburger-btn:hover .hamburger-icon .bar {
    background-color: var(--brand-primary);
}

/* Navbar Hamburger - White bars on olive background */
.navbar .hamburger-btn .hamburger-icon .bar {
    background-color: #ffffff !important;
}

.navbar .hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar .hamburger-btn:hover .hamburger-icon .bar {
    background-color: #ffffff !important;
}

.navbar .hamburger-btn[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.15);
}

.navbar .hamburger-btn[aria-expanded="true"] .hamburger-icon .bar {
    background-color: #ffffff !important;
}

/* Pulse Animation (Optional - for drawing attention) */
@keyframes hamburger-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(107, 142, 35, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(107, 142, 35, 0);
    }
}

.hamburger-btn.pulse {
    animation: hamburger-pulse 2s infinite;
}

/* Smooth Bar Animation */
@keyframes bar-expand {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.hamburger-icon .bar {
    animation: bar-expand 0.3s ease-out backwards;
}

.hamburger-icon .bar:nth-child(1) {
    animation-delay: 0.1s;
}

.hamburger-icon .bar:nth-child(2) {
    animation-delay: 0.2s;
}

.hamburger-icon .bar:nth-child(3) {
    animation-delay: 0.3s;
}

/* Ripple Effect on Click */
.hamburger-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: var(--olive-alpha-30, rgba(107, 142, 35, 0.3));
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.hamburger-btn:active::before {
    width: 100px;
    height: 100px;
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger-btn {
        width: 40px;
        height: 40px;
    }

    .hamburger-icon {
        width: 22px;
        height: 16px;
    }
}

/* Fixed Theme Toggle (for auth pages) */
.theme-toggle-fixed {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    box-shadow: var(--shadow-sm);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.theme-toggle-fixed:hover {
    box-shadow: var(--shadow);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Prevent transition on page load */
.preload * {
    transition: none !important;
}

/* Image brightness adjustment for dark mode */
[data-theme="dark"] img {
    opacity: 0.9;
}

[data-theme="dark"] img:hover {
    opacity: 1;
}

/* HR */
hr {
    border-color: var(--border-color) !important;
    opacity: 1;
}

/* List Groups */
.list-group-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.list-group-item:hover {
    background-color: var(--bg-hover) !important;
}

/* ===================================
   UTILITY CLASSES & SPACING
   =================================== */

/* Spacing Utilities */
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

/* Card Improvements */
.card {
    margin-bottom: 1.5rem;
    overflow: visible;
}

.card-header {
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

/* Better Hover States */
a:not(.btn):hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Icon Spacing */
.fa, .fas, .far, .fab {
    margin-right: 0.25rem;
}

/* Form Improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Input Group Improvements */
.input-group {
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.2rem var(--olive-alpha-25, rgba(107, 142, 35, 0.25));
    border-radius: 0.375rem;
}

/* Navbar Improvements */
.navbar {
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Nav Icons */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.2s ease;
    position: relative;
}

.nav-icon:hover {
    background-color: var(--bg-hover);
    transform: scale(1.1);
}

.nav-icon:active {
    transform: scale(0.95);
}

/* Badge for notifications (optional) */
.nav-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.65rem;
    padding: 0.25rem 0.4rem;
}

/* Offcanvas Improvements */
.offcanvas-body {
    padding: 1.5rem 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100%;
}

/* Custom Scrollbar for Sidebar */
.offcanvas-body::-webkit-scrollbar,
.sidebar-sticky::-webkit-scrollbar {
    width: 8px;
}

.offcanvas-body::-webkit-scrollbar-track,
.sidebar-sticky::-webkit-scrollbar-track {
    background: transparent;
}

.offcanvas-body::-webkit-scrollbar-thumb,
.sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(107, 142, 35, 0.3);
    border-radius: 4px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover,
.sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 142, 35, 0.5);
}

/* Dark mode scrollbar */
[data-theme="dark"] .offcanvas-body::-webkit-scrollbar-thumb,
[data-theme="dark"] .sidebar-sticky::-webkit-scrollbar-thumb {
    background: rgba(154, 193, 54, 0.3);
}

[data-theme="dark"] .offcanvas-body::-webkit-scrollbar-thumb:hover,
[data-theme="dark"] .sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: rgba(154, 193, 54, 0.5);
}

.offcanvas .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
    background-color: var(--sidebar-hover);
}

.offcanvas .nav-link.active,
.offcanvas .nav-link:active {
    background-color: var(--sidebar-active);
    color: var(--brand-primary);
    font-weight: 600;
}

/* Better Focus Outlines */
*:focus {
    outline: none;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Disabled States */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Animation for theme switching */
@keyframes theme-switch {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

.theme-switching .theme-icon {
    animation: theme-switch 0.3s ease;
}

/* Better Text Selection */
::selection {
    background-color: var(--brand-primary);
    color: #ffffff;
}

::-moz-selection {
    background-color: var(--brand-primary);
    color: #ffffff;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .theme-toggle-fixed {
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .theme-toggle,
    .navbar,
    .offcanvas,
    .btn {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* ===================================
   COMPREHENSIVE SIZING SYSTEM
   =================================== */

/* Typography Scale - Proper Hierarchy */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

h3, .h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h4, .h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Body Text Sizes */
body {
    font-size: 1rem;
    line-height: 1.6;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* Lead Text */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ===================================
   BUTTON SIZING SYSTEM
   =================================== */

/* Base Button - Better defaults */
.btn {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    min-height: 44px; /* Touch-friendly minimum */
}

/* Button Size Variants */
.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
    min-height: 52px;
    border-radius: 0.625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-height: 36px;
    border-radius: 0.375rem;
}

.btn-xs {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    min-height: 32px;
    border-radius: 0.25rem;
}

/* Icon-only buttons */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon.btn-sm {
    width: 36px;
    height: 36px;
}

.btn-icon.btn-lg {
    width: 52px;
    height: 52px;
}

/* Button Hover Effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

/* ===================================
   AVATAR / PROFILE IMAGE SYSTEM
   =================================== */

/* Base avatar styles */
.avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.avatar:hover {
    transform: scale(1.05);
    border-color: var(--brand-primary);
}

/* Avatar Size Variants */
.avatar-xs {
    width: 32px;
    height: 32px;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.avatar-md {
    width: 56px;
    height: 56px;
}

.avatar-lg {
    width: 80px;
    height: 80px;
}

.avatar-xl {
    width: 120px;
    height: 120px;
}

.avatar-xxl {
    width: 150px;
    height: 150px;
}

/* Square avatars */
.avatar-square {
    border-radius: 0.5rem;
}

/* Avatar with status indicator */
.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.avatar-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 25%;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
}

.avatar-status.online {
    background-color: var(--brand-success);
}

.avatar-status.offline {
    background-color: var(--text-muted);
}

/* ===================================
   FORM ELEMENT SIZING
   =================================== */

/* Input Fields */
.form-control {
    padding: 0.625rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    min-height: 44px;
}

.form-control-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1.125rem;
    min-height: 52px;
    border-radius: 0.625rem;
}

.form-control-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    min-height: 36px;
    border-radius: 0.375rem;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

textarea.form-control-lg {
    min-height: 150px;
}

textarea.form-control-sm {
    min-height: 80px;
}

/* Select */
.form-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    min-height: 44px;
    border-radius: 0.5rem;
}

.form-select-lg {
    padding: 0.875rem 2.75rem 0.875rem 1.25rem;
    min-height: 52px;
    font-size: 1.125rem;
}

.form-select-sm {
    padding: 0.5rem 2rem 0.5rem 0.875rem;
    min-height: 36px;
    font-size: 0.875rem;
}

/* Form Labels */
.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.form-label-lg {
    font-size: 1rem;
    margin-bottom: 0.625rem;
}

/* Checkboxes and Radios */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
}

.form-check-input:checked {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}

.form-check-label {
    font-size: 1rem;
    padding-left: 0.5rem;
}

/* ===================================
   CARD SIZING SYSTEM
   =================================== */

/* Responsive Card Widths */
.card-narrow {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.card-medium {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card-wide {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Padding Variants */
.card-body-sm {
    padding: 1rem;
}

.card-body-lg {
    padding: 2rem;
}

/* Compact Cards */
.card-compact {
    margin-bottom: 1rem;
}

.card-compact .card-body {
    padding: 1rem;
}

/* ===================================
   SPACING SCALE SYSTEM
   =================================== */

/* Consistent margin scale */
.mb-0-5 { margin-bottom: 0.5rem !important; }
.mt-0-5 { margin-top: 0.5rem !important; }
.my-0-5 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }

.mb-1-5 { margin-bottom: 1.5rem !important; }
.mt-1-5 { margin-top: 1.5rem !important; }
.my-1-5 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.mb-2-5 { margin-bottom: 2.5rem !important; }
.mt-2-5 { margin-top: 2.5rem !important; }
.my-2-5 { margin-top: 2.5rem !important; margin-bottom: 2.5rem !important; }

/* Consistent padding scale */
.p-0-5 { padding: 0.5rem !important; }
.p-1-5 { padding: 1.5rem !important; }
.p-2-5 { padding: 2.5rem !important; }

.px-0-5 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.py-0-5 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }

/* ===================================
   MODAL SIZING
   =================================== */

.modal-content {
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* ===================================
   RESPONSIVE TYPOGRAPHY
   =================================== */

@media (max-width: 768px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
    h5, .h5 { font-size: 1.125rem; }
    h6, .h6 { font-size: 1rem; }

    body { font-size: 0.9375rem; }

    .lead {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.25rem; }

    /* Smaller buttons on mobile for better fit */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9375rem;
    }

    /* Smaller form controls on mobile */
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* ===================================
   FIXED WIDTH FIXES
   =================================== */

/* Remove fixed widths for responsive design */
.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Auth Card Responsive */
.auth-card {
    width: 100%;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
}

@media (max-width: 576px) {
    .auth-card {
        max-width: 100%;
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Chat Window Adaptive Height */
.chat-window {
    height: 500px;
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .chat-window {
        height: 400px;
        max-height: 60vh;
    }
}

/* Profile Image Responsive */
.profile-header-image {
    width: 150px;
    height: 150px;
}

@media (max-width: 768px) {
    .profile-header-image {
        width: 100px;
        height: 100px;
    }
}

/* Cover Image Responsive */
.cover-image {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .cover-image {
        max-height: 200px;
    }
}

/* ===================================
   POST & COMMENT SIZING
   =================================== */

/* Post card consistency */
.post-card {
    margin-bottom: 1.5rem;
}

.post-card .card-body {
    padding: 1.25rem;
}

.post-header {
    margin-bottom: 1rem;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-image {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* Comment section */
.comment-section {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.comment-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.comment-avatar {
    width: 40px;
    height: 40px;
}

.comment-reply-avatar {
    width: 32px;
    height: 32px;
}

.comment-content {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.comment-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===================================
   UTILITY IMPROVEMENTS
   =================================== */

/* Better touch targets for mobile */
@media (max-width: 768px) {
    .clickable,
    button,
    a,
    .btn,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Flex gap utilities */
.gap-0-5 { gap: 0.5rem !important; }
.gap-1-5 { gap: 1.5rem !important; }
.gap-2-5 { gap: 2.5rem !important; }

/* Max-width utilities */
.mw-100 { max-width: 100% !important; }
.mw-75 { max-width: 75% !important; }
.mw-50 { max-width: 50% !important; }

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   =================================== */

/* Ensure sufficient contrast */
.text-muted {
    color: var(--text-secondary) !important;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-primary);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 0;
}

/* ===================================
   PROFESSIONAL OFFCANVAS ENHANCEMENTS
   =================================== */

/* Smooth HTML scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced offcanvas transitions */
.offcanvas-enhanced {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Offcanvas backdrop enhancements */
.offcanvas-backdrop {
    transition: opacity 0.3s ease-in-out;
}

.offcanvas-backdrop.show {
    opacity: 0.5;
}

/* Improved offcanvas header */
.offcanvas-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.offcanvas-title {
    font-weight: 600;
    font-size: 1.125rem;
}

/* Enhanced close button */
.offcanvas .btn-close {
    padding: 0.75rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.offcanvas .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Smooth nav link interactions */
.offcanvas .nav-link {
    position: relative;
    overflow: hidden;
}

.offcanvas .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: var(--brand-primary);
    transition: height 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.offcanvas .nav-link:hover::before,
.offcanvas .nav-link.active::before {
    height: 70%;
}

/* Prevent layout shift on sidebar toggle */
@media (min-width: 768px) {
    .main-content {
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-left: 0 !important; /* Default: no margin when sidebar closed */
        background: linear-gradient(to right, red 0%, red 5px, transparent 5px) !important; /* Debug: red line on left edge */
    }

    /* When sidebar is OPEN - push content to the right */
    body.sidebar-open .main-content {
        margin-left: 280px !important;
        background: linear-gradient(to right, green 0%, green 5px, transparent 5px) !important; /* Debug: green line on left edge */
    }
}

/* Focus visible improvements */
.hamburger-btn:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 4px;
    border-radius: 0.5rem;
}

.offcanvas .nav-link:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: -2px;
    background-color: var(--sidebar-hover);
}

/* Mobile menu improvements */
@media (max-width: 767px) {
    .offcanvas {
        max-width: 85vw;
    }

    .offcanvas-body {
        padding: 1rem;
    }
}

/* Navbar sticky behavior enhancement */
.navbar.sticky-top {
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
}

/* Ensure smooth animations don't interfere with preload */
.preload .offcanvas,
.preload .main-content {
    transition: none !important;
}

/* ===================================
   NAVBAR & SIDEBAR UTILITY CLASSES
   =================================== */

/* Navbar Brand Wrapper */
.navbar-brand-wrapper {
    margin: 0;
    padding: 0.25rem 0;
}

/* Vertical Divider in Navbar */
.navbar-vr {
    height: 30px;
    opacity: 0.3;
}

/* Sidebar Section Headings */
.sidebar-section-heading {
    font-size: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-section-heading i {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Sidebar Dividers */
.sidebar-divider {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.1;
    border-color: var(--border-color);
}

/* Badge Variants */
.badge-xs {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

/* Admin Profile Badge */
.admin-profile-text {
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .admin-profile-text {
    color: var(--text-primary);
}

/* Navbar Logo Wrapper (applies to both panels) */
.navbar .navbar-logo {
    height: 60px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

/* Admin Navbar Logo Shadow */
.navbar-dark .navbar-logo {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.15));
}

[data-theme="dark"] .navbar-dark .navbar-logo {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

/* Offcanvas Fixed Width */
.offcanvas-280 {
    width: 280px;
}

/* Theme Toggle in Admin Navbar */
.navbar-dark .theme-toggle {
    background: none;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

/* User Panel Navbar Specific */
.navbar-user {
    min-height: 80px;
    padding: 0.75rem 0;
    box-shadow: 0 2px 4px rgba(107, 142, 35, 0.1);
}

[data-theme="dark"] .navbar-user {
    box-shadow: 0 2px 4px rgba(154, 193, 54, 0.15);
}

/* Prevent jarring notifications alert */
.nav-link-placeholder {
    cursor: not-allowed;
    opacity: 0.7;
}

.nav-link-placeholder:hover {
    opacity: 0.7;
    background-color: transparent !important;
}


/* ============================================
   Admin Sidebar Desktop Behavior
   ============================================ */

/* Hide close button on desktop - only show on mobile */
@media (min-width: 768px) {
  #sidebarMenu .offcanvas-header .btn-close {
    display: none;
  }

  /* Remove backdrop on desktop */
  body:has(#sidebarMenu.show) .offcanvas-backdrop {
    display: none;
  }

  /* CRITICAL: Ensure sidebar can hide on desktop */
  #sidebarMenu.offcanvas:not(.show) {
    visibility: hidden !important;
    transform: translateX(-100%) !important;
  }

  #sidebarMenu.offcanvas.show {
    visibility: visible !important;
    transform: translateX(0) !important;
  }
}

/* ===================================
   PROFESSIONAL POLISH - PHASE 10
   Typography, Spacing, Shadows, Borders, Animations
   =================================== */

/* ===================================
   TYPOGRAPHY SYSTEM
   =================================== */

/* Base Typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading Hierarchy */
h1, .h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

h2, .h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

h3, .h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h4, .h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.005em;
    margin-bottom: 0.875rem;
    color: var(--text-primary);
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.01em;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

/* Text Variations */
.text-lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

.text-strong {
    font-weight: 600;
}

.text-bold {
    font-weight: 700;
}

/* Paragraph Spacing */
p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

p:last-child {
    margin-bottom: 0;
}

/* ===================================
   PROFESSIONAL SHADOW SYSTEM
   =================================== */

/* Light Shadow - Subtle elements */
.shadow-xs {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

/* Medium Shadow - Cards, buttons */
.shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Large Shadow - Modals, popovers */
.shadow-lg {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

.shadow-xl {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

/* Olive-Tinted Shadows */
.shadow-olive-sm {
    box-shadow: 0 2px 4px rgba(107, 142, 35, 0.15) !important;
}

.shadow-olive {
    box-shadow: 0 4px 8px rgba(107, 142, 35, 0.2) !important;
}

.shadow-olive-lg {
    box-shadow: 0 8px 16px rgba(107, 142, 35, 0.25) !important;
}

/* Beige-Tinted Shadows */
.shadow-beige-sm {
    box-shadow: 0 2px 4px rgba(245, 230, 211, 0.3) !important;
}

.shadow-beige {
    box-shadow: 0 4px 8px rgba(245, 230, 211, 0.4) !important;
}

/* Inner Shadow */
.shadow-inner {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}

/* No Shadow */
.shadow-none {
    box-shadow: none !important;
}

/* ===================================
   BORDER RADIUS SYSTEM
   =================================== */

.rounded-xs {
    border-radius: 0.25rem !important; /* 4px */
}

.rounded-sm {
    border-radius: 0.375rem !important; /* 6px */
}

.rounded {
    border-radius: 0.5rem !important; /* 8px */
}

.rounded-md {
    border-radius: 0.625rem !important; /* 10px */
}

.rounded-lg {
    border-radius: 0.75rem !important; /* 12px */
}

.rounded-xl {
    border-radius: 1rem !important; /* 16px */
}

.rounded-2xl {
    border-radius: 1.5rem !important; /* 24px */
}

.rounded-pill {
    border-radius: 999px !important;
}

/* Border Width System */
.border-1 {
    border-width: 1px !important;
}

.border-2 {
    border-width: 2px !important;
}

.border-3 {
    border-width: 3px !important;
}

.border-4 {
    border-width: 4px !important;
}

/* ===================================
   ANIMATION & TRANSITION SYSTEM
   =================================== */

/* Transition Speeds */
.transition-fast {
    transition: all 0.2s ease !important;
}

.transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.transition-slow {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Easing Functions */
.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Transform Utilities */
.transform {
    transform: translateZ(0); /* GPU acceleration */
}

.scale-hover:hover {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.scale-hover-lg:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Lift Effect on Hover */
.lift-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lift-hover-lg:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   ICON SIZING SYSTEM
   =================================== */

.icon-xs {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
}

.icon-sm {
    width: 20px !important;
    height: 20px !important;
    font-size: 20px !important;
}

.icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
}

.icon-md {
    width: 28px !important;
    height: 28px !important;
    font-size: 28px !important;
}

.icon-lg {
    width: 32px !important;
    height: 32px !important;
    font-size: 32px !important;
}

.icon-xl {
    width: 40px !important;
    height: 40px !important;
    font-size: 40px !important;
}

.icon-2xl {
    width: 48px !important;
    height: 48px !important;
    font-size: 48px !important;
}

/* Icon Colors */
.icon-olive {
    color: var(--olive-primary) !important;
}

.icon-beige {
    color: var(--beige-accent) !important;
}

/* Icon Containers */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-container-sm {
    width: 36px;
    height: 36px;
    font-size: 18px;
}

.icon-container {
    width: 44px;
    height: 44px;
    font-size: 22px;
}

.icon-container-lg {
    width: 56px;
    height: 56px;
    font-size: 28px;
}

/* Icon Container Backgrounds */
.icon-container-olive {
    background: var(--olive-soft);
    color: var(--olive-primary);
}

.icon-container-olive:hover {
    background: var(--olive-primary);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.icon-container-beige {
    background: var(--beige-light);
    color: var(--olive-primary);
    border: 2px solid var(--beige-dark);
}

.icon-container-beige:hover {
    background: var(--beige-accent);
    border-color: var(--olive-primary);
}

/* ===================================
   ENHANCED TABLE STYLES
   =================================== */

/* Professional Table Base */
.table-professional {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Table Header - Olive Gradient */
.table-professional thead {
    background: linear-gradient(180deg, var(--olive-primary), var(--olive-dark));
    color: white;
}

.table-professional thead th {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    white-space: nowrap;
}

/* Table Body */
.table-professional tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--beige-dark);
    background: white;
}

/* Light Mode Row Hover */
[data-theme="light"] .table-professional tbody tr:hover {
    background: linear-gradient(90deg, var(--beige-light), var(--beige-accent)) !important;
    box-shadow: inset 3px 0 0 var(--olive-primary);
    transform: translateX(2px);
    cursor: pointer;
}

/* Dark Mode Row Hover */
[data-theme="dark"] .table-professional tbody tr {
    background: var(--bg-card);
}

[data-theme="dark"] .table-professional tbody tr:hover {
    background: linear-gradient(90deg, var(--beige-primary), var(--beige-light)) !important;
    box-shadow: inset 3px 0 0 var(--olive-hover);
    transform: translateX(2px);
}

/* Table Cells */
.table-professional tbody td {
    padding: 14px 20px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    vertical-align: middle;
    border: none;
}

/* Zebra Striping with Beige */
.table-professional tbody tr:nth-child(even) {
    background: var(--beige-primary);
}

[data-theme="dark"] .table-professional tbody tr:nth-child(even) {
    background: rgba(42, 37, 32, 0.3);
}

/* Table Actions Column */
.table-professional .table-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

/* Compact Table Variant */
.table-compact tbody td {
    padding: 10px 16px;
    font-size: 0.875rem;
}

.table-compact thead th {
    padding: 12px 16px;
}

/* Table with Border */
.table-bordered-olive {
    border: 2px solid var(--olive-primary) !important;
}

.table-bordered-olive th,
.table-bordered-olive td {
    border: 1px solid var(--beige-dark) !important;
}

/* ===================================
   ENHANCED FORM STYLES
   =================================== */

/* Professional Form Controls */
.form-control-professional {
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    line-height: 1.5;
    background: var(--beige-light);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px; /* Optimal touch target */
}

/* Form Control Hover */
.form-control-professional:hover:not(:focus):not(:disabled) {
    border-color: var(--olive-hover);
    background: var(--beige-hover);
}

/* Form Control Focus */
.form-control-professional:focus {
    border-color: var(--olive-primary);
    box-shadow: 0 0 0 4px var(--olive-soft);
    outline: none;
    background: var(--bg-card, white);
}

/* Dark Mode Form Controls */
[data-theme="dark"] .form-control-professional {
    background: var(--bg-card, #1a1f1a);
    border-color: var(--border-color, #2a352a);
}

[data-theme="dark"] .form-control-professional:hover:not(:focus):not(:disabled) {
    background: var(--bg-hover, #252b25);
    border-color: var(--olive-primary);
}

[data-theme="dark"] .form-control-professional:focus {
    background: var(--bg-card, #1a1f1a);
}

/* Form Control Disabled */
.form-control-professional:disabled {
    background: var(--bg-secondary);
    border-color: var(--border-light);
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Labels */
.form-label-professional {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.01em;
}

/* Required Field Indicator */
.form-label-professional.required::after {
    content: "*";
    color: var(--brand-danger);
    margin-left: 4px;
}

/* Form Help Text */
.form-text-professional {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--beige-light);
    border-radius: 6px;
    border-left: 3px solid var(--olive-primary);
}

/* Form Error State */
.form-control-professional.is-invalid {
    border-color: var(--brand-danger);
    background: rgba(200, 90, 84, 0.05);
}

.form-control-professional.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(200, 90, 84, 0.15);
}

.invalid-feedback-professional {
    font-size: 0.8125rem;
    color: var(--brand-danger);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.invalid-feedback-professional::before {
    content: "\f06a"; /* Font Awesome exclamation-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Form Success State */
.form-control-professional.is-valid {
    border-color: var(--olive-primary);
    background: rgba(107, 142, 35, 0.05);
}

.form-control-professional.is-valid:focus {
    box-shadow: 0 0 0 4px var(--olive-soft);
}

.valid-feedback-professional {
    font-size: 0.8125rem;
    color: var(--olive-primary);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.valid-feedback-professional::before {
    content: "\f058"; /* Font Awesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Select Dropdown Enhancement */
.form-select-professional {
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    padding: 12px 40px 12px 16px;
    font-size: 1rem;
    background: var(--beige-light);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236B8E23' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    transition: all 0.3s;
    cursor: pointer;
    min-height: 44px;
}

.form-select-professional:hover:not(:disabled) {
    border-color: var(--olive-primary);
    background-color: var(--beige-hover);
}

.form-select-professional:focus {
    border-color: var(--olive-primary);
    box-shadow: 0 0 0 4px var(--olive-soft);
    outline: none;
}

/* Checkbox & Radio Enhancement */
.form-check-input-professional {
    width: 20px;
    height: 20px;
    border: 2px solid var(--beige-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-check-input-professional:hover {
    border-color: var(--olive-primary);
    box-shadow: 0 0 0 4px var(--olive-soft);
}

.form-check-input-professional:checked {
    background-color: var(--olive-primary);
    border-color: var(--olive-primary);
}

.form-check-input-professional:focus {
    box-shadow: 0 0 0 4px var(--olive-soft);
    outline: none;
}

/* Radio Button Specific */
.form-check-input-professional[type="radio"] {
    border-radius: 50%;
}

/* Form Group Spacing */
.form-group-professional {
    margin-bottom: 1.5rem;
}

.form-group-professional:last-child {
    margin-bottom: 0;
}

/* Input Group Enhancement */
.input-group-professional {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.input-group-professional .form-control-professional {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-professional .input-group-text-professional {
    background: var(--olive-primary);
    color: white;
    border: 2px solid var(--olive-primary);
    border-left: none;
    padding: 12px 16px;
    font-weight: 600;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    align-items: center;
}

/* ===================================
   LOADING STATES & SPINNERS
   =================================== */

/* Professional Spinner */
.spinner-olive {
    border: 4px solid var(--beige-primary);
    border-top-color: var(--olive-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-olive-sm {
    width: 24px;
    height: 24px;
    border-width: 3px;
}

.spinner-olive-lg {
    width: 56px;
    height: 56px;
    border-width: 5px;
}

/* Loading Bar */
.loading-bar {
    height: 4px;
    background: var(--beige-primary);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--olive-primary), var(--olive-light));
    animation: loading 2s ease-in-out infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--beige-light) 25%, var(--beige-accent) 50%, var(--beige-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-text-short {
    width: 60%;
}

.skeleton-circle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* ===================================
   PROFESSIONAL BUTTON ENHANCEMENTS
   =================================== */

/* Button Base */
.btn-professional {
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-professional:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Primary Button - Olive */
.btn-olive {
    background: var(--olive-primary);
    color: white;
    border-color: var(--olive-primary);
}

.btn-olive:hover:not(:disabled) {
    background: var(--olive-hover);
    border-color: var(--olive-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--olive-shadow);
}

.btn-olive:active:not(:disabled) {
    transform: translateY(0);
    background: var(--olive-active);
}

/* Secondary Button - Beige */
.btn-beige {
    background: var(--beige-primary);
    color: var(--olive-primary);
    border: 2px solid var(--olive-primary);
}

.btn-beige:hover:not(:disabled) {
    background: var(--beige-hover);
    border-color: var(--olive-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--beige-shadow);
}

/* Outline Button */
.btn-outline-olive {
    background: transparent;
    color: var(--olive-primary);
    border: 2px solid var(--olive-primary);
}

.btn-outline-olive:hover:not(:disabled) {
    background: var(--olive-soft);
    color: var(--olive-hover);
    border-color: var(--olive-hover);
}

/* Button Sizes */
.btn-professional-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-professional-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    min-height: 52px;
}

/* Button with Icon */
.btn-with-icon-left i {
    margin-right: 8px;
}

.btn-with-icon-right i {
    margin-left: 8px;
}

/* ===================================
   CARD ENHANCEMENTS
   =================================== */

/* Professional Card */
.card-professional {
    background: var(--beige-light);
    border-left: 4px solid var(--olive-primary);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.card-professional:hover {
    transform: scale(1.01) translateY(-2px);
    border-left-color: var(--olive-hover);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Card Header */
.card-header-professional {
    padding: 20px 24px;
    border-bottom: 2px solid var(--beige-dark);
    background: linear-gradient(135deg, var(--beige-light), var(--beige-primary));
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header-professional h5 {
    margin: 0;
    font-weight: 600;
    color: var(--olive-primary);
}

/* Card Body */
.card-body-professional {
    padding: 24px;
}

/* Card Footer */
.card-footer-professional {
    padding: 16px 24px;
    border-top: 1px solid var(--beige-dark);
    background: var(--beige-primary);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ===================================
   ALERT ENHANCEMENTS
   =================================== */

/* Professional Alert Base */
.alert-professional {
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 5px solid;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.alert-professional i {
    font-size: 1.25rem;
    margin-top: 2px;
}

/* Alert Success - Olive */
.alert-success-professional {
    background: var(--beige-light);
    border-left-color: var(--olive-primary);
    color: var(--olive-dark);
}

.alert-success-professional:hover {
    box-shadow: 0 4px 8px rgba(107, 142, 35, 0.2);
}

.alert-success-professional i {
    color: var(--olive-primary);
}

/* Alert Info */
.alert-info-professional {
    background: rgba(91, 154, 160, 0.1);
    border-left-color: var(--brand-info);
    color: var(--brand-info-hover);
}

.alert-info-professional i {
    color: var(--brand-info);
}

/* Alert Warning */
.alert-warning-professional {
    background: rgba(212, 160, 23, 0.1);
    border-left-color: var(--brand-warning);
    color: var(--brand-warning-hover);
}

.alert-warning-professional i {
    color: var(--brand-warning);
}

/* Alert Danger */
.alert-danger-professional {
    background: rgba(200, 90, 84, 0.1);
    border-left-color: var(--brand-danger);
    color: var(--brand-danger-hover);
}

.alert-danger-professional i {
    color: var(--brand-danger);
}

/* Alert Dismissible */
.alert-professional .btn-close {
    margin-left: auto;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.alert-professional .btn-close:hover {
    opacity: 1;
}

/* ===================================
   BADGE ENHANCEMENTS
   =================================== */

/* Professional Badge */
.badge-professional {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.badge-olive {
    background: var(--olive-primary);
    color: white;
}

.badge-olive:hover {
    background: var(--olive-hover);
    transform: scale(1.05);
    box-shadow: 0 2px 4px var(--olive-shadow);
}

.badge-beige {
    background: var(--beige-primary);
    color: var(--olive-primary);
    border: 2px solid var(--olive-primary);
}

.badge-beige:hover {
    background: var(--beige-hover);
    transform: scale(1.05);
}

.badge-outline-olive {
    background: transparent;
    color: var(--olive-primary);
    border: 2px solid var(--olive-primary);
}

.badge-outline-olive:hover {
    background: var(--olive-soft);
}

/* Badge Sizes */
.badge-professional-sm {
    padding: 4px 8px;
    font-size: 0.65rem;
}

.badge-professional-lg {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ===================================
   PROFESSIONAL POLISH COMPLETE
   =================================== */

/* ===================================
   NOTIFICATIONS DROPDOWN STYLES
   =================================== */

/* Notifications Dropdown Container */
.notifications-dropdown {
    width: 380px;
    max-width: 95vw;
    max-height: 600px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin-top: 8px;
    overflow: hidden;
}

/* Notifications Dropdown Header */
.notifications-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.notifications-dropdown-header h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notifications-dropdown-header .btn-link {
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.notifications-dropdown-header .btn-link:hover {
    transform: scale(1.1);
}

/* Notifications Dropdown Body */
.notifications-dropdown-body {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.notifications-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.notifications-dropdown-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.notifications-dropdown-body::-webkit-scrollbar-thumb {
    background: var(--olive-primary);
    border-radius: 10px;
}

.notifications-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: var(--olive-dark);
}

/* Individual Notification Item */
.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.notification-item:hover {
    background: var(--bg-hover);
}

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

.notification-item.unread {
    background: var(--olive-tint-10);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--olive-primary);
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}

.notification-icon.icon-follow {
    background: var(--olive-tint-20);
    color: var(--olive-primary);
}

.notification-icon.icon-like {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.notification-icon.icon-comment {
    background: var(--olive-alpha-10);
    color: var(--olive-primary);
}

.notification-icon.icon-review {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.notification-icon.icon-system {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.notification-icon.icon-mention {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
}

/* Notification Avatar */
.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}

.notification-time {
    font-size: 12px;
    color: var(--text-muted);
}

/* Notifications Dropdown Footer */
.notifications-dropdown-footer {
    padding: 12px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.notifications-dropdown-footer .btn-link {
    color: var(--olive-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
}

.notifications-dropdown-footer .btn-link:hover {
    color: var(--olive-dark);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .notifications-dropdown {
    background: var(--dark-bg-elevated);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .notifications-dropdown-header {
    background: var(--dark-bg-secondary);
    border-bottom-color: var(--dark-border);
}

[data-theme="dark"] .notifications-dropdown-header h6 {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .notification-item {
    border-bottom-color: var(--dark-border);
}

[data-theme="dark"] .notification-item:hover {
    background: var(--dark-bg-hover);
}

[data-theme="dark"] .notification-item.unread {
    background: rgba(107, 142, 35, 0.1);
}

[data-theme="dark"] .notification-title {
    color: var(--dark-text-primary);
}

[data-theme="dark"] .notification-message {
    color: var(--dark-text-secondary);
}

[data-theme="dark"] .notification-time {
    color: var(--dark-text-muted);
}

[data-theme="dark"] .notifications-dropdown-footer {
    background: var(--dark-bg-secondary);
    border-top-color: var(--dark-border);
}

[data-theme="dark"] .notifications-dropdown-body::-webkit-scrollbar-track {
    background: var(--dark-bg-secondary);
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .notifications-dropdown {
        width: 340px;
        max-width: 90vw;
    }
}

/* Responsive - Mobile */
@media (max-width: 576px) {
    .notifications-dropdown {
        position: fixed !important;
        inset: auto !important;
        top: 60px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        margin: 0 !important;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        z-index: 1060;
        border-radius: 16px;
        overflow: hidden;
    }

    .notifications-dropdown-header {
        padding: 12px 16px;
    }

    .notifications-dropdown-header h6 {
        font-size: 15px;
    }

    .notifications-dropdown-body {
        max-height: calc(100vh - 200px);
        max-height: calc(100dvh - 200px);
        -webkit-overflow-scrolling: touch;
    }

    .notification-item {
        padding: 12px 16px;
        gap: 10px;
    }

    .notification-icon,
    .notification-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 14px;
    }

    .notification-content {
        min-width: 0;
        overflow: hidden;
    }

    .notification-title {
        font-size: 13px;
        line-height: 1.3;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .notification-message {
        font-size: 12px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .notification-time {
        font-size: 11px;
        margin-top: 3px;
    }

    .notifications-dropdown-footer {
        padding: 10px 16px;
    }

    .notifications-dropdown-footer .btn-link {
        font-size: 13px;
        padding: 8px 0;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 400px) {
    .notifications-dropdown {
        left: 8px !important;
        right: 8px !important;
    }

    .notification-item {
        padding: 10px 12px;
    }

    .notification-icon,
    .notification-avatar {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
}

/* ===================================
   LIGHT THEME EXPLICIT OVERRIDES
   =================================== */

/* Card Light Mode */
[data-theme="light"] .card {
    background: linear-gradient(135deg, #ffffff 0%, #fafcf8 100%) !important;
    border-left: 4px solid var(--olive-primary) !important;
    border-top: 1px solid #e0e8d5 !important;
    border-right: 1px solid #e0e8d5 !important;
    border-bottom: 1px solid #e0e8d5 !important;
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .card:hover {
    border-left-color: var(--olive-dark) !important;
    border-color: #c8d8b5 !important;
    box-shadow: 0 12px 28px rgba(107, 142, 35, 0.15), 0 4px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card-header {
    background: linear-gradient(135deg, #f5f8f0 0%, #eef3e5 100%) !important;
    border-color: #e0e8d5 !important;
    color: #2c3e50 !important;
}

/* Stat Card Light Mode */
[data-theme="light"] .stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8faf5 30%, #f0f5e8 100%) !important;
    border-top: 1px solid #e8f0dc !important;
    border-right: 1px solid #e8f0dc !important;
    border-bottom: 1px solid #e8f0dc !important;
    box-shadow: 0 4px 12px rgba(107, 142, 35, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-card:hover {
    box-shadow: 0 16px 32px rgba(107, 142, 35, 0.18), 0 4px 8px rgba(0, 0, 0, 0.06);
    border-color: #c8d8b5 !important;
}

[data-theme="light"] .stat-card .icon {
    background: linear-gradient(135deg, rgba(107, 142, 35, 0.12) 0%, rgba(107, 142, 35, 0.06) 100%);
    box-shadow: 0 4px 8px rgba(107, 142, 35, 0.12);
}

/* Button Close Light Mode */
[data-theme="light"] .btn-close {
    filter: none;
}

/* Table Light Mode */
[data-theme="light"] .table tbody tr:hover {
    background-color: #f5f8f0 !important;
}

/* Alert Light Mode */
[data-theme="light"] .alert-success {
    background-color: rgba(107, 142, 35, 0.1) !important;
    border-color: rgba(107, 142, 35, 0.3) !important;
    color: #3a5a2a !important;
}

[data-theme="light"] .alert-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
    color: #721c24 !important;
}

[data-theme="light"] .alert-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
    border-color: rgba(255, 193, 7, 0.3) !important;
    color: #856404 !important;
}

[data-theme="light"] .alert-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #0a7a92 !important;
}

/* Theme Toggle Icons Light Mode */
[data-theme="light"] .theme-icon-sun {
    display: none;
}

[data-theme="light"] .theme-icon-moon {
    display: block;
}

[data-theme="light"] .theme-text-light {
    display: none;
}

/* Hamburger Icon Light Mode */
[data-theme="light"] .hamburger-icon .bar {
    background-color: #ffffff;
}

[data-theme="light"] .hamburger-btn:hover .hamburger-icon .bar {
    background-color: #f5f8f0;
}

/* Image Light Mode */
[data-theme="light"] img {
    filter: none;
}

[data-theme="light"] img:hover {
    filter: brightness(1.02);
}

/* Scrollbar Light Mode */
[data-theme="light"] .offcanvas-body::-webkit-scrollbar-thumb,
[data-theme="light"] .sidebar-sticky::-webkit-scrollbar-thumb {
    background: #c8d8b5;
}

[data-theme="light"] .offcanvas-body::-webkit-scrollbar-thumb:hover,
[data-theme="light"] .sidebar-sticky::-webkit-scrollbar-thumb:hover {
    background: #a8c89a;
}

/* Admin Profile Text Light Mode */
[data-theme="light"] .admin-profile-text {
    color: #2c3e50;
}

/* Navbar Logo Light Mode */
[data-theme="light"] .navbar-dark .navbar-logo {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.08));
}

/* Navbar User Light Mode */
[data-theme="light"] .navbar-user {
    color: #2c3e50;
}

/* Table Professional Light Mode */
[data-theme="light"] .table-professional tbody tr {
    background-color: #ffffff;
}

[data-theme="light"] .table-professional tbody tr:hover {
    background-color: #f5f8f0;
}

[data-theme="light"] .table-professional tbody tr:nth-child(even) {
    background-color: #fafcf8;
}

/* Form Control Professional Light Mode */
[data-theme="light"] .form-control-professional {
    background-color: #ffffff;
    border-color: #e0e8d5;
    color: #2c3e50;
}

[data-theme="light"] .form-control-professional:hover:not(:focus):not(:disabled) {
    border-color: #c8d8b5;
}

[data-theme="light"] .form-control-professional:focus {
    border-color: #6B8E23;
    box-shadow: 0 0 0 3px rgba(107, 142, 35, 0.15);
}

/* Notifications Dropdown Light Mode */
[data-theme="light"] .notifications-dropdown {
    background: #ffffff;
    border-color: #e0e8d5;
}

[data-theme="light"] .notifications-dropdown-header {
    background: #f5f8f0;
    border-bottom-color: #e0e8d5;
}

[data-theme="light"] .notifications-dropdown-header h6 {
    color: #2c3e50;
}

[data-theme="light"] .notification-item {
    border-bottom-color: #e0e8d5;
}

[data-theme="light"] .notification-item:hover {
    background-color: #f5f8f0;
}

[data-theme="light"] .notification-item.unread {
    background-color: rgba(107, 142, 35, 0.05);
}

[data-theme="light"] .notification-title {
    color: #2c3e50;
}

[data-theme="light"] .notification-message {
    color: #5a6c7d;
}

[data-theme="light"] .notification-time {
    color: #8a9aa7;
}

[data-theme="light"] .notifications-dropdown-footer {
    background: #f5f8f0;
    border-top-color: #e0e8d5;
}

[data-theme="light"] .notifications-dropdown-body::-webkit-scrollbar-track {
    background: #f5f8f0;
}
