/* ==========================================================================
   Top Navigation Styles
   ========================================================================== */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

/* User Dropdown Toggle */
.top-nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.top-nav-user:hover {
    background: #F3F4F6;
}

.user-info-compact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.user-name-compact {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
}

.user-email-compact {
    font-size: 12px;
    color: #6B7280;
    line-height: 1.2;
}

.user-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4F46E5;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
}

.dropdown-icon {
    font-size: 12px;
    color: #6B7280;
    transition: transform 0.2s;
}

.top-nav-user.active .dropdown-icon {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 240px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

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

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4F46E5;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.dropdown-user-email {
    font-size: 12px;
    color: #6B7280;
}

.dropdown-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #F3F4F6;
    color: #111827;
}

.dropdown-item i {
    width: 16px;
    color: #6B7280;
}

.dropdown-item-danger {
    color: #DC2626;
}

.dropdown-item-danger:hover {
    background: #FEF2F2;
    color: #DC2626;
}

.dropdown-item-danger i {
    color: #DC2626;
}

/* Button styles for Sign In */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .user-info-compact {
        display: none;
    }

    .top-nav {
        padding: 0 16px;
    }
}
