/* web/style.css */
:root {
    --bg-base: #121212;
    --bg-elevated: #242424;
    --primary: #1DB954;
    --text: #FFFFFF;
    --text-muted: #B3B3B3;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }

body { background-color: var(--bg-base); color: var(--text); height: 100vh; overflow: hidden; }

/* Conteneurs principaux */
.view-container { display: flex; height: 100%; width: 100%; }

/* Vue Login */
#view-login { justify-content: center; align-items: center; }
.login-box { text-align: center; padding: 40px; }

/* Elements generiques */
.card { background-color: var(--bg-elevated); padding: 20px; border-radius: 8px; }
button { padding: 10px 20px; border: none; border-radius: 20px; cursor: pointer; font-weight: bold; }
.btn-primary { background-color: var(--primary); color: black; }
.btn-secondary { background-color: transparent; color: var(--text); border: 1px solid var(--text-muted); }
.danger-text { color: #e22134; }
input, textarea { width: 100%; padding: 10px; margin: 10px 0; background: #333; border: none; color: white; border-radius: 4px; }

/* Navigation (Desktop par defaut) */
.navigation { width: 250px; background-color: #000; padding: 20px; display: flex; flex-direction: column; }
.nav-links { list-style: none; margin-top: 20px; }
.nav-links li { padding: 15px 0; color: var(--text-muted); cursor: pointer; }
.nav-links li.active { color: var(--primary); font-weight: bold; }

/* Contenu SPA */
.content { flex: 1; padding: 30px; overflow-y: auto; }
.spa-section { display: none; }
.spa-section.active-section { display: block; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }

/* Liste des regles */
.rule-item { background: #333; padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }

/* Modale */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 999; }
.modal-content { width: 90%; max-width: 400px; }
.modal-actions { display: flex; gap: 10px; margin-top: 15px; }

/* Mode Mobile */
@media (max-width: 768px) {
    .view-container { flex-direction: column; }
    .desktop-only { display: none; }
    .content { padding: 15px; padding-bottom: 80px; } /* Marge pour la bottom bar */
    .navigation { position: fixed; bottom: 0; width: 100%; height: 70px; padding: 0; flex-direction: row; justify-content: space-around; border-top: 1px solid #333; z-index: 100; }
    .nav-links { margin: 0; display: flex; width: 100%; justify-content: space-around; align-items: center; }
    .nav-links li { padding: 0; font-size: 0.9rem; }
}