html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* DASHBOARD LAYOUT */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 60px); /* 🔥 fixed height */
    background: #f6f7fb;
}
/* SIDEBAR */
.sidebar {
    width: 260px;
    background: #204028;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0px;
    left: 0;
    height: 100vh;

    transition: all 0.3s ease;
    z-index: 1200;

    overflow-y: auto;
    overflow-x: hidden;
}

/* SCROLLBAR STYLE (ADDED) */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
/* =========================================
   SIDEBAR BRAND / MOLECULLI HEADER
   ========================================= */

.sidebar-brand {
    height: 62px;
    min-height: 62px;

    box-sizing: border-box;

    padding: 6px 10px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: #162d1d;
    color: #FFD700;

    flex-shrink: 0;

    overflow: hidden;
}


/* =========================================
   MOLECULLI LOGO + NAME
   ========================================= */

.sidebar-brand-main {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 8px;

    width: 100%;

    padding-left: 55px;

    box-sizing: border-box;

    line-height: 1;
}


/* =========================================
   MOLECULLI LOGO
   ========================================= */

.sidebar-brand-logo {
    width: 36px;
    height: 36px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;
}


/* =========================================
   MOLECULLI NAME
   ========================================= */

.sidebar-brand-name {
    font-size: 17px;

    font-weight: 700;

    color: #FFD700;

    line-height: 1;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

/* MENU */
.sidebar-menu {
    list-style: none;

    padding: 8px 0;
    margin: 0;

    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-menu li {
    width: auto;
}

/* MAIN MENU LINKS */
.sidebar-menu a {
    display: flex;   /* 🔥 key fix */
    align-items: center;
    gap: 14px;
    padding: 4px 7px;     /* tighter padding */
    margin: 2px 8px;       /* spacing from edges */
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.9;
    border-radius: 10px;     /* optional, looks clean */
    transition: all 0.2s ease;
}
/* ICON ALIGNMENT */
.sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

/* TEXT should stay left */
.sidebar-menu a span,
.sidebar-menu a {
    justify-content: flex-start;
}

/* HOVER + ACTIVE */
.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #2e5736;
    opacity: 1;
    border-left: none;
    color: #FFD700;
}

/* SUBMENU PARENT */

/* keep arrow right WITHOUT shifting text */
.has-submenu > a {
    position: relative;
    padding-right: 36px;
}

/* arrow positioned right */
.has-submenu .arrow {
    position: absolute;
    right: 18px;
    font-size: 12px;
    opacity: 0.7;
}
.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;   /* ✅ removes bullets */
    margin: 0;
}
.sub-menu li a{
    padding: 3px;
    font-size: 13px;
}

.has-submenu.open .sub-menu {
    max-height: 500px;
}
.has-submenu.open > a {
    background: #2e5736;
    border-left: none;;
    color: #FFD700;
}

/* FOOTER */
.sidebar-footer {
    padding: 15px;
    font-size: 12px;
    background: #162d1d;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #FFD700;
    flex-shrink: 0;

}
/* MAIN CONTENT */
.dashboard-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: calc(100vh - 60px);
    box-sizing: border-box;
    padding: 65px 16px 25px;;
    overflow-x: hidden;
}

/* Rotate arrow */
.has-submenu.open .arrow i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Icon colors */
.text-primary { color: #4F46E5; }
.text-success { color: #16A34A; }
.text-warning { color: #F59E0B; }
.text-danger { color: #DC2626; }
.text-info { color: #0EA5E9; }
.text-secondary { color: #64748B; }
.text-light { color: #E5E7EB; }
.text-indigo { color: #6366F1; }
.text-purple { color: #8B5CF6; }
.text-pink { color: #EC4899; }

/* =========================================
   ACTIVE SUBMENU ITEM
========================================= */

.sidebar .sidebar-menu .sub-menu li a.active {
    background: #2e5736 !important;
    color: #FFD700 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

.sidebar .sidebar-menu .sub-menu li a.active i {
    color: #FFD700 !important;
}
.sidebar-menu,
.dashboard-content {
    scroll-behavior: smooth;
}
/* =========================================
   REPORTS + TEAM MANAGEMENT
   Match other sidebar menu hover/active UI
   ========================================= */

.reports-menu > a:hover,
.reports-menu.open > a,
.team-management-menu > a:hover,
.team-management-menu.open > a {
    background: #2e5736;
    color: #FFD700;
    opacity: 1;
}

/* Keep icons yellow when these menus are hovered/open */
.reports-menu > a:hover i,
.reports-menu.open > a i,
.team-management-menu > a:hover i,
.team-management-menu.open > a i {
    color: #FFD700 !important;
}

/* Yellow active submenu links */
.reports-menu .sub-menu a.active,
.team-management-menu .sub-menu a.active {
    color: #FFD700;
    font-weight: 600;
}

.reports-menu .sub-menu a.active i,
.team-management-menu .sub-menu a.active i {
    color: #FFD700 !important;
}
/* PRINT FIX (PDF EXPORT) */
@media print {

    /* REMOVE SIDEBAR */
    .sidebar {
        display: none !important;
    }

    /* REMOVE NAVBAR + FOOTER */
    .dashboard-navbar,
    .footer-bar {
        display: none !important;
    }

    /* FIX MAIN LAYOUT */
    .dashboard-layout {
        height: auto !important;
        overflow: visible !important;
    }

    /* EXPAND CONTENT FULL WIDTH */
    .dashboard-content {
        margin-left: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        padding: 20px !important;
    }

    /* REMOVE ALL SCROLL CONTAINERS */
    * {
        overflow: visible !important;
    }

    /* PREVENT CUTTING CONTENT */
    .lead-container,
    .contact-container {
        height: auto !important;
        overflow: visible !important;
    }

}
