/* Variables CSS pour une cohérence visuelle */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --border-color: #e2e8f0;
    --text-muted: #475569;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sous-menu (segments) sous Tickets */
/* Groupe Tickets (style capture) */
.menu-group { 
    margin-top: .25rem;
    position: relative;
    z-index: 100;
}
.menu-group-header {
    display:flex; align-items:center; justify-content:space-between;
    background: #3b82f6; /* bleu */
    color: #fff; font-weight: 600; font-size: .9rem;
    padding: .5rem .75rem; border-radius: 8px;
    cursor: pointer;
}
.menu-group-header .left { display:flex; align-items:center; gap:.5rem; }
.menu-group-header i { color:#eaf2ff; }
.menu-group-header .chev { transition: transform .2s ease; }
.menu-group.open .menu-group-header .chev { transform: rotate(180deg); }

.menu-group-list { 
    list-style:none; 
    margin:.25rem 0 0 0; 
    padding: .4rem 0 .2rem 0;
    position: relative;
    z-index: 100;
    background: #ffffff;
}
.menu-group-item {
    display:flex; align-items:center; justify-content:space-between;
    color: #374151; /* gray-700 pour meilleure lisibilité */
    text-decoration:none; font-size:.92rem;
    padding: .45rem .5rem .45rem 1.25rem; border-radius:6px;
}
.menu-group-item:hover { background: rgba(59,130,246,0.10); color:#111827; }
.menu-group-item.active { background: rgba(59,130,246,0.18); color:#111827; }
.menu-group-item .count { color:#475569; font-size:.85rem; }

/* Thème sombre uniquement pour le dashboard */
body.dark-dashboard {
    --bg: #0f172a; /* slate-900 */
    --light: #111827; /* gray-900 */
    --border-color: #1f2937;
    --dark: #e5e7eb;
    --text-muted: #9ca3af;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}
body.dark-dashboard .header {
    background: linear-gradient(135deg, #0b223d 0%, #0b1323 100%);
    border-bottom: 1px solid #1f2937;
}
body.dark-dashboard .card {
    background: #0b1323;
    border: 1px solid #1f2937;
}
body.dark-dashboard .page-title, 
body.dark-dashboard .breadcrumb a, 
body.dark-dashboard .breadcrumb span {
    color: #e5e7eb;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--dark);
    line-height: 1.6;
}

/* Conteneur principal */
.main-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
}

.sidebar-menu {
    padding: 1.5rem 0;
}

/* Bouton Nouveau Ticket dans la sidebar */
.btn-new-ticket {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    margin: 0 1rem 1.5rem 1rem;
    background: #2563eb !important;
    color: white !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    border: none;
}

.btn-new-ticket:hover {
    background: #1d4ed8 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-new-ticket:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.25);
}

.btn-new-ticket i {
    font-size: 0.9rem;
    color: white !important;
}

.btn-new-ticket span {
    color: white !important;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.menu-link:hover {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    color: var(--primary-color);
}

.menu-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, transparent 100%);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.menu-link i {
    width: 20px;
    text-align: center;
}

/* Content Area */
.content-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: var(--transition);
}

/* Header */
.header {
    background: white;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.search-bar {
    position: relative;
    width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

.notification-btn:hover {
    color: var(--primary-color);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Main Content */
.main-content {
    padding: 2rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
}

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

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, #8b5cf6 100%);
}

.stat-card.success::before {
    background: linear-gradient(180deg, var(--success-color) 0%, #34d399 100%);
}

.stat-card.warning::before {
    background: linear-gradient(180deg, var(--warning-color) 0%, #fbbf24 100%);
}

.stat-card.danger::before {
    background: linear-gradient(180deg, var(--danger-color) 0%, #f87171 100%);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Formulaires */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.875rem;
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: calc(var(--border-radius) / 2);
    font-size: 0.875rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Boutons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: calc(var(--border-radius) / 2);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius);
}

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

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

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

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

.table tbody tr:hover {
    background: rgba(37, 99, 235, 0.02);
}

/* Drag & Drop admin */
tr.dragging { opacity: .6; }
.drag-handle {
    cursor: grab;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 6px;
}
.drag-handle:hover { background: rgba(37,99,235,0.08); color: #1f2937; }

/* En-tête sticky pour les tables */
.table-responsive {
    max-height: 70vh;
    overflow: auto;
}
.table thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    text-align: center;
}
/* Améliorations table */
.table { table-layout: fixed; width: 100%; font-size: 13px; line-height: 1.4; }
.table td { vertical-align: middle; padding: .5rem .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table thead th { padding: .5rem .6rem; font-size: 12px; }
.col-num, .col-tracking, .col-date, .col-status, .col-partner, .col-priority, .col-actions { text-align: center; }
.col-design, .col-agent, .col-client, .col-cat, .col-partner { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Responsive pour petits écrans */
@media (min-width: 1081px) and (max-width: 1600px) {
    .table { font-size: 12px; }
    .table td, .table thead th { padding: .4rem .5rem; }
}

@media (max-width: 1080px) {
    .table { font-size: 11px; }
    .table td, .table thead th { padding: .35rem .4rem; }
    
    /* Réduction supplémentaire des colonnes */
    .col-num { width: 6%; }
    .col-rownum { width: 3%; }
    .col-agent { width: 9%; }
    .col-client { width: 9%; }
    .col-cat { width: 7%; }
    .col-design { width: 11%; }
    .col-date { width: 7%; }
    .col-status { width: 9%; }
    .col-partner { width: 8%; }
    .col-priority { width: 7%; }
    .col-deadline { width: 7%; }
    .col-actions { width: 8%; }
}

/* Modales génériques */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  display: none; align-items: center; justify-content: center;
  padding: 1rem; z-index: 1000;
}
.modal-overlay.open { display:flex; }
.modal-overlay .modal {
  width: 100%; max-width: 540px; background: #fff; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden; animation: modalIn .15s ease-out;
}
/* Forcer l'affichage de la modale quand l'overlay est ouvert (évite le conflit avec .modal {display:none} plus bas) */
.modal-overlay.open .modal { display: block !important; }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:.9rem 1rem; background:#2563eb; color:#fff; }
.modal-header h3 { font-size: 1.05rem; font-weight:600; display:flex; align-items:center; gap:.5rem; }
.modal-close { background: transparent; border:0; color:#fff; font-size:1.5rem; line-height:1; cursor:pointer; }
.modal-body { padding: 1rem; }
.modal-footer { padding: .9rem 1rem; background:#f8fafc; display:flex; gap:.5rem; justify-content:flex-end; }
@keyframes modalIn { from { transform: translateY(8px); opacity:0; } to { transform: translateY(0); opacity:1; } }

/* Largeurs de colonnes pour les tables - Responsive */
.col-num { width: 6%; }
.col-rownum { width: 3%; text-align: right; }
.col-tracking { width: 9%; }
.col-agent { width: 10%; }
.col-client { width: 10%; }
.col-cat { width: 7%; }
.col-subcat { width: 8%; }
.col-design { width: 12%; }
.link-strong { color:#111827; text-decoration:none; }
.link-strong:hover { text-decoration: underline; }
.col-date { width: 7%; }
.col-status { width: 9%; }
.col-partner { width: 8%; }
.col-priority { width: 7%; }
.col-deadline { width: 7%; }
.col-actions { width: 8%; }

/* Pastilles statut */
.status-badge {
  display:inline-flex; align-items:center; gap:.35rem;
  padding:.25rem .5rem; border-radius:999px; font-size:.75rem; font-weight:600;
  background:#eef2ff; color:#1f2937; border:1px solid rgba(0,0,0,.05);
}
.status-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }

/* Suggestions client */
.suggestions { position:relative; }
.suggestions-list {
  position:absolute; top:100%; left:0; right:0; z-index:50; background:#fff; border:1px solid #e5e7eb; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.08);
  max-height:220px; overflow:auto; margin-top:.25rem;
}
.suggestions-item { padding:.5rem .65rem; cursor:pointer; display:flex; justify-content:space-between; }
.suggestions-item:hover { background:#f8fafc; }
.col-priority { width: 120px; min-width: 110px; }
.col-actions { width: 120px; min-width: 110px; }

/* Pastilles de statut (pills) */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}
.pill i { font-size: 0.9rem; }
.pill-info { background: #e0efff; color: #1e40af; border-color: #bfdbfe; }
.pill-warn { background: #fff4e0; color: #b45309; border-color: #fde68a; }
.pill-success { background: #e6fbf3; color: #065f46; border-color: #a7f3d0; }
.pill-danger { background: #ffe8e8; color: #991b1b; border-color: #fecaca; }

/* Badge de statut */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

/* Actions de table */
.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn.view {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
}

.action-btn.edit {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.action-btn:hover {
    transform: scale(1.1);
}

/* Timeline (historique) */
.timeline { position: relative; padding-left: 24px; }
.timeline:before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: #e5e7eb; }
.timeline-item { position: relative; margin: 0 0 14px 0; }
.timeline-dot { position: absolute; left: 1px; top: 4px; width: 18px; height: 18px; border-radius: 50%; color:#fff; display:flex; align-items:center; justify-content:center; font-size:10px; box-shadow:0 2px 6px rgba(0,0,0,.15); }
.timeline-content { background:#fff; border:1px solid #e5e7eb; border-radius:10px; padding:.65rem .75rem; margin-left: 16px; }
.timeline-head { display:flex; align-items:center; justify-content:space-between; gap:.5rem; font-weight:600; }
.timeline-date { color:#6b7280; font-weight:500; font-size:.875rem; }
.timeline-text { margin-top:.35rem; color:#111827; }
.timeline-meta { margin-top:.25rem; color:#6b7280; font-size:.85rem; }

/* Modales */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}
.modal.show .modal-content { display:block; }

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 1.5rem;
}

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

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: calc(var(--border-radius) / 2);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Page de connexion */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    width: 100%;
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content-area {
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
    }
}

/* Impressions */
@media print {
    .sidebar,
    .header,
    .no-print {
        display: none !important;
    }
    
    .content-area {
        margin: 0;
    }
    
    .main-content {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
