/* 
 * FLOATING PROFILE MENU STYLES
 * Completely isolated styles to prevent conflicts with main page
 */

/* Container for the floating profile menu */
#floating-profile-container {
    position: fixed;
    z-index: 10000;
    pointer-events: none;
    top: 12px;
    left: 0;
    will-change: transform;
}

/* The actual floating profile menu */
#floating-profile-menu {
    pointer-events: auto;
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Active state for the menu */
#floating-profile-menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Profile menu list */
.profile-menu-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Profile menu items */
.profile-menu-item {
    margin: 0 !important;
    padding: 0 !important;
}

/* Profile menu links */
.profile-menu-link {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    color: #374151 !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-bottom: 2px !important;
}

.profile-menu-link:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
}

.profile-menu-link.active {
    background-color: #eff6ff !important;
    color: #2563eb !important;
}

/* Profile menu icons */
.profile-menu-icon {
    width: 18px !important;
    height: 18px !important;
    margin-right: 12px !important;
    stroke-width: 2 !important;
    flex-shrink: 0 !important;
}

/* Profile menu text */
.profile-menu-text {
    font-size: 14px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #floating-profile-menu {
        width: 220px;
    }
}

@media (max-width: 480px) {
    #floating-profile-menu {
        width: 200px;
        padding: 6px;
    }
    
    .profile-menu-link {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .profile-menu-icon {
        width: 16px !important;
        height: 16px !important;
        margin-right: 10px !important;
    }
    
    .profile-menu-text {
        font-size: 13px !important;
    }
}

/* Ensure no inheritance from parent styles */
#floating-profile-container,
#floating-profile-container *,
#floating-profile-menu,
#floating-profile-menu * {
    box-sizing: border-box !important;
}

/* Override any potential conflicts */
#floating-profile-menu ul,
#floating-profile-menu li,
#floating-profile-menu a {
    all: unset;
}

#floating-profile-menu ul {
    display: block !important;
    list-style: none !important;
}

#floating-profile-menu li {
    display: block !important;
}

#floating-profile-menu a {
    display: flex !important;
    cursor: pointer !important;
}

/* 
 * PROFILE EDIT PAGE STYLES
 * Specific styles for the profile edit form
 */

/* Profile edit form enhancements */
.auth-container .auth-card {
    max-width: 500px;
    margin: 2rem auto;
}

.auth-header h1 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Form group styling */
/* .form-group {
    margin-bottom: 1.5rem;
} */

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
}

.form-group input {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: #ffffff;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Disabled field styling */
.disabled-field {
    background-color: #f9fafb !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
}

.form-group small {
    display: block;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Button styling */
.auth-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* Error message styling */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message i {
    color: #dc2626;
}

/* Responsive adjustments for profile edit */
@media (max-width: 768px) {
    .auth-container .auth-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .auth-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 48%;
    }
}

/* 
 * PROFILE VIEW PAGE STYLES
 * Specific styles for the profile display page
 */

/* Profile information display */
.profile-info {
    margin-bottom: 2rem;
}

.profile-field {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.profile-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.profile-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-value {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

/* Success message styling */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message i {
    color: #16a34a;
}

/* Profile page specific button adjustments */
.profile-info + .auth-actions {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
}

/* Enhanced profile field styling */
.profile-field {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
}

.profile-field label {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.field-value {
    color: #111827;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive adjustments for profile view */
@media (max-width: 768px) {
    .profile-field {
        padding: 0.75rem;
    }
    
    .field-value {
        font-size: 0.875rem;
    }
}