/* Área do Aluno — Match IA (Opção B: Sidebar Fixa EdTech • Apple Glassmorphism) */

.student-hub-shell {
    max-width: 1320px;
    margin: 1.4rem auto 2.5rem;
    padding: 0 1.25rem;
}

.hub-frame {
    display: flex;
    min-height: 700px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Sidebar Fixa à Esquerda */
.hub-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f5f5f7;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.25rem;
}

.hub-sidebar-top {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hub-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hub-brand-id {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.hub-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 14px rgba(0, 113, 227, 0.25);
}

.hub-brand-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: #1d1d1f;
    line-height: 1.15;
}

.hub-brand-sub {
    font-size: 0.74rem;
    color: #6e6e73;
    font-weight: 500;
}

.hub-public-btn {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #1d1d1f;
    border-radius: 10px;
    padding: 0.42rem 0.68rem;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hub-public-btn:hover {
    border-color: #0071e3;
    color: #0071e3;
}

/* Card Meu Objetivo 2027 */
.hub-goal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.hub-goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #6e6e73;
    font-weight: 600;
}

.hub-goal-edit-btn {
    border: none;
    background: transparent;
    color: #0071e3;
    font-size: 0.74rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.hub-goal-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0.35rem 0 0.55rem;
}

.hub-progress-track {
    width: 100%;
    height: 7px;
    background: #e5e5ea;
    border-radius: 999px;
    overflow: hidden;
}

.hub-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0071e3, #34c759);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.hub-goal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.74rem;
    color: #6e6e73;
    margin-top: 0.45rem;
}

.hub-goal-meta strong {
    color: #1d1d1f;
}

/* Menu de Navegação Lateral */
.hub-nav-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868b;
    padding: 0 0.45rem;
    margin-bottom: 0.35rem;
}

.hub-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hub-nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #424245;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: left;
}

.hub-nav-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.hub-nav-btn.active {
    background: #0071e3;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.25);
}

.hub-nav-count {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.07);
    color: #1d1d1f;
}

.hub-nav-btn.active .hub-nav-count {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.hub-shortcuts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.hub-shortcut-btn {
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.78rem;
    border-radius: 11px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: #1d1d1f;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.hub-shortcut-btn:hover {
    border-color: #0071e3;
    transform: translateY(-1px);
}

/* Rodapé da Sidebar */
.hub-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.hub-plan-box {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}

.hub-plan-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0071e3;
}

.hub-plan-desc {
    font-size: 0.75rem;
    color: #6e6e73;
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

.hub-plan-upgrade-btn {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.52rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.hub-user-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hub-user-mini-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.hub-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #0071e3;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-user-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1d1d1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-user-handle {
    font-size: 0.72rem;
    color: #6e6e73;
}

.hub-logout-mini {
    border: none;
    background: transparent;
    color: #6e6e73;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
}

.hub-logout-mini:hover {
    color: #d93025;
}

/* Área Principal à Direita */
.hub-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fbfbfd;
}

.hub-topbar {
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hub-topbar-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1d1d1f;
}

.hub-topbar-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.hub-pill {
    padding: 0.34rem 0.75rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: #1d1d1f;
}

.hub-pill-accent {
    background: rgba(0, 113, 227, 0.1);
    border-color: rgba(0, 113, 227, 0.22);
    color: #0071e3;
}

.hub-content {
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex: 1;
}

.hub-free-banner {
    background: #ffffff;
    border: 1.5px solid #0071e3;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.hub-free-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0071e3;
    letter-spacing: 0.03em;
}

.hub-free-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-top: 0.2rem;
}

