/* ===============================
   LOGIN PRO — GLASSMORPHISM
   =============================== */

body.login-page {
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(76, 191, 255, 0.25), transparent 60%),
        radial-gradient(circle at 100% 0%, rgba(80, 250, 123, 0.2), transparent 55%),
        radial-gradient(circle at 50% 100%, rgba(129, 140, 248, 0.3), #020617 70%);
    color: #111827;
}

/* Contenedor central */
.login-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Tarjeta principal */
.login-card {
    position: relative;
    max-width: 430px;
    width: 100%;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(15, 23, 42, 0.9);
    animation: cardIn 0.6s ease-out;
}

/* Glow detrás */
.login-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    opacity: 0.35;
    background:
        radial-gradient(circle at 0% 0%, #4f46e5, transparent 55%),
        radial-gradient(circle at 100% 0%, #22c55e, transparent 60%);
    z-index: -1;
}

/* Encabezado */
.login-card .card-header {
    background: linear-gradient(135deg, #4f46e5, #06b6d4, #22c55e);
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Icono */
.logo-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.4);
}

/* Badge */
.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.25);
    color: #e5e7eb;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Cuerpo del formulario */
.login-card .card-body {
    background: rgba(15, 23, 42, 0.92);
    color: #e5e7eb;
}

/* Label */
.login-card .form-label {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

/* Input group moderno */
.input-group-light .input-group-text {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
    color: #9ca3af;
}

.input-group-light .form-control {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

/* Focus */
.input-group-light .form-control:focus {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 1px #22c55e;
    border-color: #22c55e;
}

.input-group-light .form-control::placeholder {
    color: #6b7280;
}

/* Botón login */
.btn-login {
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, filter 0.12s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(34, 197, 94, 0.45);
    filter: brightness(1.05);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
}

/* Footer */
.login-card .card-footer {
    background: rgba(15, 23, 42, 0.95);
    color: #6b7280;
    font-size: 0.78rem;
}

/* Animación suave */
@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        max-width: 100%;
    }
}
/* ========= DASHBOARD MINIMAL PRO ========= */

.dashboard-wrapper {
    padding-bottom: 1rem;
}

.kpi-card {
    border-radius: 1rem;
    border: none;
}

.kpi-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}

.kpi-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
}

.kpi-subtext {
    font-size: 0.75rem;
    color: #6b7280;
}

.kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.kpi-icon-primary {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.kpi-icon-secondary {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
}

.kpi-icon-success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}

.kpi-icon-warning {
    background: rgba(234, 179, 8, 0.08);
    color: #eab308;
}
/* ======= FORM SECTIONS / TITLES ======= */

.form-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.form-section-divider {
    margin: 0.75rem 0 1rem;
    border-top: 1px dashed #e5e7eb;
}
.input-group-light .form-control {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #111827 !important;
    border-radius: 8px;
}

.input-group-light .input-group-text {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
    border-radius: 8px 0 0 8px;
}

/* ===================== SIDEBAR CORPORATIVA ===================== */

.app-sidebar {
    background: radial-gradient(circle at top left, #111827, #020617);
    color: #e5e7eb;
    border-radius: 0 1.25rem 1.25rem 0;
    box-shadow: 0 0 25px rgba(15, 23, 42, 0.6);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Encabezado */

.app-sidebar-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.app-sidebar-logo {
    width: 36px;
    height: 36px;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #facc15, #f97316);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    box-shadow: 0 8px 18px rgba(250, 204, 21, 0.35);
}

.app-sidebar-logo i {
    color: #111827;
}

.app-sidebar-title {
    display: flex;
    flex-direction: column;
}

.app-sidebar-appname {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.app-sidebar-subtitle {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* Navegación */

.app-sidebar-nav {
    flex: 1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0 0.4rem 0.8rem 0.4rem;
}

/* Títulos de sección */

.sidebar-section {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    padding: 0.8rem 1.2rem 0.25rem 1.2rem;
}

/* Links */

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    margin: 0.05rem 0.6rem;
    border-radius: 0.6rem;
    font-size: 0.86rem;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.18s ease;
    cursor: pointer;
}

.sidebar-link:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #f9fafb;
}

.sidebar-link.active {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(37, 99, 235, 0.35);
}

.sidebar-link.active .sidebar-icon i {
    color: #ffffff;
}

/* Iconos */

.sidebar-icon {
    width: 1.6rem;
    display: inline-flex;
    justify-content: center;
    margin-right: 0.6rem;
    font-size: 0.9rem;
}

.sidebar-icon i {
    color: #6b7280;
    transition: color 0.18s ease;
}

.sidebar-link:hover .sidebar-icon i {
    color: #93c5fd;
}

/* Submenú catálogo */

.sidebar-item-group .sidebar-submenu {
    list-style: none;
    margin: 0.15rem 0 0.45rem 0;
    padding: 0;
}

.sidebar-item-group .sidebar-link-group {
    font-weight: 600;
    color: #e5e7eb;
}

.sidebar-item-group .sidebar-submenu .sidebar-link {
    font-size: 0.8rem;
    padding-left: 2.4rem;
}

/* Footer */

.app-sidebar-footer {
    padding: 0.65rem 1.2rem 0.9rem 1.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.app-sidebar-footer .status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

/* Ajuste para link activo desde JS (.sidebar-menu a.active) */

.sidebar-menu a.active {
    background: linear-gradient(135deg, #3b82f6, #22c55e);
    color: #ffffff !important;
}
/* Miniatura de productos con zoom al pasar el mouse */
.product-thumb-wrapper {
    width: 94px;
    height: 94px;
    border-radius: 0.5rem;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(148, 163, 184, 0.15);
    cursor: zoom-in;
}

.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-thumb-wrapper:hover .product-thumb-img {
    transform: scale(1.8);
    box-shadow: 0 0 8px rgba(15, 23, 42, 0.4);
}

.product-thumb-placeholder i {
    font-size: 0.9rem;
}
