:root {
    --primary-color: #2c3e50;
    --secondary-color: #E4A500;
    --accent-color: #e74c3c;
    --light-color: #000;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

.lilita-one-regular {
    font-family: "Lilita One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.popup-window {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    overflow: hidden;
}

.popup input[type="checkbox"]:checked~.popup-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.popup-window legend {
    padding: 1rem 1rem 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
    width: 100%;
}

.popup-window ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popup-window li {
    border-bottom: 1px solid #f0f0f0;
}

.popup-window li:last-child {
    border-bottom: none;
}

.popup-window button,
.popup-window .btn-view-profile,
.popup-window .btn-logout {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.popup-window button:hover,
.popup-window .btn-custom:hover {
    background-color: #f8f9fa;
    color: var(--secondary-color);
}

.popup-window .btn-logout {
    color: var(--accent-color);
}

.popup-window .btn-logout:hover {
    background-color: #ff0000;
    color: var(--accent-color);
}

.popup-window hr {
    margin: 0.5rem 0;
    border-color: #f0f0f0;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-nav {
        margin-top: 1rem;
    }

    .navbar-custom .nav-link {
        margin: 0.125rem 0;
        padding: 0.75rem 1rem;
    }

    .navbar-custom .nav-link.active-link::after {
        display: none;
    }

    .navbar-custom .dropdown-menu {
        margin-left: 1rem;
        width: calc(100% - 2rem);
    }

    .navbar-right {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: space-between;
    }

    .popup-window {
        position: static;
        width: 100%;
        margin-top: 1rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
    }

    .popup-window legend,
    .popup-window button,
    .popup-window .btn-view-profile,
    .popup-window .btn-logout {
        color: var(--light-color);
        background: transparent;
    }

    .popup-window button:hover,
    .popup-window .btn-view-profile:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .popup-window .btn-logout:hover {
        background: rgba(231, 76, 60, 0.2);
    }

    .popup-window hr {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.navbar-custom {
    background: linear-gradient(145deg, #ffffff, #fff5e6, #ffffff00) !important;
    border-radius: 0 0 100px 100px;
    box-shadow: 0 15px 35px rgba(255, 149, 0, 0.15);
    border: 2px solid rgba(255, 149, 0, 0.3);
    margin: 0px 70px 0px 70px;
    position: sticky;
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.main-header {
    background: #ff9500;
    background: linear-gradient(90deg, rgba(255, 149, 0, 1) 0%, rgba(255, 180, 74, 1) 50%, rgba(255, 227, 179, 1) 100%);
    padding: 15px 0;
    color: #2c3e50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    top: 0;
    border-bottom-left-radius: 100px;
    border-bottom-right-radius: 100px;

    .user-info span a {
        color: #2C3E50;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }

    .nav-logo {
        text-align: center;
        color: #2C3E50;
        font-size: 25px;
        height: 25px;
    }
}

.user-avatar {
    border: 4px solid #E4A500 !important;
    transition: transform 0.2s ease-in-out;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1030;
}

.btn-drop-custom {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);

    width: 46px;
    height: 46px;
    border: 1px solid #E4A500;
    color: #E4A500;
    border-radius: 50%;

    &:hover {
        background: #E4A500;
        color: #fff;
    }
}

.dropdown-menu a.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    transition: background 0.2s;
}

.dropdown-menu a.dropdown-item:hover {
    background: #f8b400 !important;
    color: #fff !important;
}

.dropdown-toggle.btn {
    padding: 6px 8px;
    line-height: 1;
}