/* ===================================================
   RESET AND BASE STYLES
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    padding-top: 60px; /* Space for fixed header */
}

/* ===================================================
   DESKTOP HEADER (> 700px)
   =================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    border-bottom: 1px solid #a99cff;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

header ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 5px;
    /*gap: 5px;*/
    height:70px;
}

header li {
    margin: 0;
}

    header li a {
        display: flex;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        color: #fff;
        /*padding: 5px 12px;*/
        padding:5px 15px 0 10px;
        transition: background-color 0.3s;
    }

header li a:hover {
    background-color: rgba(169, 156, 255, 0.2);
    border-radius: 4px;
}

header li a i {
    color: #fff;
    font-size: x-large;
}

header li a span {
    color: #fff;
    white-space: nowrap;
}

/* Hide hamburger on desktop */
header .hamburger-item {
    display: none;
    margin-left: auto;
}

/* ===================================================
   MOBILE SIDEBAR (Hidden by default)
   =================================================== */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Hidden off-screen */
    width: 250px;
    height: 100vh;
    background-color: #1e1e1e;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    right: 0; /* Slide in */
}

.sidebar ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar li {
    margin: 0;
}

.sidebar li a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

    .sidebar li a:hover {
        /*background-color: rgba(169, 156, 255, 0.2);*/
        background-color: #7f7f7f;
    }

.sidebar li a i {
    color: #fff;
    font-size: x-large;
    min-width: 30px;
}

.sidebar li a span {
    color: #fff;
    font-size: medium;
}

/* ===================================================
   OVERLAY (For darkening content when sidebar open)
   =================================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* ===================================================
   LOGO STYLES (Shared between header and sidebar)
   =================================================== */
.fans-logo-link {
    display: inline-block;
    text-decoration: none;
    color: #8a90e2;
}

.fans-logo-table {
    border-collapse: collapse;
    border: 0;
    margin: 0;
    padding: 0;
}

.fans-logo-table td {
    padding: 0 2px;
}

.fans-logo-icon {
    color: #8a90e2;
    font-size: xx-large;
}

.fans-logo-ends {
    font-size: x-large;
    color: #8a90e2;
}

.fans-logo-saas {
    font-size: x-large;
    font-weight: 900;
    color: yellow;
}

.fans-logo-accountName-icon {
    color: white!important;
    font-size: 24px;
    vertical-align: bottom;
}

.fans-logo-accountname {
    font-size: 32px;
    font-weight: 100;
    color: white;
    vertical-align: bottom;
}


/* ===================================================
   RESPONSIVE BREAKPOINT @ 700px
   =================================================== */
@media (max-width: 700px) {
    /* Hide desktop menu items (except logo and hamburger) */
    header ul li.menu-item {
        display: none;
    }

    /* Keep logo visible */
    header ul li.logo-item {
        display: flex;
    }

    /* Show hamburger button */
    header .hamburger-item {
        display: flex;
        margin-left: auto;
        margin-right:40px;
    }

    /* Adjust body padding for smaller header */
    body {
        padding-top: 50px;
    }

    header ul {
        /*padding: 8px 15px;*/
        padding:0;
    }
}

/* ===================================================
   MOBILE VERY SMALL SCREENS (< 400px)
   =================================================== */
@media (max-width: 400px) {
    .sidebar {
        width: 100%;
        right: -100%;
    }

    body {
        padding-top: 45px;
    }
}
