/* Style principal pour l'application Equalia Astreintes */

:root {
    --primary-color: #0056b3;
    --secondary-color: #17a2b8;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.navbar-brand img {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.3));
}

/* Cartes et éléments d'interface */
.card {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn {
    border-radius: 0.25rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

/* Tableau des interventions */
.table-interventions th {
    background-color: var(--primary-color);
    color: white;
}

.table-interventions {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Alertes et notifications */
.alert {
    border-radius: 0.25rem;
    border-left-width: 4px;
}

/* Statuts des interventions */
.status-en_attente {
    background-color: var(--warning-color);
    color: black;
}

.status-en_cours {
    background-color: var(--info-color);
    color: white;
}

.status-terminee {
    background-color: var(--success-color);
    color: white;
}

.status-annulee {
    background-color: var(--danger-color);
    color: white;
}

/* Priorités des interventions */
.priority-basse {
    background-color: #8bc34a;
    color: black;
}

.priority-normale {
    background-color: #03a9f4;
    color: white;
}

.priority-haute {
    background-color: #ff9800;
    color: black;
}

.priority-urgente {
    background-color: #f44336;
    color: white;
}

/* Styles pour la carte */
.map-container {
    position: relative;
    height: 70vh;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.map-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    background-color: rgba(255,255,255,0.9);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Techniciens d'astreinte */
#on-duty-technicians .list-group-item {
    border-left: 4px solid var(--info-color);
    transition: all 0.3s ease;
}

#on-duty-technicians .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

#on-duty-technicians .badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5em 0.7em;
}

#on-duty-technicians a {
    color: var(--primary-color);
    transition: color 0.2s;
}

#on-duty-technicians a:hover {
    color: var(--info-color);
}

/* Page de connexion */
.login-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.login-logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 150px;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .map-container {
        height: 50vh;
    }
} 