/**
 * 🛩️ Styles pour l'intégration ASTERIX dans SKYNODE
 */

/* Contrôles ASTERIX */
.asterix-controls {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #3498db;
}

.simulation-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.speed-control label {
    color: #ecf0f1;
    font-size: 12px;
    font-weight: 500;
}

.speed-control select {
    background: #2c3e50;
    color: #ecf0f1;
    border: 1px solid #34495e;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.speed-control select:focus {
    outline: none;
    border-color: #3498db;
}

.simulation-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: rgba(52, 73, 94, 0.5);
    border-radius: 4px;
    border: 1px solid #34495e;
}

.stat-label {
    color: #bdc3c7;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #3498db;
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

/* Icônes de pistes ASTERIX */
.asterix-track-icon {
    background: transparent !important;
    border: none !important;
}

.asterix-track-icon div {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Popups ASTERIX */
.asterix-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 250px;
}

.asterix-popup h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
}

.popup-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.popup-details div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.popup-details strong {
    color: #34495e;
    font-weight: 600;
    min-width: 80px;
}

/* États des boutons */
.panel-action[data-state="running"] {
    background: #27ae60 !important;
    color: white !important;
}

.panel-action[data-state="paused"] {
    background: #f39c12 !important;
    color: white !important;
}

.panel-action[data-state="stopped"] {
    background: #e74c3c !important;
    color: white !important;
}

/* Animation de pulsation pour les pistes actives */
@keyframes trackPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.asterix-track-icon.active {
    animation: trackPulse 2s infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .simulation-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .asterix-controls {
        padding: 10px;
    }
    
    .stat-item {
        padding: 6px;
    }
    
    .stat-value {
        font-size: 12px;
    }
}

/* Thème sombre pour les popups */
.leaflet-popup-content-wrapper {
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-tip {
    background: #2c3e50;
}

.leaflet-popup-close-button {
    color: #ecf0f1 !important;
    font-size: 18px !important;
    font-weight: bold !important;
}

.leaflet-popup-close-button:hover {
    color: #e74c3c !important;
}

/* Styles pour les trajectoires */
.asterix-trail {
    stroke-dasharray: 5, 5;
    animation: trailFade 3s ease-in-out;
}

@keyframes trailFade {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

/* Indicateurs de statut */
.status-indicator.asterix {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.status-indicator.asterix.running {
    background: linear-gradient(45deg, #27ae60, #229954);
}

.status-indicator.asterix.paused {
    background: linear-gradient(45deg, #f39c12, #e67e22);
}

.status-indicator.asterix.stopped {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
} 