/* Admin Dashboard Styles - Dark Mode Professional */

:root {
    /* Colores Dark Mode inspirados en la web */
    --primary-color: #4D53FF;
    --primary-dark: #2E35F5;
    --primary-light: #6B70FF;
    --secondary-color: #FF5A3D;
    --secondary-dark: #FF3D1A;
    --secondary-light: #FF7A64;
    --accent-color: #fbbf24;

    /* Fondos oscuros */
    --bg-primary: #0a0e2e;
    --bg-secondary: #111533;
    --bg-tertiary: #1a1f45;

    /* Textos con EXCELENTE contraste mejorado */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e1;

    /* Bordes y separadores */
    --border-color: #2a2f55;

    /* Efectos hover mejorados */
    --hover-primary: rgba(77, 83, 255, 0.2);
    --hover-secondary: rgba(255, 90, 61, 0.2);

    /* Sombras */
    --shadow: 0 10px 30px rgba(77, 83, 255, 0.3);
    --shadow-lg: 0 20px 50px rgba(77, 83, 255, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body {
    margin: 0;
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
}

/* Títulos globales con excelente contraste */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

/* Fondo animado sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(46, 53, 245, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(255, 61, 26, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

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

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.sidebar-link:hover {
    background: var(--hover-primary);
    color: var(--text-primary);
    transform: translateX(5px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: var(--shadow-sm);
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.topbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.content-area {
    padding: 2rem;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow);
}

/* Variantes de iconos para diferentes stats */
.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stat-icon.green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Table */
.table-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    overflow-x: auto;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.table-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border-color);
}

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

.table tbody tr:hover {
    background: var(--hover-primary);
}

