:root {
    --bg: #f8f9fa;
    --card-bg: #ffffff;
    --primary: #3498db;
    --success: #2ecc71;
    --danger: #e74c3c;
    --dark: #2c3e50;
    --terminal-bg: #1e1e1e;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 20px;
}

header { text-align: center; margin-bottom: 40px; }

.grid-container {
    display: grid;
    /* auto-fill permite que se creen tantas columnas como quepan */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    
    /* EL CAMBIO CLAVE: */
    max-width: 98%; /* Permite que el contenedor use casi todo el ancho de la pantalla */
    width: 100%;
    margin: 20px auto;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-top: 5px solid var(--success);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-5px); }

.status-badge {
    background: var(--success);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.btn-command {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: filter 0.2s;
}

.btn-command:hover { filter: brightness(1.1); }

.console {
    margin-top: 15px;
    background: var(--terminal-bg);
    color: #00ff00;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    max-height: 150px;
    overflow-y: auto;
    display: none; /* Se activa vía JS */
    white-space: pre-wrap;
}
/* Efecto para las filas de la tabla */
table tr:hover td {
    background-color: #f1f2f6 !important; /* Un gris muy claro */
    transition: background-color 0.2s ease;
    cursor: default;
}

/* Opcional: resaltar el borde izquierdo para darle un toque moderno */
table tr:hover td:first-child {
    border-left: 3px solid #1e90ff; /* Azul brillante */
}