.pagePerfil {
    display: flex;
    background: #121212;
    color: #ffffff;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    font-family: 'Karla', sans-serif;
}

.arrowBack {
    position: absolute;
    left: 20px;
    top: 20px;
    color: #ffffff;
    font-size: 2rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.arrowBack:hover {
    cursor: pointer;
    color: #ffffff;
    transform: scale(1.1);
}

.profileContainer {
    max-width: 800px;
    width: 100%;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px 40px;
    margin: 60px auto 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profileHeader {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avatarContainer {
    width: 100px;
    height: 100px;
    margin-right: 30px;
    border-radius: 50%;
    overflow: hidden;
    padding: 10px;
    border: 3px solid #404040;
    background: #2a2a2a;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatarContainer:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.userNames {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.userName {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.userEmail {
    color: #b0b0b0;
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
}

.profileInfo {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

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

.infoSection h2 {
    font-size: 22px;
    color: #e0e0e0;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.infoField {
    margin-bottom: 24px;
    font-family: 'Karla', sans-serif;
    transition: transform 0.2s ease;
}

.infoField label {
    display: block;
    margin-bottom: 10px;
    color: #b0b0b0;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.infoField input {
    width: 50%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    background-color: #2a2a2a;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.infoField input:focus {
    outline: none;
    border-color: #808080;
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #333333;
}

.infoField select {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    color: #ffffff;
    background-color: #2a2a2a;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
    padding-right: 40px;
}

.infoField select:focus {
    outline: none;
    border-color: #808080;
    box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #333333;
}

.infoField select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #222222;
}

.successMessage {
    background-color: rgba(43, 255, 0, 0.514);
    color: #e0e0e0;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    border-left: 4px solid #a0a0a0;
    animation: slideIn 0.5s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.saveButton {
    width: 100%;
    background: #404040;
    color: #ffffff;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Karla', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.saveButton:hover {
    background: #505050;
}

.deleteButton{
    width: 100%;
    background: #ff4d4d;
    color: #ffffff;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Karla', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.saveButton:active, .deleteButton:active {
    transform: scale(0.95);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.statsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.statItem {
    padding: 24px 20px;
    background: #2a2a2a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.statItem:hover {
    transform: translateY(-8px);
    background: #333333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.statValue {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.statLabel {
    color: #b0b0b0;
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .profileContainer {
        padding: 30px 20px;
        margin-top: 100px;
        width: 90%;
    }
    
    .profileHeader {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .avatarContainer {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .userNames {
        align-items: center;
    }
    
    .statsGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

