/* LOCK Application - Dark Violet Theme (Inspired by uploaded image) */

/* ===== VARIABLES ===== */
:root {
    --primary-violet: #6B46C1;
    --light-violet: #8B5CF6;
    --dark-violet: #4C1D95;
    --darker-violet: #2E1065;
    --pale-violet: #F3E8FF;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --dark-bg: #0F0F0F;
    --dark-surface: #1A1A1A;
    --dark-card: #252525;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ESTABLISHMENTS PAGE - STATISTICS RESPONSIVE ===== */
/* Statistics grid for establishments page */
.establishments-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0 -10px 20px -10px; /* Étendre sur les bords */
    padding: 0 10px; /* Ajouter padding interne */
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .establishments-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 0 -5px 20px -5px; /* Moins d'espace sur mobile */
        padding: 0 5px;
    }
    
    .establishments-stats-grid > div {
        padding: 12px !important;
        text-align: center;
    }
    
    .establishments-stats-grid > div div:first-child {
        font-size: 1.25rem !important;
    }
    
    .establishments-stats-grid > div div:last-child {
        font-size: 0.75rem !important;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .establishments-stats-grid {
        gap: 10px;
        margin: 0 -3px 20px -3px; /* Encore moins d'espace sur petits écrans */
        padding: 0 3px;
    }
    
    .establishments-stats-grid > div {
        padding: 10px !important;
    }
    
    .establishments-stats-grid > div div:first-child {
        font-size: 1.1rem !important;
    }
}

.main-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--primary-violet) 0%, var(--dark-violet) 100%);
    border-right: none;
    box-shadow: 2px 0 20px rgba(107, 70, 193, 0.3);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    max-height: 100vh;
}

.content {
    flex: 1;
    margin-left: 280px;
    padding: 30px 30px 30px 30px;
    background: var(--gray-50);
}

/* ===== SIDEBAR USER ===== */
.sidebar-user {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 12px;
    margin: 10px 10px 15px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: calc(100% - 20px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.sidebar-logo-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-logo-icon i {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.user-avatar-large:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.user-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.user-details .user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-details .user-email {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.user-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    backdrop-filter: blur(10px);
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    overflow: hidden;
}

.user-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-violet), var(--light-violet));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.user-action-btn:hover::before {
    opacity: 1;
}

.user-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.user-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.user-action-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--white);
    transition: transform 0.3s ease;
    z-index: 1;
}

.user-action-btn:hover svg {
    transform: translateY(-1px);
}

.user-action-btn i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--white);
    transition: transform 0.3s ease;
    z-index: 1;
}

.user-action-btn:hover i {
    transform: translateY(-1px);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 45px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 30px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    color: var(--gray-600);
}

.sidebar-toggle:hover {
    background: var(--gray-100);
}

/* ===== NOTIFICATIONS ===== */
.notification-dropdown {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    color: var(--gray-600);
    transition: background-color 0.2s;
}

.notification-btn:hover {
    background: var(--gray-100);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.notification-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 300px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.notification-menu.show {
    display: block;
}

.notification-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.notification-header span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.notification-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.notification-icon.info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.notification-desc {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.notification-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.notification-footer a {
    font-size: 0.75rem;
    color: var(--primary-violet);
    text-decoration: none;
    font-weight: 500;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* ===== USER MENU ===== */
.user-dropdown {
    position: relative;
}

.user-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-700);
    transition: background-color 0.2s;
}

.user-btn:hover {
    background: var(--gray-100);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.user-menu.show {
    display: block;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.user-menu-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.user-menu-item.logout {
    color: var(--error);
}

.user-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.05);
}

.user-menu-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    position: relative;
}

.nav-icon {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s;
}

.nav-icon:hover {
    background: var(--gray-100);
}

.indicator {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--white);
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    transition: background-color 0.2s;
}

.nav-link:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.sidebar-logo {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.sidebar-logo .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 10px;
}

.sidebar-logo .logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
}

.logo-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.logo-slogan {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0.9;
}

.sidebar-logo .sidebar-logo-icon {
    width: 80px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-logo .sidebar-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: none;
    margin: 0;
    padding: 0;
    display: block;
}

.sidebar-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-violet), var(--light-violet));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 4px;
}

.sidebar-header {
    padding: 12px 20px 6px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.sidebar-header:first-child {
    margin-top: 0;
}

.sidebar-item.active .nav-item {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.sidebar-item.active .nav-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--white);
    border-radius: 2px;
}

