/* Variables globales (Theme sombre technique) */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --accent-color: #007acc;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    padding: 1rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.badge { font-size: 0.8rem; color: #888; }

.container {
    display: grid;
    gap: 1.5rem;
    /* Mobile first: 1 colonne. S'etend a 2 colonnes sur desktop */
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .container { grid-template-columns: repeat(2, 1fr); }
    .console-card { grid-column: 1 / -1; } /* La console prend toute la largeur */
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #333;
}

h2 { margin-bottom: 1rem; font-size: 1.2rem; }

/* Grid interne pour les stats des rigs */
.rig-item {
    background-color: #2a2a2a;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.rig-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.status-rented { color: var(--success-color); }
.status-unrented { color: var(--warning-color); }

button {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

button:active { opacity: 0.8; }

.terminal {
    background-color: #000;
    color: #0f0;
    font-family: monospace;
    padding: 1rem;
    border-radius: 4px;
    height: 150px;
    overflow-y: auto;
}