.hub-free-btn {
    border: none;
    border-radius: 12px;
    padding: 0.62rem 1.05rem;
    background: #0071e3;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

/* Cards e Grids Internos */
.hub-panel {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.hub-continue-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
}

.hub-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-continue-title {
    font-size: 1.22rem;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0.28rem 0;
}

.hub-continue-sub {
    font-size: 0.84rem;
    color: #6e6e73;
    margin: 0;
    max-width: 640px;
}

.hub-btn-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.hub-btn-primary {
    border: none;
    border-radius: 12px;
    padding: 0.68rem 1.1rem;
    background: #0071e3;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
}

.hub-btn-primary:hover {
    background: #005bb5;
}

.hub-btn-secondary {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.68rem 1.05rem;
    background: #f5f5f7;
    color: #1d1d1f;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.hub-btn-secondary:hover {
    border-color: #0071e3;
}

.hub-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.hub-kpi-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 1rem 1.05rem;
}

.hub-kpi-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #6e6e73;
}

.hub-kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #1d1d1f;
    margin-top: 0.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.hub-kpi-delta {
    font-size: 0.76rem;
    font-weight: 700;
    color: #059669;
}

.hub-kpi-hint {
    font-size: 0.74rem;
    color: #86868b;
    margin-top: 0.2rem;
}

.hub-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hub-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
}

.hub-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.hub-card-title {
    font-size: 0.94rem;
    font-weight: 800;
    color: #1d1d1f;
    margin: 0;
}

.hub-link-btn {
    border: none;
    background: transparent;
    color: #0071e3;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.hub-list-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hub-mini-row {
    background: #f5f5f7;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hub-mini-row-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d1d1f;
}

.hub-mini-row-sub {
    font-size: 0.74rem;
    color: #6e6e73;
    margin-top: 0.1rem;
}

.hub-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hub-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #1d1d1f;
}

/* Grid de Tutores na Aba 2 */
.hub-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hub-filter-pills {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hub-filter-pill {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #424245;
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.hub-filter-pill.active {
    background: #0071e3;
    border-color: #0071e3;
    color: #ffffff;
}

.hub-search-input {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    padding: 0.48rem 0.85rem;
    font-size: 0.82rem;
    background: #ffffff;
    color: #1d1d1f;
    min-width: 220px;
}

.hub-tutors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.hub-tutor-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.8rem;
}

.hub-tutor-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.hub-tutor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.hub-tutor-cat {
    font-size: 0.68rem;
    font-weight: 800;
    color: #0071e3;
    text-transform: uppercase;
}

.hub-tutor-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.25;
}

.hub-tutor-actions {
    display: flex;
    gap: 0.4rem;
}

.hub-tutor-actions button {
    border-radius: 9px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.42rem 0.6rem;
    cursor: pointer;
}

.hub-act-chat {
    flex: 1;
    border: none;
    background: #0071e3;
    color: #ffffff;
}

.hub-act-sec {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #f5f5f7;
    color: #1d1d1f;
}

/* Tabelas da Biblioteca e Simulados */
.hub-table-wrap {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow-x: auto;
}

.hub-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.82rem;
}

.hub-table th {
    background: #f5f5f7;
    color: #6e6e73;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hub-table td {
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: #1d1d1f;
}

.hub-table tr:last-child td {
    border-bottom: none;
}

.hub-empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: #6e6e73;
    font-size: 0.84rem;
}

/* Botão flutuante para voltar do Site Aberto para a Área do Aluno */
.hub-return-pill {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 1200;
    border: none;
    border-radius: 999px;
    padding: 0.72rem 1.2rem;
    background: linear-gradient(135deg, #0071e3, #005bb5);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0, 113, 227, 0.35);
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.45rem;
}

@media (max-width: 1080px) {
    .hub-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hub-tutors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .hub-frame {
        flex-direction: column;
    }
    .hub-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    .hub-nav-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .hub-nav-btn {
        width: auto;
        flex: 1 1 auto;
    }
    .hub-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .hub-kpi-grid,
    .hub-tutors-grid {
        grid-template-columns: 1fr;
    }
    .student-hub-shell {
        padding: 0 0.65rem;
    }
}

