﻿.nav-panel {
    width: 13vw;
    max-width: 300px;
    min-width: 300px;
    height: 100vh;
    color: var(--theme-navigation-color);
    background-color: var(--theme-primary);
    box-shadow: 2px 2px 15px #efeff1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Prevents content from spilling out */
}

    .nav-header {
        width: 100%;
        text-align: center;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Keeps content at the top */
        padding-top: 30px;
        overflow: hidden; /* Prevents any overflow */
    }

        .nav-header p {
            font-size: 14px;
            font-weight: 600;
            width: 95%;
            padding: 20px;
            line-height: 2;
        }

        .nav-header img {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            object-fit: cover;
            object-position: 50% 60%;
            display: block;
            border: none;
            outline: none;
            box-shadow: none;
            z-index: 1;
        }

        .nav-header h2 {
            margin-top: 10px; /* Adjusted margin to avoid overlap */
            margin-bottom: 20px;
            font-size: 24px;
            text-align: center;
            word-wrap: break-word; /* Ensures long names don't overflow */
        }

    .nav-header-icon {
        font-size: 18px;
        color: var(--theme-primary);
    }

    .nav-header-social button {
        border-radius: 50%;
        background: var(--theme-neutral);
    }

        .nav-header-social button:hover {
            background-color: var(--theme-button-primary-hover);
            color: white !important;
        }

    .nav-header ul {
        margin-top: -40px; /*Maybe find why we need this*/
        font-size: 17px;
        font-weight: 700;
        list-style-type: none;
        text-align: left;
        flex-direction: column;
        width: 69%;
    }

        .nav-header ul i.bi {
            font-size: 22px;
        }

    .nav-header li {
        padding-top: 20px;
    }

    .nav-header a {
        font-size: inherit;
        color: var(--theme-navigation-color) !important;
        font-style: inherit;
        text-decoration: none;
    }

        .nav-header a.selected {
            color: var(--theme-navigation-hover) !important;
            border-radius: 5px;
        }

        .nav-header a:hover {
            color: var(--theme-navigation-hover1) !important;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
        }

    .nav-footer {
        width: 100%;
        text-align: center;
        padding-bottom: 20px;
        margin-top: auto; /* Pushes the footer to the bottom */
    }

/* Default: hide hamburger button on desktop */
.hamburger {
    display: none;
}

.footer {
    width: 100%;
    background-color: var(--theme-primary);
    color: var(--theme-navigation-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 500;
    font-size: 14px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .footer-logo img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        object-position: 50% 60%;
        border: none;
        outline: none;
        box-shadow: none;
    }

    .footer-logo h2 {
        font-size: 20px;
        margin: 0;
        color: var(--theme-navigation-color);
    }

.footer-info {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
}

/* Mobile adjustments */
@media (max-width: 600px) 
{
    /* Hide the nav-panel by positioning it off-screen */
    .nav-panel {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        transition: left 0.3s ease;
        z-index: 1000;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        background: var(--theme-primary);
        border: none;
        color: var(--theme-navigation-color);
        cursor: pointer;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1100; /* higher than nav-panel */
    }

        /* When active, the menu slides into view */
        .nav-panel.active {
            left: 0;
        }

    /* Optionally hide desktop nav styles on mobile */
    .nav-panel ul {
        text-align: left;
        width: 90%;
    }

    .nav-header img {
        width: 120px;
        height: 120px;
    }

    .nav-header h2 {
        font-size: 20px;
    }

    .nav-header p {
        font-size: 12px;
        padding: 10px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-nav {
        justify-content: center;
        padding: 10px 0;
    }

    .footer-logo {
        justify-content: center;
    }
}