/* ELO Assessment - Custom Styles */

:root {
    --elos-bronze: #9E5320;
    --elos-bronze-light: #C26A28;
    --elos-bronze-dark: #7A3F18;
}

/* Base */
* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* Tailwind-like utilities */
.bg-elos-bronze { background-color: var(--elos-bronze); }
.bg-elos-bronze-light { background-color: var(--elos-bronze-light); }
.text-elos-bronze { color: var(--elos-bronze); }
.border-elos-bronze { border-color: var(--elos-bronze); }

/* Sidebar Styles */
.sidebar {
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #9E5320 0%, #C26A28 50%, #9E5320 100%);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-brand img {
    height: auto;
    width: 85%;
    max-width: 200px;
    filter: brightness(0) invert(1);
}

/* Tablet */
@media (max-width: 1024px) {
    .sidebar-brand img {
        width: 80%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .sidebar-brand {
        padding: 1rem;
    }

    .sidebar-brand img {
        width: 70%;
        max-width: 160px;
    }
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem;
    padding-bottom: 1rem;
}

.sidebar-section {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    margin-top: 1rem;
}

.sidebar-section:first-child {
    margin-top: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-link svg,
.sidebar-link i {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Sidebar Menu Toggle Button */
.sidebar-menu-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar-menu-toggle-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
    margin-bottom: 0.5rem;
}

.toast-success {
    background-color: #10B981;
    color: white;
}

.toast-error {
    background-color: #EF4444;
    color: white;
}

.toast-warning {
    background-color: #F59E0B;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Cards */
.card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.table th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tbody tr:hover {
    background-color: #F9FAFB;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--elos-bronze);
    color: white;
}

.btn-primary:hover {
    background-color: var(--elos-bronze-dark);
    color: white;
}

.btn-secondary {
    background-color: #6B7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4B5563;
}

.btn-danger {
    background-color: #EF4444;
    color: white;
}

.btn-danger:hover {
    background-color: #DC2626;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #D1D5DB;
    color: #374151;
}

.btn-outline:hover {
    background-color: #F3F4F6;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--elos-bronze);
    box-shadow: 0 0 0 3px rgba(158, 83, 32, 0.1);
}

.form-input.input-validation-error {
    border-color: #EF4444;
}

.field-validation-error {
    color: #EF4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.validation-summary-errors {
    background-color: #FEE2E2;
    border: 1px solid #FECACA;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    color: #DC2626;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 1.25rem;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    height: 64px;
}

.login-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1.5rem;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background-color: #F3F4F6;
}

.page-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.page-content {
    padding: 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar {
        left: -260px;
        transition: left 0.3s ease;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 40;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-white { color: white; }
.text-red-600 { color: #DC2626; }
.text-red-700 { color: #B91C1C; }
.text-green-600 { color: #059669; }
.text-green-700 { color: #047857; }
.text-yellow-700 { color: #A16207; }
.text-blue-700 { color: #1D4ED8; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.bg-white { background-color: white; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #F3F4F6; }
.bg-gray-200 { background-color: #E5E7EB; }
.bg-red-50 { background-color: #FEF2F2; }
.bg-red-100 { background-color: #FEE2E2; }
.bg-green-50 { background-color: #ECFDF5; }
.bg-green-100 { background-color: #D1FAE5; }
.bg-yellow-50 { background-color: #FFFBEB; }
.bg-yellow-100 { background-color: #FEF3C7; }
.bg-blue-50 { background-color: #EFF6FF; }
.bg-blue-100 { background-color: #DBEAFE; }
.bg-orange-50 { background-color: #FFF7ED; }
.bg-orange-100 { background-color: #FFEDD5; }
.bg-purple-100 { background-color: #F3E8FF; }
.bg-purple-800 { color: #5B21B6; }

.border { border: 1px solid #E5E7EB; }
.border-t { border-top: 1px solid #E5E7EB; }
.border-b { border-bottom: 1px solid #E5E7EB; }
.border-2 { border-width: 2px; }
.border-gray-200 { border-color: #E5E7EB; }
.border-gray-300 { border-color: #D1D5DB; }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }

/* Spacing */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }

.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-4 { margin-left: 1rem; margin-right: 1rem; }

.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }

.pb-2 { padding-bottom: 0.5rem; }
.pb-4 { padding-bottom: 1rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Width/Height */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-28 { width: 7rem; }
.w-full { width: 100%; }

.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }

.min-w-0 { min-width: 0; }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Misc */
.cursor-pointer { cursor: pointer; }
.transition { transition: all 0.2s ease; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive Grid */
@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Badge/Tag styles */
.px-2.py-0\.5 {
    padding: 0.125rem 0.5rem;
}

/* ========================================
   NAVBAR HORIZONTAL STYLES
   ======================================== */

.elos-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #C26A28 0%, #9E5320 100%);
    z-index: 1000;
    padding: 0 1rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar-brand img {
    height: 36px;
    filter: brightness(0) invert(1);
}

/* Navbar Navigation */
.navbar-nav {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.navbar-nav .nav-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* Navbar Dropdowns */
.navbar-dropdown {
    position: relative;
}

/* Reset button styles in navbar */
.navbar-nav button,
.navbar-nav button.nav-link {
    background: transparent !important;
    border: none !important;
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.navbar-nav button.nav-link:not(:hover):not(.active) {
    background: transparent !important;
}

.navbar-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
}

.navbar-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.navbar-dropdown-toggle svg {
    width: 1rem;
    height: 1rem;
}

.navbar-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
    padding: 0.5rem 0;
    padding-top: 0.75rem;
    margin-top: 0;
}

/* Pseudo-element to bridge the gap between button and menu */
.navbar-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.navbar-dropdown:hover .navbar-dropdown-menu {
    display: block;
}

.navbar-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.navbar-dropdown-menu a:hover {
    background: #F3F4F6;
    color: var(--elos-bronze);
}

.navbar-dropdown-menu a svg {
    width: 1rem;
    height: 1rem;
    color: #6B7280;
}

.navbar-dropdown-menu a:hover svg {
    color: var(--elos-bronze);
}

/* Navbar Dropdown Items */
.navbar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
    cursor: pointer;
}

.navbar-dropdown-item:hover {
    background: #F3F4F6;
    color: var(--elos-bronze);
}

.navbar-dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0.5rem 0;
}

/* Navbar User Header */
.navbar-user-header {
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    color: #6B7280;
    font-weight: 500;
}

/* Navbar Right Section */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Navbar Icon Button */
.navbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.navbar-icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.navbar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.navbar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggle-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* User Dropdown in Navbar */
.navbar-user-dropdown {
    position: relative;
}

.navbar-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.navbar-user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.navbar-user-name {
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.navbar-user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
    padding: 0.5rem 0;
    padding-top: 0.75rem;
    margin-top: 0;
}

/* Pseudo-element to bridge the gap */
.navbar-user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.navbar-user-dropdown-menu.show,
.navbar-user-dropdown.open .navbar-user-dropdown-menu {
    display: block;
}

.navbar-user-dropdown-menu a,
.navbar-user-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.navbar-user-dropdown-menu a:hover,
.navbar-user-dropdown-menu button:hover {
    background: #F3F4F6;
    color: var(--elos-bronze);
}

.navbar-user-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0.5rem 0;
}

.navbar-user-dropdown-menu svg {
    width: 1rem;
    height: 1rem;
    color: #6B7280;
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-toggle-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Main Content Layout Adjustments */
.main-content.navbar-layout {
    margin-left: 0 !important;
    padding-top: 60px;
}

/* Hide sidebar when navbar layout is active */
body.navbar-layout-active .sidebar {
    display: none !important;
}

body.navbar-layout-active .elos-navbar {
    display: flex !important;
}

/* Responsive adjustments for navbar */
@media (max-width: 1024px) {
    .navbar-nav .nav-link span {
        display: none;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem;
    }

    .navbar-dropdown-toggle span {
        display: none;
    }

    .navbar-dropdown-toggle {
        padding: 0.5rem;
    }

    .navbar-user-name {
        display: none;
    }
}

@media (max-width: 768px) {
    .elos-navbar {
        padding: 0 0.5rem;
    }

    .navbar-nav {
        gap: 0;
    }

    .navbar-dropdown-menu {
        position: fixed;
        left: 0.5rem;
        right: 0.5rem;
        width: auto;
    }
}

/* ========================================
   MULTI-SELECT WITH TAGS COMPONENT
   ======================================== */

.multi-select-container {
    position: relative;
}

.multi-select-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.5rem 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.multi-select-wrapper:hover {
    border-color: #9CA3AF;
}

.multi-select-wrapper:focus-within {
    border-color: var(--elos-bronze);
    box-shadow: 0 0 0 3px rgba(158, 83, 32, 0.1);
}

.multi-select-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.625rem;
    background: #1F2937;
    color: white;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.multi-select-tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 0;
}

.multi-select-tag-remove:hover {
    opacity: 1;
}

.multi-select-tag-remove svg {
    width: 0.75rem;
    height: 0.75rem;
}

.multi-select-placeholder {
    color: #9CA3AF;
    font-size: 0.875rem;
}

.multi-select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6B7280;
    pointer-events: none;
}

.multi-select-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

.multi-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 0.25rem;
    display: none;
}

.multi-select-dropdown.open {
    display: block;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.15s;
}

.multi-select-option:hover {
    background: #F3F4F6;
}

.multi-select-option.selected {
    background: rgba(158, 83, 32, 0.1);
    color: var(--elos-bronze);
}

.multi-select-option-checkbox {
    width: 1rem;
    height: 1rem;
    border: 2px solid #D1D5DB;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.multi-select-option.selected .multi-select-option-checkbox {
    background: var(--elos-bronze);
    border-color: var(--elos-bronze);
}

.multi-select-option.selected .multi-select-option-checkbox svg {
    width: 0.75rem;
    height: 0.75rem;
    color: white;
}

/* Hidden native select */
.multi-select-native {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ========================================
   EMPRESA SWITCHER COMPONENT
   ======================================== */

.empresa-switcher {
    position: relative;
    margin-right: 0.75rem;
}

.empresa-switcher.viewing-other .empresa-switcher-btn {
    background: rgba(217, 119, 6, 0.25);
    border-color: rgba(217, 119, 6, 0.5);
}

.empresa-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 220px;
}

.empresa-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.empresa-switcher-icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.empresa-switcher-indicator {
    width: 1.125rem;
    height: 1.125rem;
    color: #FCD34D;
    flex-shrink: 0;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.empresa-switcher-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.empresa-switcher-arrow {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.2s;
}

.empresa-switcher-dropdown.open .empresa-switcher-arrow {
    transform: rotate(180deg);
}

.empresa-switcher-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 300px;
    max-width: 360px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1002;
    margin-top: 0.5rem;
    overflow: hidden;
}

.empresa-switcher-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.empresa-switcher-dropdown.open .empresa-switcher-menu {
    display: block;
}

.empresa-switcher-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #B45309;
    border-bottom: 1px solid #E5E7EB;
    background: #FFFBEB;
}

.empresa-switcher-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #E5E7EB;
    background: #F9FAFB;
}

.empresa-switcher-search svg {
    width: 1rem;
    height: 1rem;
    color: #9CA3AF;
    flex-shrink: 0;
}

.empresa-switcher-search input {
    flex: 1;
    padding: 0.375rem 0;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
}

.empresa-switcher-search input::placeholder {
    color: #9CA3AF;
}

.empresa-switcher-list {
    max-height: 280px;
    overflow-y: auto;
}

.empresa-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.empresa-switcher-item:hover {
    background: #F3F4F6;
}

.empresa-switcher-item.selected {
    background: rgba(158, 83, 32, 0.08);
    color: var(--elos-bronze);
    font-weight: 500;
}

.empresa-switcher-item.return-btn {
    color: var(--elos-bronze);
    font-weight: 500;
}

.empresa-switcher-item.return-btn:hover {
    background: rgba(158, 83, 32, 0.1);
}

.empresa-switcher-item svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.empresa-switcher-item .check-icon {
    color: var(--elos-bronze);
}

.empresa-switcher-divider {
    height: 1px;
    background: #E5E7EB;
}

/* Hide items filtered out */
.empresa-switcher-item.hidden {
    display: none !important;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .empresa-switcher-name {
        max-width: 100px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .empresa-switcher-name {
        display: none;
    }

    .empresa-switcher-btn {
        padding: 0.5rem;
    }

    .empresa-switcher-menu {
        position: fixed;
        top: 60px;
        left: 0.5rem;
        right: 0.5rem;
        min-width: auto;
        max-width: none;
    }
}

/* Sidebar version adjustments */
.sidebar-footer .empresa-switcher {
    margin-right: 0;
    margin-bottom: 0.75rem;
    width: 100%;
}

.sidebar-footer .empresa-switcher-btn {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
}

.sidebar-footer .empresa-switcher-name {
    max-width: none;
    flex: 1;
}

.sidebar-footer .empresa-switcher-menu {
    bottom: 100%;
    top: auto;
    left: 0;
    right: 0;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.sidebar-footer .empresa-switcher-menu::before {
    top: auto;
    bottom: -10px;
}
