.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.profile-title h1 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0;
}

.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}


.profile-sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 4px solid #f8fafc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #e2e8f0;
}

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

.profile-sidebar-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
}

.user-role {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}


.btn-change-photo {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-change-photo:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.divider {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 1.5rem 0;
}

.text-xs { font-size: 0.8rem; }
.text-muted { color: #94a3b8; }



.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}


.section-header .section-title {
    margin: 0;
    padding: 0;
    border-bottom: none;
}


.section-header .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}


.profile-content-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.section-title {
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f1f5f9;
}


.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.data-item.full-width { grid-column: 1 / -1; }

.data-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.data-value {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 500;
}


.modern-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.modern-form .form-group {
    display: flex;
    flex-direction: column;
}

.modern-form .full-width { width: 100%; margin-bottom: 1.2rem; }
.modern-form .flex-1 { flex: 1; }
.modern-form .flex-2 { flex: 2; }

.modern-form label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}


.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-success { background: #10b981; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #cbd5e1; color: #475569; }

@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
    .data-grid, .modern-form .form-row { grid-template-columns: 1fr; flex-direction: column; gap: 1rem; }
}

/* ══════════════════════════════════════════════
   DARK MODE — perfil-aluno
   ══════════════════════════════════════════════ */

/* ── Cabeçalho do perfil ── */
[data-theme="dark"] .profile-header {
    border-bottom-color: #1e3550;
}

[data-theme="dark"] .profile-title h1 {
    color: #e2e8f0;
}

/* ── Card lateral (foto + nome) ── */
[data-theme="dark"] .profile-sidebar-card {
    background: #111d2e;
    border-color: #1e3550;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .avatar-wrapper {
    border-color: #19273a;
    background: #1e3550;
}

[data-theme="dark"] .profile-sidebar-card h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .user-role {
    color: #94a3b8;
}

/* ── Botão trocar foto ── */
[data-theme="dark"] .btn-change-photo {
    background: transparent;
    border-color: #1e3550;
    color: #94a3b8;
}

[data-theme="dark"] .btn-change-photo:hover {
    background: #19273a;
    border-color: #2d4060;
    color: #e2e8f0;
}

/* ── Divider ── */
[data-theme="dark"] .divider {
    background: #1e3550;
}

/* ── Texto auxiliar ── */
[data-theme="dark"] .text-muted {
    color: #64748b;
}

/* ── Card principal de conteúdo ── */
[data-theme="dark"] .profile-content-card {
    background: #111d2e;
    border-color: #1e3550;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* ── Cabeçalho de seção ── */
[data-theme="dark"] .section-header {
    border-bottom-color: #1e3550;
}

[data-theme="dark"] .section-title {
    color: #e2e8f0;
    border-bottom-color: #1e3550;
}

/* ── Grade de dados (view) ── */
[data-theme="dark"] .data-label {
    color: #64748b;
}

[data-theme="dark"] .data-value {
    color: #e2e8f0;
}

/* ── Formulário de edição ── */
[data-theme="dark"] .modern-form label {
    color: #94a3b8;
}

[data-theme="dark"] .form-control {
    background: #0d1828;
    border-color: #1e3550;
    color: #e2e8f0;
}

[data-theme="dark"] .form-control:focus {
    background: #19273a;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .form-control::placeholder {
    color: #475569;
}

/* ── Botões ── */
[data-theme="dark"] .btn-outline {
    background: transparent;
    border-color: #1e3550;
    color: #94a3b8;
}

[data-theme="dark"] .btn-outline:hover {
    background: #19273a;
    border-color: #2d4060;
    color: #e2e8f0;
}

.testimonial-card {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.testimonial-header h4 {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.testimonial-header h4 i {
    color: #2563eb;
}

.testimonial-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.testimonial-textarea {
    width: 100%;
    resize: vertical;
    min-height: 110px;
    padding: 0.9rem 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.5;
    outline: none;
    transition: all 0.2s;
}

.testimonial-textarea:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.testimonial-footer {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

#testimonialCounter {
    font-size: 0.8rem;
    color: #94a3b8;
}

.testimonial-thanks {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .testimonial-card {
    border-top-color: #1e3550;
}

[data-theme="dark"] .testimonial-header h4 {
    color: #e2e8f0;
}

[data-theme="dark"] .testimonial-header p,
[data-theme="dark"] #testimonialCounter {
    color: #94a3b8;
}

[data-theme="dark"] .testimonial-textarea {
    background: #0d1828;
    border-color: #1e3550;
    color: #e2e8f0;
}

[data-theme="dark"] .testimonial-textarea:focus {
    background: #19273a;
    border-color: #2563eb;
}

[data-theme="dark"] .testimonial-thanks {
    background: rgba(22, 101, 52, 0.25);
    color: #86efac;
}