/* ============================================
   SMARTCONVERS - Design Moderne Premium 2025
   Style moderne avec glassmorphism et gradients
   ============================================ */

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

:root {
    /* Couleurs modernes premium */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Backgrounds avec glassmorphism */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-dark: rgba(255, 255, 255, 0.1);
    --bg-overlay: rgba(0, 0, 0, 0.4);
    
    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Accents */
    --accent: #6366f1;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Borders avec glow */
    --border: rgba(226, 232, 240, 0.8);
    --border-glow: rgba(99, 102, 241, 0.3);
    
    /* Shadows modernes avec profondeur */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-colored: 0 10px 40px -10px rgba(99, 102, 241, 0.4);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    
    /* Radius moderne */
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 0.9375rem;
    --text-lg: 1rem;
    --text-xl: 1.125rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    
    /* Transitions fluides */
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 56px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LOGIN - Glassmorphism moderne
   ============================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
    opacity: 0.3;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(360deg); }
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-box h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: -0.02em;
}

.login-box p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
}

.login-box .form-group {
    margin-bottom: var(--space-5);
}

.login-box label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.login-box input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transition: all var(--transition);
    font-family: var(--font);
    height: 44px;
}

.login-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-glow);
    background: var(--bg-primary);
}

.login-box button {
    width: 100%;
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    height: 44px;
    margin-top: var(--space-4);
    box-shadow: var(--shadow-colored);
    position: relative;
    overflow: hidden;
}

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

.login-box button:hover::before {
    left: 100%;
}

.login-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-colored);
}

.login-box button:active {
    transform: translateY(0);
}

.error-message {
    font-size: var(--text-sm);
    color: var(--error);
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
    display: none;
    backdrop-filter: blur(10px);
}

.error-message.show {
    display: block;
    animation: slideUp 0.3s;
}

/* ============================================
   HEADER - Glassmorphism moderne
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0 var(--space-8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.header-brand {
    font-size: var(--text-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: transform var(--transition);
}

.header-brand:hover {
    transform: scale(1.05);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition);
    position: relative;
}

.header-nav-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.header-nav-item.active {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.15);
}

.header-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.header-user {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* ============================================
   NOTIFICATIONS STYLE FACEBOOK
   ============================================ */

.notification-bell-container {
    position: relative;
}

.notification-bell {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.bell-icon {
    font-size: var(--text-xl);
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--error);
    color: white;
    border-radius: var(--radius-full);
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    border: 2px solid var(--bg-primary);
    animation: pulse 2s infinite;
}

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

.notification-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    width: 360px;
    max-height: 500px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

.notification-dropdown-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
}

.notification-dropdown-header h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.notification-close-btn {
    background: none;
    border: none;
    font-size: var(--text-xl);
    color: var(--text-secondary);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.notification-close-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.notification-dropdown-content {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
}

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

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

.notification-item-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.notification-item-message {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.4;
}

.notification-item-time {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.notification-loading,
.notification-empty {
    padding: var(--space-8);
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.notification-empty-icon {
    font-size: var(--text-3xl);
    opacity: 0.3;
}

.header-user-info {
    text-align: right;
}

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

.header-user-role {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ============================================
   BUTTONS - Modernes avec effets
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    height: 36px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-colored);
}

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

.btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    height: 28px;
}

.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border-glow);
    box-shadow: var(--shadow);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-top: var(--header-height);
    padding: var(--space-8);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.5s ease-out;
}

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

.content-header {
    margin-bottom: var(--space-8);
}

.content-header h1 {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: 500;
}

.content-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* ============================================
   SECTIONS - Glassmorphism cards
   ============================================ */

.section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.section:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.section-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

/* ============================================
   FORMS - Modernes avec glassmorphism
   ============================================ */

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    transition: all var(--transition);
    font-family: var(--font);
    height: 40px;
}

/* ============================================
   SELECTS MODERNES - Style uniforme
   ============================================ */

.form-group select,
select {
    width: 100%;
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-4);
    font-size: var(--text-base);
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition);
    font-family: var(--font);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    height: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%236366f1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 12px;
}

