/* Header Component Styles */

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Upgrade Button */
.upgrade-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
}

.upgrade-btn:active {
    transform: translateY(0);
}

.upgrade-icon {
    font-size: 1rem;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: #f8fafc;
}

.dropdown-arrow {
    font-size: 1rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.dropdown.active .dropdown-arrow {
    color: #1e293b;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    max-width: 220px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #1e293b;
    border: none;
    background: none;
    width: calc(100% - 0px);
    text-align: left;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    margin: 0;
    border-radius: 0;
}

.dropdown-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.dropdown-item.logout-item {
    color: #dc2626;
}

.dropdown-item.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.menu-icon {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

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

.user-info span:first-child {
    font-weight: 600;
    color: #1e293b;
}

.user-info span:last-child {
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .user-menu {
        gap: 0.5rem;
    }

    .dropdown-menu {
        min-width: 180px;
        max-width: 200px;
        right: -1rem;
        overflow: hidden;
    }

    .user-info {
        display: none;
    }

    .dropdown-toggle {
        padding: 0.25rem;
    }

    .upgrade-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .upgrade-icon {
        font-size: 0.9rem;
    }
} 