   /* --- MODERN RESET & CORE CSS TOKENS --- */
:root {
    --bg-base: #0b0f19;
    --bg-green: #4F46E5;
    --bg-surface: #2582C5; 
    --bg-surface-hover: #2582C5;
    --primary: #fff;
    --primary-light: #818cf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-white:  #ffffff;
    --text-green: #4F46E5;
    --text-muted: #64748b;
    --border-color: #2582C5;
    --dark-blue: #0B62A0;

    --sidebar-width: 280px;
    --navbar-height: 75px;
    --max-content-width: 1600px;
    --curve-radius: 12px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.25s;

    /* Semantics */
    --clr-success: #10b981;
    --clr-warning: #f59e0b;
    --clr-danger: #ef4444;


     /* Responsive base typography scale */
    --fs-h1: clamp(22px, 2.5vw, 32px);
    --fs-title: clamp(18px, 2vw, 26px);
    --fs-body: clamp(12px, 1vw, 14px);
    --fs-small: clamp(10px, 0.8vw, 12px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SIDEBAR DESIGN --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: transform var(--transition);
}

.sidebar-header {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sidebar-header .logo i {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-group {
    width: 100%;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    /*color: var(--text-secondary); */
    color: #fff;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: var(--curve-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
}

.menu-item i:first-child {
    font-size: 1.35rem;
    margin-right: 14px;
    min-width: 24px;
}

.menu-text {
    flex: 1;
}

.arrow-icon {
    font-size: 1.1rem;
    transition: transform var(--transition);
}

.menu-item:hover, .menu-group.open .dropdown-toggle {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.menu-item.active {
    background-color: var(--primary);
    color: #0b0f19;
}

/* Submenu Drawers */
.submenu {
    max-height: 0;
    overflow: hidden;
    /*padding-left: 38px;*/
    transition: max-height var(--transition), opacity var(--transition);
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-group.open .submenu {
    max-height: 200px; 
    opacity: 1;
    padding-top: 6px;
    padding-bottom: 6px;
}

.menu-group.open .arrow-icon {
    transform: rotate(180deg);
}

.submenu-item {
    /*color: var(--text-secondary);*/
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    display: block;
    transition: all var(--transition);
}

.submenu-item:hover {
    color: var(--primary-light);
    color: #91C838;
    font-weight: 400;
    /*padding-left: 20px;*/
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.system-version {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- MAIN FRAMEWORK & NAVBAR --- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

.top-nav {
    height: var(--navbar-height);
    background-color: #0b62a0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 900;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.menu-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.6rem;
    cursor: pointer;
    display: none;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    width: 320px;
    gap: 12px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.9rem;
}

.nav-icon-btn {
    font-size: 1.4rem;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.pulse-indicator {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 6px;
    height: 6px;
    background-color: var(--clr-warning);
    border-radius: 50%;
}

/* --- NEW USER DROPDOWN COMPONENT --- */
.user-profile-container {
    position: relative;
}

.user-pill {
    display: flex;
    align-items: center;
    /*gap: 12px;*/
    /*background-color: var(--bg-base);*/
    /*background-color: var(--bg-surface-hover);
    padding: 6px 6px 6px 6px;*/
    border-radius: 40px;
    border: 1px solid var(--dark-blue);
    cursor: pointer;
    color: var(--bg-surface-hover);
    transition: background-color var(--transition);
}

.user-pill:hover, .user-profile-container.show .user-pill {
    /*background-color: var(--bg-surface-hover);*/
    background-color: var(--text-white);
}

.user-pill i{
    font-size: 32px;
}

.user-pill img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.profile-arrow {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform var(--transition);
}

.user-profile-container.show .profile-arrow {
    transform: rotate(180deg);
}

/* Dropdown Window Card */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--curve-radius);
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 1100;
}

.user-profile-container.show .profile-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-header {
    padding: 12px 16px;
}

.dropdown-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dropdown-header p {
    font-size: 0.75rem;
    color: var(--text-white);
    margin-top: 2px;
}

.dropdown-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 6px 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all var(--transition);
}

.dropdown-link i {
    font-size: 1.15rem;
}

.dropdown-link:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
}

.dropdown-link.logout-link {
    /*color: var(--clr-danger);*/
    color: #fff;
}

.dropdown-link.logout-link:hover {
    /*background-color: rgba(239, 68, 68, 0.1); 
    color: #f87171;*/
}

/* --- DASHBOARD INTERIOR CORE CONTENT --- */
.dashboard-content {
    padding: 20px;
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto; 
    flex: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 20px;
}

.content-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.content-header p {
    color: var(--text-secondary);
}

.action-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--curve-radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* METRICS LAYOUT */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.metric-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--curve-radius);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.metric-info .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-info .value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 8px;
}

.metric-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.metric-badge.positive { background-color: rgba(16, 185, 129, 0.1); color: var(--clr-success); }
.metric-badge.neutral { background-color: var(--border-color); color: var(--text-secondary); }
.metric-badge.negative { background-color: rgba(239, 68, 68, 0.1); color: var(--clr-danger); }

/* RECENT ACTIONS SECTION */
.data-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--curve-radius);
    padding: 24px;
}

.data-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.table-scroller {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

th {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    font-size: 0.95rem;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pill.success { background: rgba(16, 185, 129, 0.1); color: var(--clr-success); }
.status-pill.warning { background: rgba(245, 158, 11, 0.1); color: var(--clr-warning); }


/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS (MOBILE, TABLET, DESKTOP, 2K, 4K)
   ========================================================================== */

/* --- 4K Ultra HD Monitor Scaling (>= 2560px) --- */
@media (min-width: 2560px) {
    :root {
        --max-content-width: 2200px; 
        --sidebar-width: 320px;     
        --navbar-height: 90px;
    }
    .dashboard-content {
        padding: 60px; 
    }
    .metric-info .value {
        font-size: 2.3rem; 
    }
}

/* --- Small Desktop / Laptop Optimization (<= 1200px) --- */
@media (max-width: 1200px) {
    .search-box {
        width: 240px;
    }
}

/* --- Tablet Mode (<= 992px) --- */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%); 
    }

    .sidebar.open {
        transform: translateX(0); 
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-wrapper {
        margin-left: 0; 
    }

    .menu-toggle-btn {
        display: block; 
    }
}

/* --- Smartphone Screen Adaptations (<= 576px) --- */
@media (max-width: 576px) {
    .top-nav {
        padding: 0 16px;
    }

    .search-box {
        display: none; 
    }

    .profile-name, .profile-arrow {
        display: none; /* Keep avatar icon alone on small screens */
    }
    
    .user-pill {
        padding: 4px;
    }

    .profile-dropdown {
        width: 200px;
    }

    .dashboard-content {
        padding: 20px 16px;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}


.hola-logo{
     background: white;
     height: 130px;
     width: 130px;
     object-fit: cover;
     display: flex;
     align-items: center;
     justify-content: center;
    padding: 20px 15px;
    border-radius: 100px; 
    margin: 0 auto;
    margin-bottom: 20px;
}



.header-title h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    color: #0f172a;
}

.breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.breadcrumbs span {
    color: var(--text-primary);
    font-weight: 600;
}


#current-view-breadcrumb{color: #000}


 .user-icon {
    font-size: 24px;
    color: var(--text-white);
}

 

.submenu-item.active {
    color: var(--text-white);
    background: var(--bg-green); /* your active color */
    border-radius: 6px;
}


.menu-item.active{
    background: var(--bg-green); /* your active color */
    color: var(--text-white);
}
 