.form-group select:hover,
select:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-hover);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%234f46e5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-group select:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background-color: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M10 8L6 4L2 8' stroke='%236366f1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-group select option,
select option {
    padding: var(--space-2);
    font-size: var(--text-base);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 400;
}

.form-group select option:checked,
select option:checked {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
}

/* Selects multiples */
select[multiple] {
    height: auto;
    min-height: 120px;
    padding: var(--space-2);
    background-image: none;
}

select[multiple] option {
    padding: var(--space-2) var(--space-3);
    margin: var(--space-1) 0;
    border-radius: var(--radius);
    cursor: pointer;
}

select[multiple] option:hover {
    background: var(--bg-hover);
}

select[multiple] option:checked {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

/* ============================================
   SELECTEUR DE SEMAINE - Style uniforme
   ============================================ */

.semaine-selector-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: var(--space-4);
}

.semaine-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.semaine-select-container {
    position: relative;
    width: 100%;
}

.semaine-select {
    /* Utilise le style global des selects */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-glow);
    background: var(--bg-primary);
}

.form-group input:hover,
.form-group select:hover {
    border-color: var(--border-glow);
    background: var(--bg-primary);
}

/* ============================================
   SITES GRID - Modernes avec hover effects
   ============================================ */

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.site-button {
    padding: var(--space-4) var(--space-5);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.site-button span {
    position: relative;
    z-index: 1;
}

.site-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-colored);
    border-color: var(--accent);
}

.site-button:hover::before {
    opacity: 0.1;
}

.site-button.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-lg), var(--shadow-colored);
}

.site-button.active::before {
    opacity: 1;
}

.site-button.active span {
    color: white;
}

/* ============================================
   QUICK FILL PANEL - Glassmorphism
   ============================================ */

.quick-fill-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
}

.quick-fill-panel h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
}

.quick-fill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

/* ============================================
   TABLES - Modernes avec glassmorphism
   ============================================ */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

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

table thead {
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

table th {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--border);
}

table td {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    font-size: var(--text-sm);
    color: var(--text-primary);
}

table tbody tr {
    transition: all var(--transition);
}

table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: scale(1.01);
}

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

table input[type="number"],
table input[type="time"] {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    width: 100%;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition);
}

table input[type="number"]:focus,
table input[type="time"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--bg-primary);
}

/* ============================================
   BADGES - Modernes
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* ============================================
   FILTERS GRID
   ============================================ */

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

/* ============================================
   EMPTY STATE
   ============================================ */

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

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-5);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ============================================
   TABS - Modernes
   ============================================ */

.tabs {
    display: flex;
    gap: var(--space-2);
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-6);
}

.tab {
    padding: var(--space-3) var(--space-4);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    transition: all var(--transition);
    margin-bottom: -2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

.tab.active {
    color: var(--accent);
    font-weight: 700;
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

@media (max-width: 768px) {
    .main-content {
        padding: var(--space-4);
    }
    
    .header {
        padding: 0 var(--space-4);
    }
    
    .header-nav {
        display: none;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-fill-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   SCROLLBAR - Moderne
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

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

/* ============================================
   LOGIN IMPROVEMENTS
   ============================================ */

.login-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
    font-weight: 500;
}

.login-box .form-group label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.login-box .form-group label span:first-child {
    font-size: var(--text-lg);
}

.login-submit-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.btn-arrow {
    font-size: var(--text-lg);
    transition: transform var(--transition);
}

.login-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.login-footer {
    margin-top: var(--space-6);
    text-align: center;
}

.login-help {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* ============================================
   INFO CARD - Instructions
   ============================================ */

.info-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all 0.5s ease-out;
}

.info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: var(--space-3);
}

.info-card-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    flex-shrink: 0;
    padding: 0;
}

.info-card-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    transform: scale(1.1);
}

.info-card-content {
    flex: 1;
    width: 100%;
}

.info-card-content h3 {
    margin-bottom: var(--space-3);
    margin-top: 0;
}

