/* Profile Page Styles */
.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: -2px 0 20px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 450px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #c0596A 0%, #a04858 100%);
    color: white;
}

.profile-header h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    flex: 1;
    color: white;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.btn-back:hover {
    opacity: 0.8;
}

.profile-panel-content {
    padding: 30px 20px;
}

.profile-image-container {
    text-align: center;
    margin-bottom: 25px;
}

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

.profile-panel-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c0596A;
}

.change-photo-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: #c0596A;
    border-radius: 50%;
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-photo-btn:hover {
    background: #a04858;
    transform: scale(1.1);
}

.change-photo-btn svg {
    stroke: white;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.profile-field input:focus,
.profile-field textarea:focus {
    outline: none;
    border-color: #c0596A;
    box-shadow: 0 0 0 3px rgba(192,89,106,0.1);
}

.profile-field input:read-only {
    background: #f5f5f5;
    cursor: not-allowed;
}

.profile-field textarea {
    resize: vertical;
    min-height: 70px;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.btn-save,
.btn-cancel,
.btn-logout {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-save {
    background: #c0596A;
    color: white;
}

.btn-save:hover {
    background: #a04858;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192,89,106,0.3);
}

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

.btn-cancel:hover {
    border-color: #999;
    color: #333;
}

.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

@media (max-width: 768px) {
    .profile-card {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-panel-content {
        padding: 20px 15px;
    }

    .profile-field input,
    .profile-field textarea {
        font-size: 16px;
    }

    .btn-save,
    .btn-cancel,
    .btn-logout {
        padding: 10px;
    }
}

/* Profile Modal Popup */
#profileModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#profileModal.pm-open {
    display: flex;
}

.pm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.pm-dialog {
    position: relative;
    z-index: 10000;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    margin: 0 auto;
}
