/* perfil.css */
:root {
    --primary-pink: #d955e0;
    --primary-pink-dark: #b83ebd;
    --secondary-pink: #e074e6;
    --radius-full: 9999px;
    --text-main: #4a4a4a;
    --text-muted: #888;
    --bg-light: #fdfdfd;
    --card-bg: #ffffff;
    --border-color: #eee;
    --input-bg-disabled: #f2f2f2;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    color: var(--text-main);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.perfil-content {
    flex: 1;
    padding: 40px 60px;
    background:
        radial-gradient(circle at 90% 14%, rgba(217, 85, 224, 0.05), transparent 36%),
        radial-gradient(circle at 8% 16%, rgba(255, 185, 220, 0.06), transparent 32%),
        linear-gradient(180deg, #fdfbfd 0%, #f9f8f9 100%);
    overflow-y: auto;
}

.perfil-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-title-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-back {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(217, 85, 224, 0.9);
    background: #fff;
    color: var(--primary-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(217, 85, 224, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(217, 85, 224, 0.25);
    color: var(--primary-pink);
}

.btn-back svg {
    width: 22px;
    height: 22px;
}

.perfil-header h1 {
    font-size: 2.2rem;
    font-family: "Didot", "Bodoni MT", serif;
    color: #444;
    margin: 0;
}

/* Profile Form Cards */
.profile-card-wrapper {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.015);
    transition: transform 0.3s ease;
}

.profile-card h2 {
    font-size: 1.35rem;
    color: var(--primary-pink);
    margin: 0 0 12px 0;
    font-weight: 700;
}

.card-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 25px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: var(--text-main);
    background-color: #ffffff;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 3px rgba(217, 85, 224, 0.15);
}

.form-control:disabled, 
.form-control[readonly] {
    background-color: var(--input-bg-disabled);
    color: #666;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Buttons */
.btn-profile-primary {
    width: 100%;
    background: var(--primary-pink);
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-profile-primary:hover {
    background: var(--primary-pink-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 85, 224, 0.25);
}

.btn-profile-primary:active {
    transform: translateY(0);
}

.btn-profile-outline {
    width: 100%;
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-profile-outline:hover {
    background: rgba(217, 85, 224, 0.05);
    border-color: var(--primary-pink-dark);
    color: var(--primary-pink-dark);
    transform: translateY(-1px);
}

.btn-profile-outline:active {
    transform: translateY(0);
}

/* Toast/Alert Simulation */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-alert {
    background: #232323;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease forwards;
    border-left: 4px solid var(--primary-pink);
}

.toast-alert.success {
    border-left-color: #2ecc71;
}

.toast-alert.error {
    border-left-color: #e53e3e;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form Row Grid Utilities */
.form-row {
    display: flex;
    gap: 15px;
}

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

.form-row .form-group.col-md-3 {
    flex: 0 0 calc(30% - 10px);
}

.form-row .form-group.col-md-4 {
    flex: 0 0 calc(40% - 10px);
}

.form-row .form-group.col-md-8 {
    flex: 0 0 calc(60% - 5px);
}

@media (max-width: 576px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .form-row .form-group {
        flex: 1 1 auto !important;
    }
}

/* Responsive adjust */
@media (max-width: 992px) {
    .perfil-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .perfil-header {
        margin-top: 40px;
        justify-content: center;
    }
    .perfil-content {
        padding: 20px 16px;
    }
    .profile-card {
        padding: 24px 20px;
    }
}
