:root {
    --hd-primary-color: #349254;
}

.main-header {
    background-color: #1f1f1f;
    transition: background 0.3s ease;
    z-index: 1040;
    min-height: 100px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 70px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-text-box {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo-text {
    color: var(--hd-primary-color);
    font-weight: 800;
    font-family: 'Arial', sans-serif;
    text-decoration: none;
    font-size: 2rem;
    line-height: 2rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

@media screen and (max-width: 768px) {
    body:not(#index-page) .logo-text {
        display: none;
    }
}

.nav-link:hover {
    opacity: 0.8;
    cursor: pointer;
}

.nav-btn, .btn-nav-mobile {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-btn:hover, .btn-nav-mobile:hover {
    background: var(--hd-primary-color);
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0.8;
    box-shadow: 0 4px 10px rgba(158, 255, 230, 0.3);
}

.icon-link {
    font-size: 1.8rem;
    color: var(--hd-primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: underline;
    text-underline-offset: 0.8rem;
}

.user-dropdown > .dropdown-toggle::after {
    display: none;
}

.user-dropdown > .dropdown-toggle {
    background: none;
    border: none;
    box-shadow: none;
    position: relative;
}

.icon-link:hover {
    opacity: 0.8;
}

.toggle-menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 8px 16px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.toggle-menu-btn:hover {
    background: var(--secondary-color);
    color: #0f1a24;
}

.user-dropdown .nav-link {
    color: #ffffff;
    transition: all 0.2s ease;
}

.user-dropdown .username {
    font-size: 0.9rem;
    font-weight: 500;
}

.user-dropdown .dropdown-menu {
    background-color: #212121;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    min-width: 200px;
    padding: 0.75rem 0;

    transform: translateY(-15px) scale(0.95);

    transition:
        opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 4px 10px rgba(0, 0, 0, 0.2);
}

.user-dropdown.show .dropdown-menu {
    transform: translateY(0) scale(1);
}

.user-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #3a3a3a;
}

.user-dropdown .dropdown-menu::after {
    content: '';
    position: absolute;
    top: -7px;
    right: 21px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #212121;
}

.user-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: #e0e0e0;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
    position: relative;

    transform: translateX(-10px);
}

.user-dropdown.show .dropdown-item:nth-child(1) {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.05s forwards;
}

.user-dropdown.show .dropdown-item:nth-child(3) {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

.user-dropdown.show .dropdown-item:nth-child(5) {
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-dropdown .dropdown-item:hover {
    background-color: rgba(52, 146, 84, 0.1);
    color: var(--hd-primary-color);
    transform: translateY(1px);
}

.user-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    color: #b0b0b0;
    transition: color 0.2s ease;
}

.user-dropdown .dropdown-item:hover i {
    color: var(--hd-primary-color);
}

.user-dropdown .dropdown-divider {
    border-top: 1px solid #3a3a3a;
    margin: 0.5rem 0;
    animation: fadeIn 0.3s ease 0.2s forwards;
}

.user-dropdown.show .dropdown-divider {
    animation: fadeIn 0.3s ease 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.offcanvas {
    background-color: #212121;
}