/* DEFCON Social - Custom Styles */

.flash {
    padding: 1rem;
    background: var(--pico-primary-background);
    border-radius: var(--pico-border-radius);
    margin-bottom: 1rem;
}

/* Grille de cartes DEFCON */
.defcon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.defcon-card {
    margin: 0;
}

.defcon-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.defcon-card header h3 {
    margin: 0;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Jauge */
.gauge-container {
    position: relative;
    height: 40px;
    margin: 1.5rem 0;
}

.gauge-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
}

.gauge-section {
    position: absolute;
    height: 100%;
    width: 10%;
}

.gauge-fill {
    position: absolute;
    height: 100%;
    border-radius: 0.5rem 0 0 0.5rem;
    transition: width 0.5s ease;
}

.gauge-marker {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    transition: left 0.5s ease;
}

.gauge-value {
    background: #1f2937;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Légende */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.legend-item, .threshold-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

/* Admin */
.person-row, .event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.actions {
    display: flex;
    gap: 0.5rem;
}

button.small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.threshold-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
