/* 1. VARIABLES Y GENERALES */
:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --darker: #0f172a;
    --bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    margin: 0;
    min-height: 100vh;
}

/* 2. ESTILOS DEL LOGIN (Centrado total) */
.login-page {
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

/* 3. ESTRUCTURA DEL PANEL (MENU.PHP) */
.dashboard-body { /* Añade esta clase al body de menu.php */
    display: flex;
}

.sidebar {
    width: 260px;
    background: var(--darker);
    min-height: 100vh;
    color: white;
    padding: 20px;
    flex-shrink: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    color: white;
}

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

/* 4. COMPONENTES (Botones, Inputs, Cards) */
.input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark);
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 10px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover { background: #1d4ed8; }

.menu-items button {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.menu-items button:hover, .menu-items button.active {
    background: var(--dark);
    color: white;
}

/* 5. SECCIONES DINÁMICAS (Citas y Clientes) */
.appointment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.client-card, .appointment-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.date-badge {
    background: var(--primary);
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin-right: 15px;
    min-width: 70px;
}

/* 6. RESPONSIVO */
@media (max-width: 768px) {
    .dashboard-body { flex-direction: column; }
    .sidebar { width: 100%; height: auto; }
    .appointment-layout { grid-template-columns: 1fr; }
}