/* Profile Dropdown Menu */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.profile-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.profile-dropdown-header .user-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.profile-dropdown-header .user-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-dropdown-menu .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color);
}

.profile-dropdown-menu .dropdown-item .item-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.profile-dropdown-menu .dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

/* Profile Modal Forms */
.profile-modal-content {
    max-width: 500px;
    width: 100%;
}

.profile-form-group {
    margin-bottom: 1.5rem;
}

.profile-form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.profile-form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.profile-form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-form-group input::placeholder {
    color: var(--text-secondary);
}

.profile-form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.profile-form-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    min-width: 100px;
}

.profile-form-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
}

.profile-form-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.profile-form-btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.profile-form-btn-secondary:hover {
    background: var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-dropdown-menu {
        right: -1rem;
        min-width: 200px;
    }
}

