/* public/css/perfil.css */

/* O layout geral (sidebar, etc.) vem do /css/layout.css */
.main-content-wrapper { padding: 0; } /* Remove padding para o header ocupar toda a largura */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.header-greeting h1 { font-size: 24px; font-weight: 600; color: #2c3e50; margin: 0; }
.header-greeting p { font-size: 14px; color: #7f8c8d; margin: 0; }
.header-actions { display: flex; align-items: center; gap: 15px; }

/* Botões no Header */
.btn { padding: 8px 15px; border-radius: 6px; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; transition: all 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.btn-moodle { background-color: #0d6efd; color: #ffffff; }
.btn-outline { background-color: transparent; border: 1px solid #ced4da; color: #495057; }
.btn-outline:hover { background-color: #f8f9fa; }

.content-area {
    padding: 30px;
    background-color: #f4f7fc;
    min-height: calc(100vh - 71px); /* Altura da tela menos o header */
}

.profile-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.card-header h2 { font-size: 20px; font-weight: 600; margin: 0; }

.edit-button { padding: 10px 20px; font-size: 14px; }
.btn-primary { background-color: #0d6efd; color: white; }
.btn-success { background-color: #198754; color: white; }

.card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.profile-left {
    flex: 0 0 220px;
    text-align: center; /* Centraliza o conteúdo */
}

.profile-picture-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px auto;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f1f3f5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-change-picture {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.9);
    color: white;
    border: 2px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-change-picture:hover {
    background-color: rgba(13, 110, 253, 1);
    transform: scale(1.1);
}

.btn-save-picture {
    display: none; /* Inicialmente oculto */
    width: calc(100% - 20px);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    font-size: 14px;
    background-color: #198754;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
}

.contact-info h3, .basic-info h3, .social-media h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #34495e;
    text-align: left; /* Alinha os títulos à esquerda */
}

.profile-right {
    flex-grow: 1;
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: #7f8c8d; margin-bottom: 8px; text-align: left; }

/* Estilo para os campos de formulário normais (sem ícone) */
.profile-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    border: 1px solid #ced4da;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
textarea.profile-input {
    min-height: 150px;
    resize: vertical;
}
.profile-input:disabled {
    background-color: #f8f9fa;
    color: #343a40;
    cursor: default;
    border-color: #f8f9fa;
    -webkit-text-fill-color: #343a40;
    opacity: 1;
}
.profile-input:not(:disabled) {
    background-color: #ffffff;
    border-color: #ced4da;
}
.profile-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}


/* NOVOS ESTILOS PARA INPUT COM ÍCONE */
.input-with-icon {
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid #ced4da;
}

.input-with-icon i {
    padding: 0 15px;
    font-size: 16px;
    color: #7f8c8d;
    background-color: #e9ecef;
    align-self: stretch;
    display: flex;
    align-items: center;
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
    border-right: 1px solid #ced4da;
}

/* Ajusta o input que está dentro do container */
.input-with-icon .profile-input {
    border: none !important;
    flex-grow: 1;
    padding-left: 15px;
    box-shadow: none !important; /* Remove sombra interna no focus */
}
.input-with-icon .profile-input:disabled {
    background-color: #f8f9fa;
}

/* Efeitos de Hover e Focus no container */
.input-with-icon:has(.profile-input:not(:disabled):hover) {
    border-color: #adb5bd;
}
.input-with-icon:has(.profile-input:focus) {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.input-with-icon:has(.profile-input:focus) i {
    color: #0d6efd;
}
.input-with-icon:has(.profile-input:disabled) {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-row .form-group {
    flex: 1;
}