/* Top Header */
.top-header {
    background: linear-gradient(135deg, #0b2c4a 0%, #0b2c4a 100%);
    color: white;
    padding: 0.4rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    position: relative;
}

.header-menu-wrapper {
    position: relative;
}

.header-profile-btn,
.header-menu-btn {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.header-profile-btn:active,
.header-menu-btn:active {
    animation: popUpClick 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-icon,
.menu-icon {
    width: 20px;
    height: 20px;
    color: white;
}

/* Profile Verification Badge */
.verification-badge {
    position: absolute;
    top: 0px;
    right: -10px;
    width: 16px;
    height: 16px;
    background: #28a745;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.verification-badge.active {
    opacity: 1;
    visibility: visible;
}

.verification-badge-icon {
    width: 10px;
    height: 10px;
    color: white;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

/* Header Menu Dropdown */
.header-menu-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

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

.header-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: right;
}

.header-menu-item:last-child {
    border-bottom: none;
}

.header-menu-item .menu-item-icon {
    width: 20px;
    height: 20px;
    color: #2c5aa0;
    stroke: #2c5aa0;
    stroke-width: 2;
    flex-shrink: 0;
}

.header-menu-item .menu-item-text {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: #333;
    flex: 1;
}

/* Notification Badge */
.notification-badge {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

/* Notification Overlay */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.notification-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Notification Dropdown Box */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 1.5em);
    right: 0;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 700px;
    max-width: calc(100vw - 2rem);
    max-height: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-dropdown-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: #333;
    margin: 0;
}

.notification-dropdown-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s ease;
}

.notification-dropdown-close:hover {
    color: #333;
}

.notification-dropdown-close .close-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-item:hover {
    background-color: var(--bg-hover);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-message {
    font-size: var(--font-size-base);
    color: #333;
    line-height: 1.5;
}

.notification-date {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.notification-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-size-base);
}

.logo {
    font-size: var(--spacing-md);
    font-weight: 400;
    margin: 0;
    flex: 1;
    text-align: center;
}