/* Profile Page Styles */

/* Profile Sections */
.profile-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.section-icon {
    font-size: 28px;
    color: var(--md-sys-color-primary);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Profile Info Grid */
.profile-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: #333;
    padding: 12px;
    background: #F8F9FA;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    flex: 1;
}

/* Info Value with Edit Button */
.info-value-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #E0E0E0;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn:hover {
    background: var(--md-sys-color-primary);
    color: white;
    border-color: var(--md-sys-color-primary);
}

.edit-btn .material-icons-round {
    font-size: 18px;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Danger Zone */
.danger-zone {
    border: 2px solid rgba(244, 67, 54, 0.2);
    background: rgba(244, 67, 54, 0.02);
}

.warning-text {
    color: #666;
    font-size: 14px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(244, 67, 54, 0.05);
    border-radius: 8px;
}

/* Pending Deletion Notice */
.pending-deletion {
    border: 2px solid rgba(255, 152, 0, 0.3);
    background: rgba(255, 152, 0, 0.05);
}

.pending-deletion p {
    font-size: 16px;
    color: #333;
    margin-bottom: 16px;
}

.pending-deletion strong {
    color: #FF9800;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

.modal-content.modal-small {
    max-width: 400px;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #E0E0E0;
    display: flex;
    justify-content: center;
}

/* Form Elements */
.form-field {
    position: relative;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--md-sys-color-primary);
}

.form-label {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 0 4px;
    color: #666;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--md-sys-color-primary);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-filled {
    background: var(--md-sys-color-primary);
    color: white;
}

.btn-filled:hover {
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.3);
    transform: translateY(-1px);
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Utilities */
.text-error {
    color: var(--md-sys-color-error);
    font-weight: 500;
}

.mt-3 {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-info {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions button {
        width: 100%;
    }
}