/**
 * Estilos Globales - Plataforma de Acompañamiento de Futbolistas
 * Diseño profesional con tema oscuro y color lima de contraste
 */

:root {
    /* Color Lima - Acento principal */
    --primary-color: #CDDC39;
    --primary-dark: #AFB42B;
    --primary-light: #D4E157;
    --primary-lighter: rgba(205, 220, 57, 0.15);
    
    /* Fondos oscuros */
    --background: #121212;
    --surface: #1e1e1e;
    --surface-elevated: #2a2a2a;
    
    /* Textos */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    
    /* Bordes y separadores */
    --border-color: #333333;
    --border-light: #2a2a2a;
    
    /* Estados */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    
    /* Sombras oscuras */
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-md: rgba(0, 0, 0, 0.4);
    --shadow-lg: rgba(0, 0, 0, 0.5);
    --shadow-lima: rgba(205, 220, 57, 0.2);
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #CDDC39 0%, #D4E157 100%);
    --gradient-dark: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    --gradient-lima: linear-gradient(135deg, rgba(205, 220, 57, 0.1) 0%, rgba(205, 220, 57, 0.05) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
    background: #1a1a1a;
    border-bottom: 1px solid rgba(205, 220, 57, 0.2);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background-color: rgba(26, 26, 26, 0.98);
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    gap: 3rem;
    position: relative;
    z-index: 1001;
}

.header-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-image {
    height: 64px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #CDDC39 0%, #D4E157 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo-icon {
    font-size: 1.75rem;
    filter: grayscale(0.2);
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 0.15rem;
    line-height: 1;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: space-between;
    transition: right 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #CDDC39 0%, #D4E157 100%);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
    flex-shrink: 0;
}

.mobile-menu-toggle:hover span {
    background: linear-gradient(90deg, #D4E157 0%, #CDDC39 100%);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    min-height: 40px;
    touch-action: manipulation;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-icon {
    font-size: 1rem;
    line-height: 1;
}

.nav-menu a:hover {
    background: rgba(205, 220, 57, 0.1);
    color: #CDDC39;
}

.nav-menu a:active,
.nav-menu a.active {
    background: rgba(205, 220, 57, 0.15);
    color: #CDDC39;
    font-weight: 600;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    margin-left: 0.5rem;
    display: inline-block;
    opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid rgba(205, 220, 57, 0.15);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    margin: 0;
}

.nav-dropdown-menu a {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    color: var(--text-primary);
    font-size: 0.875rem;
    border-radius: 0;
    min-height: 40px;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: rgba(205, 220, 57, 0.1);
    color: #CDDC39;
    padding-left: 1.5rem;
}

.nav-subdropdown {
    position: relative;
}

.nav-subdropdown > .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
}

.nav-subdropdown > .nav-dropdown-toggle .dropdown-arrow {
    transition: transform 0.2s ease;
}

.nav-submenu {
    position: absolute;
    top: 0;
    left: calc(100% + 0.5rem);
    background-color: #1e1e1e;
    border: 1px solid #333333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-submenu li {
    margin: 0;
}

.nav-submenu a {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-subdropdown:hover > .nav-submenu,
.nav-subdropdown.active > .nav-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-subdropdown:hover > .nav-dropdown-toggle .dropdown-arrow,
.nav-subdropdown.active > .nav-dropdown-toggle .dropdown-arrow {
    transform: rotate(90deg);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-left: 1.75rem;
    border-left: 1px solid rgba(205, 220, 57, 0.2);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

.user-name {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.user-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.user-name a:hover {
    color: #CDDC39;
}

.user-role {
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.btn-icon {
    padding: 0.5rem;
    min-width: auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(205, 220, 57, 0.08);
    border: 1px solid rgba(205, 220, 57, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

.btn-icon:hover {
    background: rgba(205, 220, 57, 0.15);
    border-color: rgba(205, 220, 57, 0.3);
    color: #CDDC39;
}

.btn-logout:hover {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f87171;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.625rem 1rem;
    box-shadow: none;
    font-weight: 500;
}

.btn-text:hover {
    background-color: var(--surface-elevated);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: #121212;
    border: 1px solid var(--primary-color);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: #121212;
    box-shadow: 0 2px 8px var(--shadow-lima);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-elevated);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    min-height: 48px;
    min-width: 120px;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    min-height: 40px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 50%, #121212 100%);
    border-top: 2px solid rgba(205, 220, 57, 0.15);
    padding: 4rem 2.5rem 2rem;
    color: var(--text-secondary);
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(205, 220, 57, 0.3) 50%, transparent 100%);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-image {
    height: 44px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    opacity: 0.95;
    transition: all 0.3s ease;
    filter: brightness(1.05);
}

.footer-logo-image:hover {
    opacity: 1;
    filter: brightness(1.15);
    transform: scale(1.02);
}

.footer-logo {
    background: linear-gradient(135deg, #CDDC39 0%, #D4E157 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    opacity: 0.85;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.375rem 0;
    position: relative;
    opacity: 0.85;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: all 0.2s ease;
    opacity: 0;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.75rem;
    opacity: 1;
}

.footer-links a:hover::before {
    width: 4px;
    opacity: 1;
    left: 0;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(205, 220, 57, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    opacity: 0.75;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 0 0.25rem;
}

.footer-bottom a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-version {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-heading {
        font-size: 0.8125rem;
        margin-bottom: 0.875rem;
    }
    
    .footer-logo-image {
        height: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Cards */
.card {
    background-color: var(--surface);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    border-color: rgba(205, 220, 57, 0.4);
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

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

/* Forms */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background-color: var(--surface-elevated);
    color: var(--text-primary);
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(205, 220, 57, 0.2);
    background-color: var(--surface-elevated);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.9375rem;
    background-color: var(--surface-elevated);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    min-height: 44px;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(205, 220, 57, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    background-color: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.table th,
.table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--surface-elevated);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: var(--surface-elevated);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--gradient-primary);
    color: #121212;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.95;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: 0 2px 4px var(--shadow);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border-left-color: var(--success);
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.15);
    color: #e57373;
    border-left-color: var(--error);
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    border-left-color: var(--warning);
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
    border-left-color: var(--info);
}

/* Navigation Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 3px solid var(--border-color);
    margin-bottom: 2rem;
    background-color: var(--surface);
    border-radius: 8px 8px 0 0;
    padding: 0.5rem;
}

.tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.tab:hover {
    color: var(--primary-color);
    background-color: var(--primary-lighter);
}

.tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
    background-color: var(--primary-lighter);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .header-content {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
    }
    
    .nav-menu a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .nav-icon {
        font-size: 0.9rem;
    }
    
    .user-info {
        display: none;
    }
    
    .user-menu {
        padding-left: 0.75rem;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        padding: 1rem;
        position: relative;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }
    
    .logo-image {
        height: 56px;
        max-width: 240px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        order: 2;
        margin-left: auto;
        z-index: 1003 !important;
        position: relative !important;
    }
    
    .mobile-menu-toggle span {
        background: var(--text-primary) !important;
    }
    
    /* Header Navigation - Mobile */
    .header-nav {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1002;
        gap: 0;
        flex: none !important;
        display: flex !important;
        margin: 0 !important;
        border-left: 2px solid rgba(205, 220, 57, 0.3);
        opacity: 0;
        visibility: hidden;
    }
    
    .header-nav.nav-open {
        right: 0 !important;
        opacity: 1;
        visibility: visible;
    }
    
    .header-nav .nav-menu {
        width: 100%;
        padding-top: 4.5rem;
        padding-bottom: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(205, 220, 57, 0.1);
    }
    
    .nav-menu > li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 0;
        justify-content: flex-start;
        min-height: 48px;
        transition: all 0.2s ease;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus,
    .nav-menu a:active {
        background: rgba(205, 220, 57, 0.1);
        border-left: 4px solid #CDDC39;
        padding-left: calc(1.5rem - 4px);
        color: #CDDC39;
    }
    
    .nav-icon {
        font-size: 1.125rem;
        min-width: 24px;
    }
    
    /* Dropdown Menu - Mobile (Accordion) */
    .nav-dropdown {
        width: 100%;
    }
    
    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        min-height: 48px;
        cursor: pointer;
    }
    
    .nav-dropdown-toggle .dropdown-arrow {
        transition: transform 0.3s ease;
        margin-left: auto;
    }
    
    .nav-dropdown.active .nav-dropdown-toggle {
        background: rgba(205, 220, 57, 0.1);
        border-left: 4px solid #CDDC39;
        padding-left: calc(1.5rem - 4px);
        color: #CDDC39;
    }
    
    .nav-dropdown.active .nav-dropdown-toggle .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .nav-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-top: 1px solid rgba(205, 220, 57, 0.1) !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: auto !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease !important;
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    .nav-dropdown.active .nav-dropdown-menu {
        max-height: 800px;
        padding: 0.5rem 0 !important;
    }
    
    .nav-dropdown-menu li {
        width: 100%;
        margin: 0;
    }
    
    .nav-dropdown-menu a {
        width: 100%;
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
        border-radius: 0;
        min-height: 44px;
        background-color: transparent;
        transition: all 0.2s ease;
    }
    
    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:focus,
    .nav-dropdown-menu a:active {
        background-color: rgba(205, 220, 57, 0.08);
        border-left: 4px solid var(--primary-color);
        padding-left: calc(2rem - 4px);
        color: var(--primary-color);
    }

    .nav-subdropdown {
        width: 100%;
    }

    .nav-subdropdown > .nav-dropdown-toggle {
        padding: 0.875rem 2rem;
    }
    
    .nav-subdropdown.active > .nav-dropdown-toggle {
        background: rgba(205, 220, 57, 0.08);
        border-left: 4px solid var(--primary-color);
        padding-left: calc(2rem - 4px);
        color: var(--primary-color);
    }

    .nav-subdropdown > .nav-dropdown-toggle .dropdown-arrow {
        transition: transform 0.3s ease;
    }

    .nav-submenu {
        position: static !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: rgba(0, 0, 0, 0.2) !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-subdropdown.active > .nav-submenu {
        max-height: 500px;
        padding: 0.5rem 0 !important;
    }
    
    .nav-submenu a {
        padding: 0.875rem 3rem;
        font-size: 0.9rem;
        transition: all 0.2s ease;
    }
    
    .nav-submenu a:hover,
    .nav-submenu a:focus,
    .nav-submenu a:active {
        background-color: rgba(205, 220, 57, 0.08);
        border-left: 4px solid var(--primary-color);
        padding-left: calc(3rem - 4px);
        color: var(--primary-color);
    }

    .nav-subdropdown.active > .nav-dropdown-toggle .dropdown-arrow {
        transform: rotate(90deg);
    }
    
    /* User Menu - Mobile */
    .user-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        border-left: none;
        border-top: 2px solid rgba(205, 220, 57, 0.2);
        padding: 1.5rem 1.5rem 2rem;
        margin-top: auto;
        margin-left: 0;
        margin-right: 0;
        background: rgba(0, 0, 0, 0.2);
    }
    
    .user-info {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .user-name {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .user-name a {
        color: var(--text-primary);
    }
    
    .user-role {
        font-size: 0.85rem;
        opacity: 0.8;
    }
    
    .btn-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        align-self: flex-start;
    }
    
    body.nav-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    body.nav-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(2px);
        z-index: 1001;
        animation: fadeIn 0.3s ease;
        cursor: pointer;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    /* Form responsive */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control,
    .form-select {
        font-size: 1rem;
        padding: 0.75rem;
        min-height: 44px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .btn {
        min-height: 44px;
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .btn-large {
        min-height: 48px;
        padding: 0.875rem 2rem;
    }
    
    .btn-small {
        min-height: 40px;
    }
    
    /* Tables responsive */
    .table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .table thead,
    .table tbody {
        display: table;
        width: 100%;
        table-layout: auto;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        min-height: 44px;
        white-space: nowrap;
    }
    
    .table th {
        font-weight: 600;
        background: var(--surface-elevated);
    }
    
    .table td {
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Tabs responsive */
    .tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab {
        padding: 0.875rem 1.5rem;
        min-height: 44px;
        font-size: 0.95rem;
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.25rem 0.75rem;
    }
    
    .card {
        padding: 1.25rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.95rem;
        padding: 0.7rem 1.25rem;
        width: 100%;
    }
    
    .form-control,
    .form-select {
        font-size: 0.95rem;
        padding: 0.7rem 0.875rem;
    }
    
    .table th,
    .table td {
        font-size: 0.8rem;
        padding: 0.625rem;
    }
    
    .nav-menu a {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
        min-height: 44px;
    }
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin: 1.5rem 0;
    background-color: var(--surface);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px var(--shadow);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.badge-warning {
    background-color: var(--warning);
    color: #333;
}

.badge-danger {
    background-color: var(--error);
    color: white;
}

.badge-secondary {
    background-color: var(--text-secondary);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--surface);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--border-color);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.modal-close {
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Page Title */
.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

/* Section Title */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Quick Action Cards */
.quick-action-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.quick-action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-md);
    border-color: var(--primary-color);
    text-decoration: none;
    color: inherit;
}

.quick-action-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.quick-action-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.quick-action-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
