/* ============================================================
   dashboard.css — Estilos del panel principal (index.html)
   Módulo: Sistemas Eléctricos en Centrales
   ============================================================ */

:root {
    --primary:  #2c3e50;
    --accent:   #3498db;
    --success:  #27ae60;
    --warning:  #e67e22;
    --problems: #6c5ce7;
    --bg:       #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.dashboard {
    background: white;
    width: 100%;
    max-width: 900px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 8px solid var(--primary);
}

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

h1 { color: var(--primary); margin: 0; font-size: 1.8em; }
p.subtitle { color: #7f8c8d; margin-top: 10px; }

.section-title {
    color: var(--primary);
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin: 30px 0 20px 0;
    grid-column: 1 / -1;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-full {
    display: grid;
    grid-template-columns: 1fr;
    margin: 20px 0;
}

.card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 5px solid transparent;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--accent);
}

.card h3 { margin: 0 0 10px 0; color: var(--primary); font-size: 1.1em; }
.card p  { font-size: 0.85em; color: #666; margin-bottom: 15px; line-height: 1.4; }

.btn {
    display: block;
    padding: 8px 15px;
    background: var(--accent);
    color: white;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85em;
    transition: 0.2s;
}

/* Variantes de tarjeta */
.card.theory      { border-left-color: var(--accent); }
.card.practice    { border-left-color: var(--warning); }
.card.solution    { border-left-color: var(--success); cursor: pointer; }
.card.problem-set { border-left-color: var(--problems); }

.card.solution:hover    .btn { background: var(--success);  opacity: 0.9; }
.card.problem-set:hover .btn { background: var(--problems); opacity: 0.9; }

.icon { font-size: 1.5em; margin-bottom: 10px; }

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
}