.align-middle {
    vertical-align: middle;
}

/* ===== NAVIGATION ===== */
.nav {
    padding: 10px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin: 2px 12px;
    border-radius: 6px;
    font-size: 0.9375rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--white);
    border-radius: 2px;
}

.nav-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: var(--white) !important;
}

/* ===== NAVBAR ===== */
.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 1rem;
    width: 100%;
    height: 35px;
    background: var(--white);
}

.navbar-expand {
    flex-flow: row nowrap;
    justify-content: flex-start;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-align {
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.25rem 0.5rem;
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
    font-size: 0.875rem;
}

.nav-link:hover {
    color: rgba(0, 0, 0, 0.7);
}

.navbar-bg {
    background: var(--white);
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
    cursor: pointer;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: 0;
}

.hamburger span {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger::after {
    bottom: 0;
}

/* ===== DROPDOWN ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

.dropdown-menu-lg {
    min-width: 25rem;
}

.dropdown-menu-header {
    padding: 0.75rem 1rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
}

.dropdown-menu-footer {
    padding: 0.5rem 1rem;
    border-top: 1px solid #dee2e6;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover {
    color: #1e2125;
    background-color: #e9ecef;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid #dee2e6;
}

/* ===== LIST GROUP ===== */
.list-group {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: 0.25rem;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    color: #212529;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.list-group-item:last-child {
    border-bottom-right-radius: inherit;
    border-bottom-left-radius: inherit;
}

.list-group-item:hover {
    z-index: 1;
    color: #495057;
    text-decoration: none;
    background-color: #f8f9fa;
}

/* ===== GRID ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    padding-right: 15px;
    padding-left: 15px;
}

.col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
    padding-right: 15px;
    padding-left: 15px;
}

.g-0 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.align-items-center {
    align-items: center;
}

/* ===== UTILITIES ===== */
/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        padding: 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    /* Stats grid mobile */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    
    /* Table mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .table-responsive table {
        min-width: 650px;
        width: auto;
    }
    
    /* Forcer l'affichage du scrollbar sur mobile */
    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: var(--gray-100);
        border-radius: 3px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: var(--gray-400);
        border-radius: 3px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: var(--gray-500);
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* Dashboard header mobile */
    .dashboard-header h1 {
        font-size: 1.5rem;
    }
    
    .dashboard-header p {
        font-size: 0.9rem;
    }
    
    /* Afficher le bouton hamburger sur mobile */
    .sidebar-toggle {
        display: flex !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: var(--primary-violet);
        border: none;
        border-radius: 6px;
        padding: 8px;
        box-shadow: 0 2px 8px rgba(107, 70, 193, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        animation: pulse 2s infinite;
    }
    
    .sidebar-toggle:hover {
        background: var(--light-violet);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(107, 70, 193, 0.4);
    }
    
    .sidebar-toggle:active {
        transform: scale(0.95);
        transition: all 0.1s ease;
    }
    
    .sidebar-toggle svg {
        color: var(--white);
        transition: transform 0.3s ease;
    }
    
    .sidebar-toggle:hover svg {
        transform: rotate(180deg);
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(107, 70, 193, 0.7);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(107, 70, 193, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(107, 70, 193, 0);
        }
    }
}

@media (max-width: 480px) {
    .header {
        height: 50px;
    }
    
    .content {
        padding: 50px 10px 10px 10px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .notification-menu {
        min-width: 250px;
    }
    
    .user-menu {
        min-width: 160px;
    }
    
    .sidebar-toggle {
        top: 10px;
        left: 10px;
        padding: 6px;
    }
}

/* ===== SIDEBAR TOGGLE ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}

/* Cacher le bouton hamburger sur desktop */
.sidebar-toggle {
    display: none;
}

/* ===== TABLE STYLES ===== */
.table {
    background: var(--white) !important;
    color: var(--gray-900) !important;
    border-collapse: collapse;
}

.table thead th {
    background: var(--gray-50) !important;
    color: var(--gray-900) !important;
    font-weight: 600;
    border-bottom: 2px solid var(--gray-200);
    padding: 12px 14px;
}

.table tbody td {
    color: var(--gray-900) !important;
    padding: 14px;
    border-bottom: 1px solid var(--gray-100);
}

.table tbody tr:hover {
    background: var(--gray-50) !important;
}

.table .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.badge-success {
    background: var(--success) !important;
    color: var(--white) !important;
}

.badge-warning {
    background: var(--warning) !important;
    color: var(--white) !important;
}

.badge-danger {
    background: var(--error) !important;
    color: var(--white) !important;
}

/* ===== STATS CARDS ===== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    width: 24px;
    height: 24px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats cards colors */
.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.stat-card:nth-child(4) .stat-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

/* Stats grid mobile */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
    
    .stat-icon i {
        width: 20px;
        height: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ===== UTILITIES ===== */

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.d-none {
    display: none;
}

.d-sm-none {
    display: none;
}

.d-sm-inline-block {
    display: inline-block;
}

@media (min-width: 576px) {
    .d-sm-none {
        display: none;
    }
    .d-sm-inline-block {
        display: inline-block;
    }
}

.me-1 {
    margin-right: 0.25rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.py-0 {
    padding-top: 0;
    padding-bottom: 0;
}

.position-relative {
    position: relative;
}

.align-self-center {
    align-self: center;
}

.align-middle {
    vertical-align: middle;
}

.text-dark {
    color: #212529;
}

.text-muted {
    color: #6c757d;
}

.text-warning {
    color: #ffc107;
}

.text-danger {
    color: #dc3545;
}

.text-info {
    color: #0dcaf0;
}

.small {
    font-size: 0.875em;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded {
    border-radius: 0.25rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-violet), var(--light-violet));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 70, 193, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 70, 193, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-violet);
    border: 2px solid var(--primary-violet);
}

.btn-secondary:hover {
    background: var(--primary-violet);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-violet);
    border: 1px solid var(--primary-violet);
}

.btn-outline:hover {
    background: var(--pale-violet);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.card-subtitle {
    color: var(--gray-500);
    font-size: 0.95rem;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--gray-900);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236B46C1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-violet);
    color: var(--white);
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}

.badge-error {
    background: var(--error);
    color: var(--white);
}

.badge-outline {
    background: transparent;
    color: var(--primary-violet);
    border: 1px solid var(--primary-violet);
}

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ===== TABLES ===== */
.table {
    width: 100%;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.table th {
    background: rgba(107, 70, 193, 0.1);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

.table tr:hover {
    background: rgba(107, 70, 193, 0.05);
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ===== LOADING ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-violet);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .content {
        padding: 15px;
    }
    
    .card-header,
    .card-body,
    .card-footer {
        padding: 20px;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }

.shadow { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }

/* ===== FORM CONTROLS ===== */
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--gray-800);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    background: var(--pale-violet);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: var(--gray-800);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-violet);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    background: var(--pale-violet);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
    font-size: 14px;
}

