/**
 * Styles CSS - Module Transit
 */

/* Badges de phase et statut */
.transit-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
}

.transit-phase-1 { background-color: #3498db; }
.transit-phase-2 { background-color: #9b59b6; }
.transit-phase-3 { background-color: #e74c3c; }
.transit-phase-4 { background-color: #f39c12; }
.transit-phase-5 { background-color: #27ae60; }

/* Timeline workflow */
.transit-timeline {
    position: relative;
    padding: 20px 0;
}

.transit-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.transit-timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.transit-timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #95a5a6;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #ddd;
}

.transit-timeline-item.completed::before {
    background: #27ae60;
}

.transit-timeline-item.current::before {
    background: #3498db;
    box-shadow: 0 0 0 2px #3498db;
}

.transit-timeline-item.pending::before {
    background: #95a5a6;
}

.transit-timeline-content {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 3px solid #ddd;
}

.transit-timeline-item.completed .transit-timeline-content {
    border-left-color: #27ae60;
}

.transit-timeline-item.current .transit-timeline-content {
    border-left-color: #3498db;
    background: #e8f4f8;
}

/* Cards statistiques */
.transit-stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 15px;
}

.transit-stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
}

.transit-stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 5px;
}

/* Progress bar phases */
.transit-progress {
    display: flex;
    margin: 20px 0;
}

.transit-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.transit-progress-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 3px;
    background: #ddd;
    z-index: 1;
}

.transit-progress-step:first-child::before {
    left: 50%;
}

.transit-progress-step:last-child::before {
    right: 50%;
}

.transit-progress-step.completed::before {
    background: #27ae60;
}

.transit-progress-step.current::before {
    background: linear-gradient(to right, #27ae60 50%, #ddd 50%);
}

.transit-progress-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.transit-progress-step.completed .transit-progress-dot {
    background: #27ae60;
}

.transit-progress-step.current .transit-progress-dot {
    background: #3498db;
}

.transit-progress-label {
    font-size: 0.8em;
    color: #7f8c8d;
}

.transit-progress-step.completed .transit-progress-label,
.transit-progress-step.current .transit-progress-label {
    color: #2c3e50;
    font-weight: 500;
}

/* Documents */
.transit-doc-list {
    list-style: none;
    padding: 0;
}

.transit-doc-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.transit-doc-item:hover {
    background: #f8f9fa;
}

.transit-doc-icon {
    width: 40px;
    height: 40px;
    background: #ecf0f1;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2em;
    color: #7f8c8d;
}

.transit-doc-info {
    flex: 1;
}

.transit-doc-name {
    font-weight: 500;
    color: #2c3e50;
}

.transit-doc-meta {
    font-size: 0.85em;
    color: #95a5a6;
}

.transit-doc-actions {
    display: flex;
    gap: 10px;
}

/* Alertes */
.transit-alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.transit-alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.transit-alert-danger {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.transit-alert-info {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.transit-alert-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.transit-alert-icon {
    font-size: 1.5em;
    margin-right: 15px;
}
