body {
    background-color: #f5f7fa;
}

.nav-link {
    color: #333;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--clinica-color, #0d6efd);
}

.card-kpi {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.badge-estado-Agendado       { background-color: #6c757d; }
.badge-estado-Confirmado     { background-color: #0d6efd; }
.badge-estado-EnSalaEspera   { background-color: #ffc107; color: #212529; }
.badge-estado-Atendido       { background-color: #198754; }
.badge-estado-NoAsistio      { background-color: #dc3545; }

.alerta-alergia {
    border-left: 5px solid #dc3545;
    background-color: #f8d7da;
    color: #58151c;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.diente-svg {
    cursor: pointer;
    stroke: #495057;
    stroke-width: 1.5;
    transition: filter 0.15s ease-in-out;
}
.diente-svg:hover {
    filter: brightness(0.9);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(10, 61, 143, 0.55), rgba(3, 20, 46, 0.85)),
        url("/images/dental-login-bg.jpg") center / cover no-repeat;
    padding: 1.5rem;
}

.login-card {
    max-width: 860px;
    width: 100%;
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    flex-wrap: wrap;
}

.login-card .login-art {
    flex: 1 1 340px;
    min-height: 260px;
    background: url("/images/dental-login-bg.jpg") center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.login-card .login-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(3, 20, 46, 0.75) 0%, rgba(3, 20, 46, 0.05) 60%);
}
.login-card .login-art .login-art-caption {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 1.5rem;
}

.login-card .login-form-side {
    flex: 1 1 320px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media print {
    .no-print { display: none !important; }
}

/* ===== Panel principal: encabezado y accesos rápidos ===== */
.dashboard-hero {
    border-radius: 1rem;
    background:
        linear-gradient(100deg, rgba(3, 20, 46, 0.92) 0%, rgba(3, 20, 46, 0.75) 40%, rgba(10, 61, 143, 0.55) 100%),
        url("/images/dental-hero-bg.jpg") right center / cover no-repeat;
    color: #fff;
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
}
.dashboard-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -60px;
    width: 240px;
    height: 240px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.dashboard-hero::before {
    content: "";
    position: absolute;
    right: 60px;
    bottom: -70px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    text-decoration: none;
    color: #212529;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
    color: #212529;
}
.quick-action-card .qa-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
}
.quick-action-card .qa-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}
.quick-action-card .qa-subtitle {
    font-size: 0.78rem;
    color: #6c757d;
}
.quick-action-card .qa-arrow {
    margin-left: auto;
    opacity: 0.3;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.quick-action-card:hover .qa-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.qa-icon.bg-agenda       { background: linear-gradient(135deg, #0d6efd, #4dabf7); }
.qa-icon.bg-pacientes    { background: linear-gradient(135deg, #0dcaf0, #0891b2); }
.qa-icon.bg-facturacion  { background: linear-gradient(135deg, #198754, #20c997); }
.qa-icon.bg-presupuestos { background: linear-gradient(135deg, #6f42c1, #9775fa); }
.qa-icon.bg-cxc          { background: linear-gradient(135deg, #fd7e14, #ffca2c); }
.qa-icon.bg-recetas      { background: linear-gradient(135deg, #d63384, #f06595); }
.qa-icon.bg-reportes     { background: linear-gradient(135deg, #0b5ed7, #212529); }
.qa-icon.bg-usuarios     { background: linear-gradient(135deg, #495057, #212529); }
.qa-icon.bg-config       { background: linear-gradient(135deg, #6c757d, #adb5bd); }
.qa-icon.bg-proveedores  { background: linear-gradient(135deg, #20c997, #0f766e); }

/* Toast de confirmación (creación de citas, etc.) */
.toast-exito {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    min-width: 280px;
}
