﻿.secure-topnavbar {
    background-color: #d72f2f;
    padding: 8px;
    height: 76px;
    position: relative;
    overflow: visible;
    z-index: 100;
}

.secure-topnavbar__container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.secure-topnavbar__logo-link {
    text-decoration: none;
}

.secure-topnavbar__logo-link--desktop {
    display: block;
}

.secure-topnavbar__logo-image {
    width: auto;
}

.secure-topnavbar__logo-link:hover .secure-topnavbar__logo-image {
    opacity: 0.9;
}

.secure-topnavbar__actions {
    display: flex;
    align-items: center;
    height: auto;
    padding-right: 16px;
    pointer-events: auto;
}

.secure-topnavbar__wallet-link {
    text-decoration: none;
    position: relative;
    z-index: 101;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
}

.secure-topnavbar__wallet-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
}

.secure-topnavbar__wallet-info--outlined {
    border: 1px solid #ff9c9c;
    border-radius: 4px;
}

.secure-topnavbar__wallet-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.secure-topnavbar__wallet-label {
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 16px;
    line-height: 1;
    color: #ff9c9c;
}

.secure-topnavbar__wallet-label--with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.secure-topnavbar__wallet-icon {
    width: 20px;
    height: 20px;
}

.secure-topnavbar__wallet-value {
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 16px;
    line-height: 1;
    color: #fff;
}

.secure-topnavbar__divider {
    border-right: 1px solid #b8081e;
    height: 36px;
    width: 1px;
    display: block;
    margin: 0 16px;
}

.secure-topnavbar__action-group {
    display: flex;
    gap: 16px;
}

.secure-topnavbar__action-btn {
    border: 0;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    min-width: unset;
    width: auto;
}

.secure-topnavbar__action-btn--small {
    height: 28px;
    width: 34px;
    padding: 8px 16px;
}

.secure-topnavbar__action-btn--icon {
    min-width: unset;
    width: auto;
}

.secure-topnavbar__action-btn--avatar {
    padding: 0;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .secure-topnavbar__action-btn--avatar:focus,
    .secure-topnavbar__action-btn--avatar:focus-visible,
    .secure-topnavbar__action-btn--avatar:active {
        outline: none !important;
        background-color: transparent !important;
    }

.secure-topnavbar__notification-indicator {
    width: 8px;
    height: 8px;
    background-color: #ffbe17;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 4px;
}

.secure-topnavbar__action-icon {
    width: 20px;
    height: 20px;
}

.secure-topnavbar__nav-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffb3b3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.2s ease;
}

    .secure-topnavbar__action-btn--avatar:hover .secure-topnavbar__nav-avatar,
    .secure-topnavbar__nav-avatar:hover {
        border: none !important;
    }

.secure-topnavbar__nav-avatar-initials {
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #d72f2f;
    text-transform: uppercase;
    line-height: 1;
}

.secure-topnavbar__nav-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #d72f2f;
    border-radius: 50%;
}

.secure-topnavbar__profile-dropdown {
    position: relative;
    z-index: 400;
}

.secure-topnavbar__dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 500;
    padding: 6px 0;
}

    .secure-topnavbar__dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .secure-topnavbar__dropdown-menu::before {
        content: '';
        position: absolute;
        top: -6px;
        right: 20px;
        width: 12px;
        height: 12px;
        background-color: #fff;
        transform: rotate(45deg);
        box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.05);
    }

.secure-topnavbar__dropdown-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.secure-topnavbar__user-avatar {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d72f2f 0%, #b8081e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.secure-topnavbar__avatar-initials {
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.secure-topnavbar__status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: #10b981;
    border: 2px solid #fff;
    border-radius: 50%;
}

.secure-topnavbar__user-info {
    flex: 1;
    min-width: 0;
}

.secure-topnavbar__user-name {
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.secure-topnavbar__user-role {
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 13px;
    color: #6b7280;
}

.secure-topnavbar__dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 6px 0;
}

