/* editprofile.css */
.edit-profile-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    overflow-y: auto;
}

.edit-profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.edit-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.edit-profile-header h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
}

.edit-profile-back-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.edit-profile-back-btn:hover {
    background-color: #f0f0f0;
}

.edit-profile-save-btn {
    background-color: #1d9bf0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Barlow Condensed', sans-serif;
}

.edit-profile-save-btn:disabled {
    background-color: #8ecaf7;
    cursor: not-allowed;
}

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 600;
    font-family: 'Barlow Condensed', sans-serif;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #657786;
}

.input-hint {
    font-size: 12px;
    color: #657786;
    margin-top: 4px;
}

.username-availability {
    font-size: 12px;
    margin-top: 4px;
}

.username-availability.checking {
    color: #1d9bf0;
}

.username-availability.available {
    color: #4CAF50;
}

.username-availability.error {
    color: #F44336;
}

.username-availability.current {
    color: #657786;
}

.location-suggestions,
.category-suggestions {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 5px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
}

.location-suggestion,
.category-suggestion {
    padding: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.location-suggestion:hover,
.category-suggestion:hover {
    background-color: #f0f0f0;
}

.edit-profile-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

.edit-profile-notification.success {
    background-color: #4CAF50;
}

.edit-profile-notification.error {
    background-color: #F44336;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .edit-profile-page {
        background: #000;
        color: white;
    }
    
    .edit-profile-header {
        border-bottom-color: #2f3336;
    }
    
    .edit-profile-back-btn:hover {
        background-color: #181818;
    }
    
    .form-group input,
    .form-group textarea {
        background-color: #000;
        border-color: #2f3336;
        color: white;
    }
    
    .location-suggestions,
    .category-suggestions {
        background: #000;
        border-color: #2f3336;
    }
    
    .location-suggestion:hover,
    .category-suggestion:hover {
        background-color: #181818;
    }
}
