/* dashboard.css - Styles pour les tableaux de bord */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 140px);
    background: #f8fafc;
}

/* Sidebar */
.dashboard-sidebar {
    width: 280px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.dashboard-main {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-header i {
    font-size: 4rem;
    color: #4361ee;
    margin-bottom: 15px;
}

.sidebar-header h3 {
    margin-bottom: 5px;
    color: #212529;
}

.sidebar-header p {
    color: #6c757d;
    font-size: 0.9rem;
}

.sidebar-nav {
    padding: 20px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(67, 97, 238, 0.05);
    color: #4361ee;
    border-left-color: #4361ee;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #212529;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: #4361ee;
}

.stat-content h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #212529;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-state h2 {
    margin-bottom: 15px;
    color: #212529;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #4361ee;
}

.view-all {
    color: #4361ee;
    text-decoration: none;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Seances List */
.seances-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.seance-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.seance-card:hover {
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.seance-date {
    text-align: center;
    min-width: 60px;
}

.seance-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4361ee;
    line-height: 1;
}

.seance-date .month {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
}

.seance-info {
    flex: 1;
}

.seance-info h4 {
    margin-bottom: 5px;
    color: #212529;
}

.seance-info p {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.seance-info p i {
    width: 16px;
}

/* Status Badges - RENOMMÉS pour éviter conflit */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-badge-planifiee {
    background: #fff3cd;
    color: #856404;
}

.status-badge-confirmee {
    background: #d4edda;
    color: #155724;
}

.status-badge-terminee {
    background: #cce5ff;
    color: #004085;
}

.status-badge-annulee {
    background: #f8d7da;
    color: #721c24;
}

/* Enfants List */
.enfants-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.enfant-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.enfant-card:hover {
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.enfant-card.add-card {
    background: rgba(67, 97, 238, 0.05);
    border: 2px dashed #4361ee;
    justify-content: center;
    color: #4361ee;
}

.enfant-card.add-card i {
    font-size: 1.5rem;
}

.enfant-avatar {
    width: 50px;
    height: 50px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enfant-avatar i {
    font-size: 1.5rem;
    color: #4361ee;
}

.enfant-info {
    flex: 1;
}

.enfant-info h4 {
    margin-bottom: 5px;
    color: #212529;
}

.enfant-info p {
    color: #6c757d;
    font-size: 0.9rem;
}

.enfant-info .ecole {
    font-size: 0.8rem;
    color: #999;
}

.enfant-actions {
    display: flex;
    gap: 5px;
}

.btn-small {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #4361ee;
    color: white;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #212529;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        display: none;
    }
    
    .dashboard-main {
        margin-left: 0;
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .seance-card {
        flex-direction: column;
        text-align: center;
    }
    
    .enfant-card {
        flex-direction: column;
        text-align: center;
    }
    
    .table th,
    .table td {
        padding: 8px;
        font-size: 0.9rem;
    }

    /* Dans dashboard.css, ajouter */
@media (max-width: 768px) {
    /* Navigation mobile */
    .nav-menu {
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Tableaux responsives */
    .table-responsive {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    /* Cartes en colonne */
    .stats-grid,
    .services-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Boutons tactiles */
    .btn,
    .btn-buy,
    .nav-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
}
}