@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    color: #2d3748;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Modern table styles */
table {
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    width: 100%;
    --table-radius: 12px;
    --table-padding: 16px;
    --table-border: 1px solid rgba(0, 0, 0, 0.05);
    --hover-bg: rgba(59, 130, 246, 0.05);
}
thead {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
}
thead th {
    background: linear-gradient(to bottom, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    padding: var(--table-padding);
    font-size: 0.875rem;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
thead th:first-child {
    border-top-left-radius: var(--table-radius);
}

thead th:last-child {
    border-top-right-radius: var(--table-radius);
}

tbody tr {
    animation: fadeIn 0.3s ease-out forwards;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--table-radius);
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--table-radius);
}
tbody tr:hover {
    background-color: #f8fafc !important;
}
tbody td {
    padding: var(--table-padding);
    border-bottom: var(--table-border);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}
tbody tr:not(:last-child) td::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    height: 1px;
    background-color: rgba(0, 0, 0, 0.05);
}
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-en-cours {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.status-planifie {
    background-color: #ecfdf5;
    color: #047857;
}

.status-termine {
    background-color: #f5f3ff;
    color: #6d28d9;
}
/* Progress bars */
.progress-container {
    width: 80px;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 4px;
}

/* Animation for table rows */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

tbody tr:nth-child(1) { animation-delay: 0.1s; }
tbody tr:nth-child(2) { animation-delay: 0.2s; }
tbody tr:nth-child(3) { animation-delay: 0.3s; }

/* Color coding for financial cells */
.cell-positive {
    background-color: #ecfdf5;
    color: #059669;
    font-weight: 600;
}

.cell-warning {
    background-color: #fef3c7;
    color: #d97706;
    font-weight: 600;
}

.cell-danger {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 600;
}
tbody tr {
    background-color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
tbody tr {
    height: 56px;
    font-size: 0.8125rem;
}
/* Modern progress bars */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}
.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: shimmer 2s infinite;
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
/* Modern status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 6px;
    background: currentColor;
}

.status-en-cours {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.status-planifie {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.status-termine {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
}

/* Modern cell colors */
.cell-positive {
    background-color: rgba(16, 185, 129, 0.1) !important;
    color: #10B981;
    font-weight: 500;
}

.cell-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
    color: #F59E0B;
    font-weight: 500;
}

.cell-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
    color: #EF4444;
    font-weight: 500;
}
