/**
 * MarathonSplitr - Styles
 * Calculateur de temps de passage pour marathon et semi-marathon
 */

body {
    font-family: 'Inter', sans-serif;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

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

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

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

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Mode sombre */
.dark {
    background-color: #020617;
    color: #f1f5f9;
}

.dark body {
    background-color: #020617;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

.animate-slideDown {
    animation: slideDown 0.3s ease-out;
}

/* Tableau des temps de passage */
.split-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.split-table thead tr {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .split-table thead tr {
    background-color: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
}

.split-table th,
.split-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.dark .split-table th,
.dark .split-table td {
    border-bottom-color: #1e293b;
}

.split-table tbody tr:hover {
    background-color: #f8fafc;
}

.dark .split-table tbody tr:hover {
    background-color: rgba(30, 41, 59, 0.5);
}

/* Dernier segment (distance fractionnelle) */
.split-table .last-segment {
    background-color: #faf5ff;
    font-weight: 700;
}

.dark .split-table .last-segment {
    background-color: rgba(147, 51, 234, 0.1);
}

/* Temps cumule en surbrillance */
.split-table .cumulative {
    color: #9333ea;
    font-weight: 700;
}

.dark .split-table .cumulative {
    color: #c084fc;
}

/* Variante compacte du tableau */
.split-table.compact th,
.split-table.compact td {
    padding: 0.375rem 1rem;
}

/* Styles d'impression */
@media print {
    .print\:hidden {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .split-table {
        font-size: 12px;
    }

    .fixed {
        display: none !important;
    }

    .dark .split-table thead tr {
        background-color: #f8fafc;
        color: #64748b;
    }

    .dark .split-table th,
    .dark .split-table td {
        border-bottom-color: #e2e8f0;
    }

    .dark .split-table .last-segment {
        background-color: #faf5ff;
    }

    .dark .split-table .cumulative {
        color: #9333ea;
    }
}

/* Tableau arrondi */
.split-table-rounded {
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
    overflow: hidden;
}

.dark .split-table-rounded {
    border-color: #1e293b;
}