.info-card-icon {
    font-size: var(--text-3xl);
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.info-card-content {
    flex: 1;
}

.info-card-content h3 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.instructions-list {
    margin-left: var(--space-5);
    color: var(--text-secondary);
    line-height: 1.8;
}

.instructions-list li {
    margin-bottom: var(--space-2);
}

.instructions-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   SECTION IMPROVEMENTS
   ============================================ */

.card-section {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.card-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.section-header {
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: var(--space-2);
}

.sites-container-wrapper {
    margin-top: var(--space-4);
}

.semaine-selector-wrapper {
    margin-top: var(--space-4);
}

.semaine-selector-wrapper select {
    max-width: 300px;
}

/* ============================================
   HEADER CONTENT WRAPPER
   ============================================ */

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.header-actions {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

/* ============================================
   QUICK FILL IMPROVEMENTS
   ============================================ */

.quick-fill-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.quick-fill-grid {
    margin-bottom: var(--space-5);
}

.quick-fill-grid .form-group label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.label-hint {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.quick-fill-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.btn-large {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    height: 44px;
}

/* ============================================
   COMMANDES CONTAINER
   ============================================ */

.commandes-container {
    margin-top: var(--space-6);
}

/* ============================================
   SITES GRID MODERN - Cartes élégantes
   ============================================ */

.sites-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.site-card {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-colored);
    border-color: var(--accent);
}

.site-card:hover::before {
    transform: scaleX(1);
}

.site-card.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), var(--shadow-colored);
}

.site-card.active::before {
    transform: scaleX(1);
}

.site-card-icon {
    font-size: var(--text-3xl);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    transition: all var(--transition);
}

.site-card.active .site-card-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.site-card-content {
    flex: 1;
    min-width: 0;
}

.site-card-name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    letter-spacing: -0.01em;
}

.site-card-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-card-check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    opacity: 0;
    transform: scale(0);
    transition: all var(--transition);
    flex-shrink: 0;
}

.site-card.active .site-card-check {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   TABLEAUX MODERNES - Design premium
   ============================================ */

.table-container-modern {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--bg-primary);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-4);
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.modern-table thead {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modern-table th {
    padding: var(--space-4) var(--space-5);
    text-align: left;
    font-weight: 700;
    font-size: var(--text-xs);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.table-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.table-header-icon {
    font-size: var(--text-base);
    opacity: 0.8;
}

.modern-table tbody tr {
    transition: all var(--transition);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

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

.modern-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    transform: scale(1.002);
}

.table-row-modern td {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-primary);
    vertical-align: middle;
}

.table-cell-primary {
    font-weight: 600;
    color: var(--text-primary);
}

.table-cell-text {
    color: var(--text-secondary);
}

.table-cell-day {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.day-name {
    font-weight: 600;
    color: var(--text-primary);
}

.table-cell-input {
    display: flex;
    align-items: center;
}

.modern-input {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition);
    font-family: var(--font);
}

.modern-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.modern-input:hover {
    border-color: var(--border-glow);
}

.table-cell-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.table-cell-empty {
    color: var(--text-tertiary);
    font-style: italic;
}

.table-cell-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.table-cell-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    background: transparent;
    color: var(--text-secondary);
    padding: 0;
}

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

.btn-icon-edit:hover {
    color: var(--accent);
    background: rgba(99, 102, 241, 0.1);
}

.btn-icon-delete:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.text-muted {
    color: var(--text-tertiary);
    font-style: italic;
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

/* ============================================
   FILTERS GRID
   ============================================ */

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-4);
}

/* ============================================
   LOADING STATES
   ============================================ */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12);
    color: var(--text-secondary);
}

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

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

/* ============================================
   SUCCESS MESSAGES
   ============================================ */

.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */

@media (max-width: 768px) {
    .header-content-wrapper {
        flex-direction: column;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-fill-actions {
        flex-direction: column;
    }
    
    .quick-fill-actions .btn {
        width: 100%;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
}

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

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.hidden {
    display: none !important;
}