/* Dropdown Items */
.secure-topnavbar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 2px 8px;
    border-radius: 6px;
    text-decoration: none;
    color: #1f2937;
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .secure-topnavbar__dropdown-item:hover {
        background-color: #fde8e8;
        color: #d72f2f;
    }

        .secure-topnavbar__dropdown-item:hover .secure-topnavbar__dropdown-icon {
            color: #d72f2f;
        }

.secure-topnavbar__dropdown-item--logout {
    color: #1f2937;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

    .secure-topnavbar__dropdown-item--logout:hover {
        background-color: #fde8e8;
        color: #d72f2f;
    }

        .secure-topnavbar__dropdown-item--logout:hover .secure-topnavbar__dropdown-icon {
            color: #d72f2f;
        }

.secure-topnavbar__dropdown-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    flex-shrink: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.secure-topnavbar__dropdown-item--logout .secure-topnavbar__dropdown-icon {
    color: #d72f2f;
}

.secure-topnavbar__mobile-actions {
    display: none;
}

.secure-topnavbar__mobile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
}

.secure-topnavbar__hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.secure-topnavbar__mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .secure-topnavbar__mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.secure-topnavbar__mobile-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.secure-topnavbar__mobile-overlay.active .secure-topnavbar__mobile-content {
    transform: translateX(0);
}

.secure-topnavbar__mobile-user-info {
    background-color: #d72f2f;
    color: #fff;
    padding: 20px;
}

.secure-topnavbar__mobile-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.secure-topnavbar__mobile-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffb3b3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.secure-topnavbar__mobile-avatar-initials {
    font-family: var(--font-family-primary, "Poppins", sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: #d72f2f;
    text-transform: uppercase;
    line-height: 1;
}

.secure-topnavbar__mobile-status-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border: 2px solid #d72f2f;
    border-radius: 50%;
}

.secure-topnavbar__mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.secure-topnavbar__mobile-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.secure-topnavbar__mobile-wallet {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.secure-topnavbar__mobile-wallet-icon {
    width: 16px;
    height: 16px;
}

.secure-topnavbar__mobile-wallet-text {
    color: #ffb3b3;
}

.secure-topnavbar__mobile-nav {
    padding: 20px 0;
}

.secure-topnavbar__mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: background-color 0.2s ease;
    position: relative;
}

    .secure-topnavbar__mobile-nav-link:hover {
        background-color: #f8f9fa;
    }

.secure-topnavbar__mobile-nav-link--logout {
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
    color: #dc3545;
}

    .secure-topnavbar__mobile-nav-link--logout:hover {
        background-color: #fff5f5;
    }

.secure-topnavbar__mobile-nav-icon {
    width: 20px;
    height: 20px;
}

.secure-topnavbar__mobile-nav-text {
    color: inherit;
}

.secure-topnavbar__mobile-notification-badge {
    width: 8px;
    height: 8px;
    background-color: #ffbe17;
    border-radius: 50%;
    margin-left: auto;
}

.secure-topnavbar__action-btn:focus,
.secure-topnavbar__mobile-toggle:focus {
    outline: none;
}

.secure-topnavbar__mobile-nav-link:focus,
.secure-topnavbar__dropdown-item:focus {
    outline: none;
}

@media (max-width: 768px) {
    .secure-topnavbar {
        height: 60px;
        padding: 6px 16px;
    }

    .secure-topnavbar__actions {
        display: none;
    }

    .secure-topnavbar__mobile-actions {
        display: block;
    }

    .secure-topnavbar__logo-image {
        height: 32px;
    }
}

@media (max-width: 480px) {
    .secure-topnavbar {
        padding: 6px 12px;
    }

    .secure-topnavbar__mobile-content {
        width: 100%;
    }

    .secure-topnavbar__dropdown-menu {
        min-width: 260px;
        right: -8px;
    }
}
