:root {
    --clr-espresso: #2c1e16;
    /* Café oscuro del menú */
    --clr-cobre: #855204;
    /* Naranja/Café del logo y botones */
    --clr-crema: #f5f0e6;
    /* Crema claro */
    --font-ui: 'Poppins', sans-serif;


    --stat-color-1: #2c1e16;
    /* Tarjeta 1: Ingresos del día */
    --stat-color-2: #b06b05;
    /* Tarjeta 2: Equipos activos */
    --stat-color-3: #198754;
    /* Tarjeta 3: Ventas de productos*/
    --stat-color-4: #0d6efd;
    /* Tarjeta 4: Clientes registrados (Azul) */
}

body {
    font-family: var(--font-ui);
    background-color: #f4f6f9;
}


#wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#sidebar-wrapper {
    width: 250px;
    background: linear-gradient(180deg, #452f23 0%, #140d09 100%);
    color: white;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


.sidebar-logo {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.sidebar-logo:hover {
    transform: scale(1.05);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    overflow-y: auto;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 13px 25px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.sidebar-nav li a i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
    background-color: rgba(176, 107, 5, 0.35);
    color: #ffffff !important;
    border-left: 4px solid var(--clr-cobre);
    font-weight: 600;
}

.sidebar-nav li a:hover i,
.sidebar-nav li a.active i {
    color: #ffffff !important;
}

/* Contenedor Central y Barra Superior */
#page-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-header {
    background-color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.btn-toggle-menu {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--clr-espresso);
    cursor: pointer;
    padding: 0;
}

.user-profile {
    font-weight: 600;
    color: var(--clr-espresso);
    display: flex;
    align-items: center;
}

.user-profile i {
    font-size: 1.5rem;
    margin-right: 8px;
    color: var(--clr-cobre);
}

.main-content {
    padding: 30px;
    flex-grow: 1;
}

.main-content h3 {
    font-weight: 700;
    color: var(--clr-espresso);
    margin-bottom: 0;
}


.login-bg {
    background-image: url('../img/fondo_login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-ui);
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 35px;
    padding: 40px 50px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-logo {
    width: 110px;
    margin-bottom: 5px;
}

.glass-title {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.fw-black {
    font-weight: 800;
}

.text-warning-custom {
    color: var(--clr-cobre);
}

.glass-label {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.icon-circle-glass {
    background-color: var(--clr-cobre);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 12px;
}

.glass-input {
    border-radius: 50px;
    padding: 12px 20px;
    border: none;
    font-size: 1rem;
}

.glass-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 107, 5, 0.4);
}

.glass-btn {
    background-color: var(--clr-cobre);
    color: #000;
    font-weight: 600;
    font-size: 1.15rem;
    border-radius: 50px;
    padding: 10px 40px;
    border: none;
    transition: all 0.3s;
}

.glass-btn:hover {
    background-color: #8c5304;
    color: #fff;
}

.glass-footer {
    font-size: 0.95rem;
    color: #1a1a1a;
    font-weight: 500;
}

.glass-link {
    color: var(--clr-cobre);
    font-weight: 700;
    text-decoration: none;
}

.glass-link:hover {
    text-decoration: underline;
}


/* Asterisco rojo automático para campos obligatorios */
.required-field::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
}

/* Tarjetas de Estadísticas Personalizables */
.stat-card {
    border: none;
    border-radius: 15px;
    color: #ffffff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.stat-card-1 {
    background: linear-gradient(135deg, var(--stat-color-1), #4a3326);
}

.stat-card-2 {
    background: linear-gradient(135deg, var(--stat-color-2), #d98814);
}

.stat-card-3 {
    background: linear-gradient(135deg, var(--stat-color-3), #24b36b);
}

.stat-card-4 {
    background: linear-gradient(135deg, var(--stat-color-4), #3d8bfd);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}


.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn-sm {
    padding: 5px 10px;
    border-radius: 6px;
}


.btn-coffee {
    background-color: var(--clr-espresso);
    color: #ffffff;
    border: none;
}

.btn-coffee:hover {
    background-color: var(--clr-cobre);
    color: #ffffff;
}

.text-coffee {
    color: var(--clr-cobre) !important;
}

.bg-coffee-light {
    background-color: rgba(176, 107, 5, 0.12) !important;
}

.stat-card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18) !important;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

/* Modern Dashboard Glassmorphic KPI Cards */
.kpi-glass-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.kpi-glass-card:hover {
    transform: translateY(-4px);
}

.kpi-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.9;
}

/* Card Themes - Paleta Original del Proyecto con Glassmorphism */
.kpi-glass-espresso {
    background: linear-gradient(135deg, var(--stat-color-1, #2c1e16) 0%, #4a3326 100%);
    box-shadow: 0 10px 25px rgba(44, 30, 22, 0.2);
}

.kpi-glass-espresso:hover {
    box-shadow: 0 14px 30px rgba(44, 30, 22, 0.35) !important;
}

.kpi-glass-espresso::before {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.kpi-glass-amber {
    background: linear-gradient(135deg, var(--stat-color-2, #b06b05) 0%, #d98814 100%);
    box-shadow: 0 10px 25px rgba(176, 107, 5, 0.25);
}

.kpi-glass-amber:hover {
    box-shadow: 0 14px 30px rgba(176, 107, 5, 0.4) !important;
}

.kpi-glass-amber::before {
    background: linear-gradient(90deg, #fef08a, #ffffff);
}

.kpi-glass-emerald {
    background: linear-gradient(135deg, var(--stat-color-3, #198754) 0%, #24b36b 100%);
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.25);
}

.kpi-glass-emerald:hover {
    box-shadow: 0 14px 30px rgba(25, 135, 84, 0.4) !important;
}

.kpi-glass-emerald::before {
    background: linear-gradient(90deg, #a7f3d0, #ffffff);
}

.kpi-glass-sapphire {
    background: linear-gradient(135deg, var(--stat-color-4, #0d6efd) 0%, #3d8bfd 100%);
    box-shadow: 0 10px 25px rgba(13, 110, 253, 0.25);
}

.kpi-glass-sapphire:hover {
    box-shadow: 0 14px 30px rgba(13, 110, 253, 0.4) !important;
}

.kpi-glass-sapphire::before {
    background: linear-gradient(90deg, #bfdbfe, #ffffff);
}

/* Glass Icon Box */
.kpi-glass-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease;
}

.kpi-glass-card:hover .kpi-glass-icon-box {
    transform: scale(1.08);
}

.kpi-icon-gold {
    color: #fde047;
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.6);
}

.kpi-icon-warm {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.kpi-icon-mint {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.kpi-icon-sky {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Glass Pills */
.kpi-glass-pill {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.38rem 0.8rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
}

.kpi-glass-title {
    color: #f8fafc !important;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.kpi-glass-card h3,
.kpi-glass-value {
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.9rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.kpi-glass-subvalue {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    font-weight: 600;
}

.kpi-glass-progress {
    display: flex !important;
    width: 100% !important;
    height: 8px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 999px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.kpi-glass-progress-bar {
    height: 100% !important;
    background: #ffffff !important;
    border-radius: 999px !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}