/* EmnifyManager - CSS */

.emnify-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Cartes SIM dans la liste */
.emnify-sim-row:hover {
    background: #f5f3ff !important;
}

/* Dashboard KPI */
.emnify-kpi-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    text-align: center;
    transition: transform 0.15s ease;
}
.emnify-kpi-card:hover {
    transform: translateY(-2px);
}
.emnify-kpi-value {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.2;
}
.emnify-kpi-label {
    color: #888;
    font-size: 0.9em;
    margin-top: 4px;
}

/* Barre de consommation */
.emnify-usage-bar {
    height: 6px;
    border-radius: 4px;
    background: #eee;
    overflow: hidden;
}
.emnify-usage-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    transition: width 0.5s ease;
}
.emnify-usage-bar-fill.overuse {
    background: linear-gradient(90deg, #e17055, #d63031);
}

/* Carte Leaflet dans la fiche */
#emnify-map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Timeline historique */
.emnify-timeline {
    position: relative;
    padding-left: 20px;
}
.emnify-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.emnify-timeline-item {
    position: relative;
    margin-bottom: 12px;
    padding-left: 16px;
}
.emnify-timeline-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6c5ce7;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #6c5ce7;
}

/* Alertes */
.emnify-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}
.emnify-alert-inactive   { background: #fff3cd; color: #856404; }
.emnify-alert-data_overuse { background: #f8d7da; color: #721c24; }
.emnify-alert-suspended  { background: #f8d7da; color: #721c24; }
