/* Edit Profile Page Styles - Red, Black, Gray, White Theme */

.edit-profile-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    padding: 2rem 1rem;
    position: relative;
}

.edit-profile-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.edit-profile-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(220, 38, 38, 0.1);
    position: relative;
    z-index: 1;
}

.edit-profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e5e5e5;
}

.back-btn {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.edit-profile-header h1 {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
}

/* Photo Upload Section */
.photo-upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.03), rgba(0, 0, 0, 0.02));
    border-radius: 15px;
    border: 2px solid rgba(220, 38, 38, 0.1);
}

.current-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 4px solid #dc2626;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3), 0 0 0 8px rgba(220, 38, 38, 0.05);
}

.current-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.current-photo img.active {
    display: block;
}

.preview-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
}

.preview-initials.hidden {
    display: none;
}

.photo-upload-controls {
    display: flex;
    gap: 1rem;
}

.btn-upload,
.btn-remove {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-upload {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-remove {
    background: #f5f5f5;
    color: #737373;
    border: 2px solid #e5e5e5;
}

.btn-remove:hover {
    background: #e5e5e5;
    color: #525252;
}

/* Form Styles */
.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a1a;
}

.form-group input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group input:disabled {
    background: #f5f5f5;
    color: #737373;
    cursor: not-allowed;
    border-color: #e5e5e5;
}

.form-group small {
    font-size: 0.8rem;
    color: #737373;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 2px solid rgba(220, 38, 38, 0.3);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: white;
    color: #525252;
    border: 2px solid #e5e5e5;
}

.btn-cancel:hover {
    background: #f5f5f5;
    border-color: #d4d4d4;
}

.btn-save {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .edit-profile-container {
        padding: 1.5rem;
    }

    .edit-profile-header h1 {
        font-size: 1.5rem;
    }

    .current-photo {
        width: 100px;
        height: 100px;
    }

    .photo-upload-controls {
        flex-direction: column;
        width: 100%;
    }

    .btn-upload,
    .btn-remove {
        width: 100%;
    }

    .form-actions {
        flex-direction: column;
    }
}
