* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    height: 100%;
    overflow-x: hidden;
    background-color: #f4fdf9;
}


header {
    height: 70px;
    background-color: #006A4E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

#space-name {
    margin-right: 5px;
}

header .user-icon {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}


.user-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    padding: 15px;
    animation: fadeIn 0.3s ease-in-out;
    text-align: left;
    font-size: 14px;
}

.user-dropdown.visible {
    display: block;
}

.user-dropdown p {
    margin: 10px 0;
    font-size: 0.95rem;
    color: #006A4E;
}

.dropdown-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    margin: 4px 0;
    font-size: 0.95rem;
    color: #006A4E;
    background-color: transparent;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    width: 100%;
    text-decoration: none;
}

.dropdown-link i {
    margin-right: 8px;
    font-size: 16px;
}

.dropdown-link:hover {
    background-color: #d4f4ea;
}


.bottom-nav {
    position: fixed;
    top: 70px;           
    left: 0;
    width: 100%;
    background-color: #006A4E;
    padding: 10px 0;
    margin: 0;
    z-index: 998;           
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bottom-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-start;
    padding: 0 20px;
    flex-wrap: wrap;
}

.bottom-nav li {
    margin-right: 13px;
    position: relative;
}

.bottom-nav .dropbtn {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 9px 11px;
    position: relative;
    transition: color 0.3s ease;
}

.bottom-nav .dropbtn::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.bottom-nav .dropbtn:hover::after {
    width: 100%;
}

.bottom-nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    border-radius: 5px;
    min-width: 180px;
    top: 40px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.bottom-nav li:hover .dropdown-content {
    display: block;
}

.bottom-nav .dropdown-content a {
    display: block;
    font-size: 0.9rem;
    padding: 9px 12px;
    color: #333;
    text-decoration: none;
}

.dropdown-content {
    margin-top: -1%;
}

.bottom-nav .dropdown-content a:hover {
    background-color: #ccf2e4;
}


.sub-dropdown {
    position: relative;
}

.sub-dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.sub-dropdown:hover .sub-dropdown-content {
    display: block;
}

.dropdown-content,
.sub-dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.dropdown.active > .dropdown-content,
.sub-dropdown.active > .sub-dropdown-content {
    display: block;
}

.sub-dropdown-content {
    top: 0;
    left: 100%;
}


.back-button {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

#backBtn {
    font-size: 19px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

#backBtn:hover {
    color: #89e68c;
}


@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}




@media (max-width: 1024px) {
    header {
        padding: 0 25px;
    }

    .bottom-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bottom-nav li {
        margin: 8px;
    }

    .user-dropdown {
        width: 220px;
    }
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
        text-align: center;
    }

    header .logo {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .bottom-nav {
        top: 110px;
        padding: 8px 0;
    }

    .bottom-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .bottom-nav li {
        margin: 5px 0;
    }

    .bottom-nav .dropbtn {
        font-size: 1rem;
        padding: 10px 14px;
    }

    .user-dropdown {
        width: 200px;
        right: -50px;
    }
}


@media (max-width: 480px) {
    header {
        padding: 10px;
    }

    header .logo {
        font-size: 1rem;
    }

    .bottom-nav {
        top: 100px;
        padding: 6px 0;
    }

    .bottom-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .bottom-nav .dropbtn {
        font-size: 0.95rem;
        padding: 8px 12px;
    }

    .dropdown-content,
    .sub-dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f8fdf9;
        width: 100%;
        text-align: center;
    }

    .dropdown-content a {
        padding: 10px;
    }

    .user-dropdown {
        width: 180px;
        right: 0;
    }
}