.table td {
    padding: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

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

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.status-pending {
    background: rgba(234, 179, 8, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.status-confirmed {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-completed {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Buttons */

/* Botón principal grande (para "Añadir Servicio", etc.) */
.btn-primary {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(46, 53, 245, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 53, 245, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 53, 245, 0.3);
}

/* Botón secundario grande con mejor contraste */
.btn-secondary {
    padding: 0.875rem 1.75rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(77, 83, 255, 0.15);
}

.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 83, 255, 0.4);
    color: #ffffff;
}

/* Botones pequeños con mejor contraste */
.btn-small {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-tertiary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(77, 83, 255, 0.15);
}

.btn-small:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(77, 83, 255, 0.4);
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border: none;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(77, 83, 255, 0.3);
}

.btn-primary-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(77, 83, 255, 0.5);
}

.btn-logout {
    width: 100%;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

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

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Botón hamburguesa para móvil */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Overlay para cerrar sidebar en móvil */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Sidebar como overlay en móvil */
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    /* Main content sin margen en móvil */
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    /* Topbar más compacto */
    .topbar {
        padding: 1rem 1rem 1rem 4rem; /* Espacio para botón hamburguesa */
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .topbar-title {
        font-size: 1.25rem;
    }

    /* Content area más compacto */
    .content-area {
        padding: 1rem;
    }

    /* Stats grid en columna */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    /* Tabla responsive con scroll horizontal */
    .table-container {
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .table {
        min-width: 600px; /* Forzar scroll horizontal */
    }

    .table th,
    .table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* Botones más pequeños */
    .btn-small {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* User info compacto */
    .user-info {
        padding: 0.5rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .user-name {
        font-size: 0.85rem;
    }

    .user-email {
        font-size: 0.7rem;
    }
}

/* Mejoras adicionales para móviles pequeños */
@media (max-width: 480px) {
    .topbar {
        padding: 0.75rem 0.75rem 0.75rem 3.5rem;
    }

    .topbar-title {
        font-size: 1.1rem;
    }

    .content-area {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        top: 0.75rem;
        left: 0.75rem;
    }
}

/* ==========================================
   ESTILOS SUPER ADMIN DASHBOARD
   ========================================== */

/* Navegación con mejor contraste */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: var(--hover-primary);
    color: #ffffff;
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(77, 83, 255, 0.2);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(77, 83, 255, 0.4);
    font-weight: 700;
}

.nav-icon {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
}

.nav-text {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.logout-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Topbar actions */
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

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

.card-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.3px;
}

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

/* Stat sublabel */
.stat-sublabel {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Horizontal Bars Chart */
.horizontal-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.bar-item {
    display: grid;
    grid-template-columns: 120px 1fr 50px;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.bar-track {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.bar-value {
    color: var(--text-secondary);
    font-weight: 600;
    text-align: right;
}

/* Vertical Bars Chart */
.vertical-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 0.5rem;
    height: 250px;
    padding: 1rem 0;
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
}

.bar-vertical {
    width: 100%;
    max-width: 60px;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.bar-vertical-fill {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height 0.6s ease;
}

.bar-month {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.summary-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.summary-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.summary-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.summary-description {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Filters */
.filters-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-select,
.filter-input {
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(77, 83, 255, 0.2);
    background: var(--bg-secondary);
}

.filter-select option {
    background: var(--bg-secondary);
    color: #ffffff;
    font-weight: 600;
}

.filter-input {
    min-width: 250px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-primary);
}

.data-table th {
    text-align: left;
    padding: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

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

.data-table tbody tr:hover {
    background: var(--hover-primary);
}

.data-table td {
    padding: 1rem;
    color: var(--text-primary);
}

.business-name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.business-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Badges con mejor contraste */
.badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.badge-success {
    background: rgba(34, 197, 94, 0.25);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge-warning {
    background: rgba(234, 179, 8, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.badge-info {
    background: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.badge-inactive {
    background: rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Button Icon */
.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--hover-primary);
    transform: scale(1.1);
}

.btn-danger {
    padding: 0.75rem 1.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--hover-primary);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-item {
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.message-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.message-unread {
    background: rgba(46, 53, 245, 0.05);
    border-color: var(--primary-color);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-from {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-from strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.message-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.message-contact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.message-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Message Details */
.message-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-status-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-detail-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.message-content {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.message-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
}

.detail-value a {
    color: var(--primary-color);
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

/* Small Stat Cards */
.stat-card-small {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card-small:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-card-small .stat-value {
    font-size: 1.75rem;
}

.stat-card-small .stat-label {
    font-size: 0.85rem;
}

/* Admins List */
.admins-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
}

.admin-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-role {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: capitalize;
}

/* Growth Chart */
.growth-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 1rem;
    height: 280px;
    padding: 1rem;
}

.growth-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.5rem;
    min-width: 80px;
}

.growth-value {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
}

.growth-bar-container {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
}

.growth-bar-fill {
    width: 100%;
    border-radius: 8px 8px 0 0;
    transition: height 0.6s ease;
}

.growth-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

/* Type Distribution */
.type-distribution {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

.distribution-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.distribution-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.distribution-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.distribution-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.distribution-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.distribution-count {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.1rem;
}

.distribution-percentage {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.distribution-bar {
    height: 8px;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
}

.distribution-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-tertiary);
    padding: 1.25rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.metric-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.metric-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
}

.metric-icon {
    font-size: 1.5rem;
}

.metric-data {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.metric-row span {
    color: var(--text-secondary);
}

.metric-row strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.text-success {
    color: #22c55e !important;
}

.text-warning {
    color: #eab308 !important;
}

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

/* Status Chart */
.status-chart {
    padding: 1rem;
}

.status-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.status-legend {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.legend-label {
    flex: 1;
}

.legend-label strong {
    display: block;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-weight: 700;
    font-size: 1rem;
}

.legend-label span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Bookings Activity */
.bookings-activity {
    padding: 1rem;
}

.activity-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.activity-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.activity-bar {
    height: 12px;
    background: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
}

.activity-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}

.activity-percentage {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.activity-summary {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: -400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    min-width: 300px;
    max-width: 400px;
    transition: right 0.3s ease;
}

.notification.show {
    right: 2rem;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

/* Chart Container */
.chart-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Error Message */
.error-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 10px;
    color: #ff6b6b;
    text-align: center;
}

/* Stats Overview */
.stats-overview {
    margin-bottom: 2rem;
}

.stats-overview h2 {
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    font-size: 1.9rem;
    font-weight: 800;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--hover-primary);
    border-radius: 8px 8px 0 0;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
