/* --- GLOBAL / MOBILE FIRST (Bottom Dock) --- */
.side-navbar {
    display: flex; /* Visible on mobile */
    width: 100%;
    height: 75px;
    background-color: #f5f5f5;
    position: fixed;
    bottom: 0; /* Docked to bottom */
    left: 0;
    z-index: 1000;
    /* Shadow effect on top of the mobile dock */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row; /* Horizontal layout for mobile */
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
}

/* Hide Logo on Mobile to save space */
.nav-logo-section {
    display: none;
}

.nav-menu {
    display: flex;
    flex-direction: row; /* Horizontal items */
    gap: 15px;
}

/* --- DESKTOP VERSION (Sidebar) --- */
@media screen and (min-width: 768px) {
    .side-navbar {
        width: 80px;
        height: 100vh;
        top: 0;
        bottom: auto;
        flex-direction: column;
        box-shadow: none; /* Remove bottom dock shadow */
    }

    .nav-container {
        flex-direction: column;
        justify-content: space-between;
        padding: 25px 0;
    }

    .nav-logo-section {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 30px;
    }

    .account-menu-dropdown {
        /* Position dropdown next to sidebar on desktop */
        bottom: 20px;
        left: 85px; 
    }
}

/* --- LOGO & ICONS --- */
.nav-logo {
    width: 40px;
    height: auto;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.vector-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    zoom: 140%; /* Keeping your specific zoom */
}

.nav-text {
    font-size: 11px;
    color: #555;
}

/* --- ACCOUNT SECTION & GLOW --- */
.nav-account-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.account-glow-wrapper {
    text-decoration: none;
    display: flex;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* THE GLOWING EFFECT */
.account-glow-wrapper:hover {
    box-shadow: 0 0 15px 4px rgba(0, 122, 255, 0.7);
    background-color: rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

.account-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
}

.account-logo {
    width: 44px;
    height: 44px;
}

/* --- DROP-DOWN (FIGMA STYLES) --- */
.account-menu-dropdown {
    position: absolute;
    bottom: 80px; /* Positioned above the icon */
    left: 50%;
    transform: translateX(-50%);
    background: inherit;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1001;
}

.hidden { display: none; }

.figma-container {
    width: 219px;
    height: 125.68px;
    position: relative;
    opacity: 0.95;
}

.figma-line {
    width: 219px;
    height: 0px;
    left: 0px;
    position: absolute;
    outline: 1px rgba(78, 78, 78, 0.20) solid;
    outline-offset: -0.50px;
}

.line-1 { top: 38px; }
.line-2 { top: 76px; }

.figma-text {
    position: absolute;
    opacity: 0.85;
    text-align: center;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-family: "SF Pro", sans-serif;
    font-weight: 480;
    text-decoration: none;
    width: 100%;
}

.text-account { top: 11px; color: #262626; }
.text-pref { top: 49px; color: #262626; }
.text-logout { top: 86px; color: #FF383C; }

/* --- THEME LOGIC --- */
[data-theme="dark"] .side-navbar { background-color: #272728; }
[data-theme="dark"] .nav-text { color: #ffffff; }
[data-theme="dark"] .text-account,
[data-theme="dark"] .text-pref { color: #ffffff; }

@media (prefers-color-scheme: dark) {
    .side-navbar { background-color: #272728; }
    .nav-text { color: #ffffff; }
    .text-account, .text-pref { color: #ffffff; }
}

[data-theme="light"] .side-navbar { background-color: #f5f5f5; }
[data-theme="light"] .nav-text { color: #555; }
[data-theme="light"] .text-account, .text-pref { color: #262626; }