
/* Modern styles */
:root {
    --primary: #6d28d9;
    --primary-light: #8b5cf6;
    --secondary: #10b981;
    --dark: #1e1b4b;
    --dark-light: #312e81;
    --light: #f5f3ff;
    --accent: #f59e0b;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #2d3748;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
/* Modern table */
table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    backdrop-filter: blur(10px);
}

th {
    position: sticky;
    top: 0;
    background-color: var(--dark-light);
    z-index: 10;
    backdrop-filter: blur(10px);
    padding: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

tr:hover {
    background-color: rgba(109, 40, 217, 0.1);
}

/* Glassmorphism modals */
.modal-backdrop {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(30, 27, 75, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Modern badges */
.badge-stat {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.badge-etude {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

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

.badge-finaliser {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%);
    color: white;
}

/* Modern cards */
.stats-card {
    background: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(109, 40, 217, 0.3);
}

/* Sidebar */
.sidebar {
    background: rgba(30, 27, 75, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(109, 40, 217, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}
/* Floating action buttons */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 50;
}

.fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Input fields */
.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        height: auto;
        z-index: 40;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
    }
    
    .main-content {
        margin-bottom: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
