/* User Profile Page Styles - Matching App Design */

/* Back Button */
.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    margin-right: 12px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #f8f9fa;
}

/* Profile Overview Card */
.profile-overview {
    text-align: center;
    padding: 24px 20px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.profile-overview:hover .avatar-img {
    border-color: #e91e63;
}

.avatar-edit-btn {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    font-size: 12px;
}

.avatar-edit-btn:hover {
    background-color: #c2185b;
    transform: scale(1.1);
}

.user-name {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0 0 4px 0;
}

.user-email {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 8px 0;
}

.member-since {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #6c757d;
    font-size: 12px;
}

.member-since i {
    color: #e91e63;
    font-size: 12px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.edit-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background-color 0.3s ease;
}

.edit-btn:hover {
    background-color: #c2185b;
}

/* Form Styles */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

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

.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: #f8f9fa;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e91e63;
    background-color: #fff;
}

.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.form-group input:not(:disabled),
.form-group select:not(:disabled),
.form-group textarea:not(:disabled) {
    background-color: #fff;
    color: #000;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

/* Button Styles */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background-color: #e91e63;
    color: white;
}

.btn-primary:hover {
    background-color: #c2185b;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}


/* Account Actions */
.action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
}

.action-item:last-child {
    border-bottom: none;
}

.action-item:hover {
    background-color: #f8f9fa;
    margin: 0 -20px;
    padding: 12px 20px;
    border-radius: 6px;
}

.action-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-info i {
    color: #e91e63;
    font-size: 14px;
    width: 16px;
}

.action-info span {
    font-size: 14px;
    color: #000;
}

.logout-item .action-info i {
    color: #dc3545;
}

.logout-item .action-info span {
    color: #dc3545;
}

.action-item i.fa-chevron-right {
    color: #6c757d;
    font-size: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f8f9fa;
}

.password-form {
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}