/* RailOo V5 - Style principal */

/* ========== VARIABLES DE COULEUR DU THÈME ========== */
:root {
    /* Couleurs principales */
    --color-primary: #3B6BA5;          /* Bleu principal */
    --color-primary-light: #5BA4E6;    /* Bleu clair */
    --color-primary-dark: #2A5080;     /* Bleu foncé */
    
    /* Couleurs de fond */
    --color-bg-dark: #1E2A3A;          /* Fond sombre (navy) - Menu & Page */
    --color-bg-medium: #3B6BA5;        /* Fond moyen - Fenêtres/Cards */
    --color-bg-light: #FFFFFF;         /* Fond clair */
    
    /* Couleur d'accent */
    --color-accent: #DB9942;           /* Orange */
    --color-accent-hover: #C88A3A;     /* Orange foncé au survol */
    
    /* Couleurs de texte */
    --color-text-light: #FFFFFF;
    --color-text-dark: #1E2A3A;
    --color-text-muted: #8899AA;
    
    /* Bordures */
    --color-border: #3A4A5A;
    --color-border-light: #5BA4E6;
}

/* ========== STYLES GÉNÉRAUX ========== */

/* Masquer les ascenseurs */
::-webkit-scrollbar {
    display: none;
}

/* Styles pour les curseurs de progression */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 0%, #e0e0e0 0%, #e0e0e0 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    cursor: pointer;
}

input[type="range"]:hover {
    opacity: 1;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #1a1f35;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-bg-dark);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #1a1f35;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
    height: 12px;
    border-radius: 6px;
    background: #e0e0e0;
    border: none;
}

/* Icônes des champs date et heure en blanc */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Style pour les badges de catégorie */
.category-badge {
    display: inline-block;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Style pour les boutons de catégorie */
.category-button {
    display: inline-block;
    padding: 0.5em 1.3em;
    border-radius: 7px;
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 4px rgba(49,58,90,0.07);
    transition: all 0.2s ease;
    cursor: default;
    border: none;
    margin-bottom: 0;
}

.category-button:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 6px rgba(49,58,90,0.15);
}

/* Styles pour les conteneurs de détails d'étapes */
.tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100% - 60px);
    overflow: hidden;
}

.tab-panel {
    display: none;
    flex: 1;
    height: 100%;
    overflow: hidden;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
}

.notes-container,
.dates-container,
.progression-container,
.documents-container,
.taches-container {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0;
}

.empty-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: #666;
    font-style: italic;
    padding: 0.75em 0.25em;
    background: var(--color-bg-dark);
    border-radius: 8px;
    border: 2px dashed var(--color-border);
}

.notes-container .empty-message,
.dates-container .empty-message,
.taches-container .empty-message,
.documents-container .empty-message,
.progression-container .empty-message {
    background: transparent;
    border: 2px dashed #555;
}

/* Styles unifiés pour l'affichage des événements */
.event-mini {
    border-radius: 4px;
    padding: 6px 8px;
    margin: 2px 0;
    cursor: pointer;
    font-size: 0.85em;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.event-mini:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.event-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.event-mini-time {
    font-weight: 600;
    font-size: 0.9em;
}

.event-mini-category {
    font-size: 0.75em;
    opacity: 0.9;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

.event-mini-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-mini-location {
    font-size: 0.8em;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Styles pour la vue semaine */
.event-block {
    border-radius: 4px;
    padding: 4px 6px;
    margin: 1px 0;
    cursor: pointer;
    font-size: 0.8em;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

.event-block:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: scale(1.02);
}

.event-category {
    font-size: 0.7em;
    opacity: 0.9;
    font-weight: 500;
}

.event-title {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-size: 0.75em;
    opacity: 0.8;
}

.event-lieu {
    font-size: 0.7em;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-projet {
    font-size: 0.7em;
    opacity: 0.7;
    font-style: italic;
}

.event-header-inline {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.event-category-inline {
    font-size: 0.7em;
    opacity: 0.9;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 1px 4px;
    border-radius: 3px;
}

.event-title-inline {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}