/* ===== ROOM DETAILS PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Header responsive */
    .dashboard-header div {
        flex-direction: column !important;
        gap: 15px !important;
        text-align: center;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem !important;
    }
    
    .dashboard-header p {
        font-size: 0.9rem !important;
    }
    
    /* Layout 2 colonnes -> 1 colonne */
    div[style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Cartes */
    .card {
        margin-bottom: 20px !important;
    }
    
    /* Statistiques */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .stat-card {
        padding: 15px !important;
        min-width: auto !important;
    }
    
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
    }
    
    .stat-label {
        font-size: 12px !important;
    }
    
    /* Tableau */
    div[style*="max-height: 400px"] {
        max-height: 300px !important;
    }
    
    table {
        font-size: 12px !important;
    }
    
    th, td {
        padding: 8px 4px !important;
        font-size: 11px !important;
    }
    
    /* Avatars */
    div[style*="width: 24px"] {
        width: 20px !important;
        height: 20px !important;
    }
    
    span[style*="font-size: 10px"] {
        font-size: 8px !important;
    }
    
    /* Badges */
    .badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    /* Recherche */
    input[placeholder*="Rechercher"] {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    /* Header du tableau */
    .dashboard-header h4 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    /* Footer pagination */
    .card-footer {
        padding: 10px 15px !important;
    }
    
    .btn-xs {
        padding: 2px 4px !important;
        font-size: 9px !important;
    }
    
    /* Galerie */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    
    /* Modal */
    .modal-content {
        padding: 20px !important;
        width: 95% !important;
    }
    
    /* Bouton retour */
    .btn-secondary {
        padding: 6px 12px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    /* Statistiques en 1 colonne sur très petit écran */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Galerie encore plus petite */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Tableau plus compact */
    th, td {
        padding: 6px 2px !important;
        font-size: 10px !important;
    }
    
    /* Header plus petit */
    .dashboard-header h1 {
        font-size: 1.3rem !important;
    }
}
