/* =========================================================
   CONTAINER PRINCIPAL
========================================================= */

.page-home .main-container,
.page-admin .main-container,
.page-materias .main-container,
.page-licoes .main-container,
.page-licao .main-container,
.page-alunas .main-container,
.page-aluno .main-container {
    max-width: 1180px;
    padding: 24px 24px 34px;
        background-image:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, .10) 5%,
            rgba(255, 255, 255, .50) 65%,
            rgba(255, 255, 255, 0) 95%)
			        ;
}

/* =========================================================
   HEADER COMPACTO / LOGO
========================================================= */

.project-header--compact {
    text-align: center;
    margin-bottom: 22px;
    padding: 4px 8px 0;
}

.project-header--compact .project-logo-wrap {
    margin-bottom: 0;
}

.project-header--compact .logo {
    width: min(56%, 520px);
}

.page-admin .project-header--compact .logo {
    width: min(46%, 420px);
}

.page-home .project-header--compact .logo,
.page-alunas .project-header--compact .logo,
.page-aluno .project-header--compact .logo {
    width: min(60%, 750px);
}

/* =========================================================
   SPLASH PRINCIPAL — HOME
========================================================= */

.home-splash-page {
    display: grid;
    gap: 24px;
}

.home-splash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 380px);
    gap: 22px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(239, 248, 247, 0.96) 0%, rgba(225, 241, 248, 0.94) 100%);
    border: 1px solid rgba(123, 189, 196, 0.48);
    box-shadow: var(--sombra-leve);
}

.home-splash-hero__content,
.home-splash-hero__side {
    display: grid;
    gap: 16px;
}

.home-splash-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(123, 189, 196, 0.4);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-splash-title {
    margin: 0;
    font-family: var(--font-kids);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    color: #1b4b2f;
}

.home-splash-lead {
    margin: 0;
    color: #44606a;
    font-size: 1.04rem;
    line-height: 1.75;
}

.home-splash-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-student-selector {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(123, 189, 196, 0.44);
    box-shadow: var(--sombra-fina);
}

.home-student-selector label {
    font-weight: 700;
    color: #365360;
}

.home-student-selector small {
    color: #5f7280;
    line-height: 1.5;
}

.home-splash-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.home-splash-stat {
    padding: 16px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(123, 189, 196, 0.42);
    box-shadow: var(--sombra-fina);
    text-align: center;
}

.home-splash-stat strong {
    display: block;
    color: #0f623d;
    font-size: 2rem;
    line-height: 1;
}

.home-splash-stat span {
    display: block;
    margin-top: 8px;
    color: #5f7280;
    font-weight: 700;
    line-height: 1.4;
}

.home-student-section {
    display: grid;
    gap: 16px;
}

.home-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.home-section-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-kids);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1c4b27;
}

.home-section-subtitle {
    margin: 6px 0 0;
    color: #5f7280;
}

.home-student-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-student-card {
    display: grid;
    gap: 16px;
    padding: 20px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(171, 202, 208, 0.88);
    box-shadow: var(--sombra-leve);
}

.home-student-card__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.home-student-card__head h3 {
    margin: 0;
    font-size: 1.45rem;
    color: #214d1c;
}

.home-student-card__head p {
    margin: 6px 0 0;
    color: #61758a;
}

.home-student-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(188, 226, 231, 0.36);
    color: #567086;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.home-student-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-student-metric {
    padding: 14px 12px;
    border-radius: 18px;
    background: rgba(188, 226, 231, 0.18);
    border: 1px solid rgba(123, 189, 196, 0.3);
}

.home-student-metric strong {
    display: block;
    color: #0f623d;
    font-size: 1.6rem;
    line-height: 1;
}

.home-student-metric span {
    display: block;
    margin-top: 8px;
    color: #61758a;
    font-weight: 700;
    line-height: 1.4;
}

.home-student-card__latest {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 252, 255, 0.88);
    border: 1px dashed rgba(123, 189, 196, 0.44);
}

.home-student-card__latest strong {
    color: #1c4b27;
}

.home-student-card__latest span,
.home-student-card__latest em {
    color: #5f7280;
}

.home-student-card__latest em {
    font-style: normal;
    font-weight: 700;
}

.home-student-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================================================
   ÁREA DO ALUNO
========================================================= */

.student-shell {
    display: grid;
    gap: 24px;
}

.student-hero {
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid rgba(214, 99, 210, 0.54);
    background: rgba(236, 193, 229, .05);
    box-shadow: -2px 2px 3px rgba(135, 79, 149, 0.10);
}

.student-hero__top,
.student-hero__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
}

.student-hero__top {
    background: rgba(236, 193, 229, 0.28);
}

.student-hero__identity {
    display: grid;
    gap: 2px;
}

.student-hero__identity strong {
    font-size: 1.4rem;
    color: #5b1d61;
}

.student-hero__identity small {
    color: #6b6880;
    font-weight: 700;
}

.student-hero__kicker {
    color: #8a6790;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.student-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.student-hero__center {
    display: grid;
    gap: 8px;
    padding: 20px 22px 16px;
    text-align: center;
}

.student-hero__title {
    margin: 0;
    font-family: var(--font-kids);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #5b1d61;
}

.student-hero__subtitle {
    margin: 0;
    color: #6b6880;
    line-height: 1.7;
}

.student-hero__bottom {
    justify-content: center;
    background: rgba(236, 193, 229, 0.42);
}

.student-switcher {
    display: grid;
    gap: 8px;
    width: min(100%, 360px);
}

.student-switcher label {
    text-align: left;
    color: #6b6880;
    font-weight: 700;
}

.student-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.student-summary-card {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(214, 99, 210, 0.28);
    box-shadow: 0 10px 20px rgba(135, 79, 149, 0.08);
}

.student-summary-card strong {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    color: #6c1773;
}

.student-summary-card span {
    display: block;
    margin-top: 8px;
    color: #6b6880;
    font-weight: 700;
}

.student-section-head,
.student-table-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
	margin-bottom:15px;
}

.student-section-title {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 2rem);
    color: #4e4b4f;
}

.student-section-note {
    color: #6b6880;
    font-weight: 700;
}

.student-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.student-lesson-card {
    position: relative;
    overflow: visible;
    border-radius: 24px;
    background: rgba(255, 255, 255, .86);
    border: 2px solid var(--card-border, #d8c79c);
    box-shadow: -2px 2px 3px rgba(82, 90, 104, 0.10);
}

.student-lesson-card__sticker {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 46px;
    height: 46px;
}

.student-lesson-card__sticker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.student-lesson-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 60px;
    gap: 12px;
    padding: 20px 18px 16px;
    background: var(--card-top, #f7e3f4);
    border-radius: 22px 22px 0 0;
}

.student-lesson-card__title {
    margin: 0 0 0 15px;
    font-size: clamp(1.25rem, 1.6vw, 1.7rem);
    line-height: 1.28;
    color: #173f20;
	font-weight:600;
}

.student-lesson-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    color: #173f20;
    font-size: 1rem;
}

.student-lesson-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    color: #47604e;
    font-weight: 700;
}

.student-lesson-card__cover {
    height: 50px;
	widht: 50px;
    border-radius: 20px;
    overflow: hidden;
}

.student-lesson-card__cover img {
    height: 50px;
	widht: 50px;
    object-fit: cover;
}

.student-lesson-card__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px;
}

.student-lesson-card__actions .btn {
    min-width: 104px;
}

.student-table-panel {
    padding: 22px 20px;
    border-radius: 24px;
    background: linear-gradient(
        180deg,
        rgba(235, 250, 255, .24) 0%,
        rgba(209, 240, 255, .68) 100%
    );
    border: 2px solid rgba(114, 199, 191, 0.64);
    box-shadow: -2px 2px 3px rgba(79, 135, 144, 0.15);
}

.student-sort-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.student-sort-link {
    color: #4f83b2;
    font-weight: 700;
    text-decoration: none;
}

.student-sort-link.is-active {
    color: #2e5e8f;
    text-decoration: underline;
}

.student-list-shell {
    display: grid;
    gap: 0;
    border-radius: 9px;
    overflow: hidden;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(149, 186, 161, 0.52);
}

.student-list-head,
.student-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) 160px 130px 200px;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
}

.student-list-head {
    background: rgba(209, 231, 235, .72);
    color: #5b6674;
    font-weight: 700;
}

.student-list-row {
    border-top: 1px solid rgba(149, 186, 161, 0.24);
}

.student-list-row:nth-child(even) {
    background: rgba(237, 251, 255, .92);
}

.student-list-row strong {
    display: block;
    color: #137687;
    font-size: 1.15rem;
}

.student-list-row span {
    display: block;
    margin-top: 6px;
    color: #496251;
}

.student-list-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.student-list-meta em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(188, 226, 231, 0.36);
    color: #567086;
    font-style: normal;
    font-weight: 700;
}

.student-list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.student-empty {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    border: 1px dashed rgba(114, 199, 191, 0.58);
    color: #61758a;
}

.student-lesson-card.is-palette-1 {
    --card-top: linear-gradient(180deg, rgba(255, 252, 254, .5) 25%, rgba(255, 237, 248, .8) 100%);
    --card-border: #e6b9df;
}

.student-lesson-card.is-palette-2 {
    --card-top: linear-gradient(180deg, rgba(242, 255, 252, .5) 25%, rgba(225, 252, 250, .8) 100%);
    --card-border: #9ed29a;
}

.student-lesson-card.is-palette-3 {
    --card-top: linear-gradient(180deg, rgba(255, 255, 232, .5) 25%, rgba(255, 255, 209, .8) 100%);
    --card-border: #F5F564;
}

.student-lesson-card.is-palette-4 {
    --card-top: linear-gradient(180deg, rgba(232, 253, 255, .4) 25%, rgba(214, 253, 255, .8) 100%);
    --card-border: #7AF7FF;
}

.disabled-btn {
    opacity: .62;
    cursor: default;
    pointer-events: none;
}

/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1080px) {
    .home-splash-hero,
    .home-student-grid,
    .student-cards-grid {
        grid-template-columns: 1fr;
    }

    .student-summary,
    .student-list-head,
    .student-list-row {
        grid-template-columns: 1fr;
    }

    .student-list-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 800px) {
    .page-home .main-container,
    .page-admin .main-container,
    .page-alunas .main-container,
    .page-aluno .main-container {
        padding: 18px 16px 24px;
    }

    .project-header--compact {
        margin-bottom: 18px;
    }

    .project-header--compact .logo,
    .page-admin .project-header--compact .logo,
    .page-home .project-header--compact .logo,
    .page-alunas .project-header--compact .logo,
    .page-aluno .project-header--compact .logo {
        width: min(82%, 420px);
    }
}

@media (max-width: 760px) {
    .home-splash-hero,
    .home-student-card,
    .home-student-selector {
        padding: 18px 16px;
    }

    .home-splash-stats,
    .home-student-card__stats,
    .student-summary {
        grid-template-columns: 1fr;
    }

    .home-student-card__head,
    .home-splash-actions,
    .home-student-card__actions,
    .student-hero__top,
    .student-hero__actions,
    .student-table-panel__head,
    .student-section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .home-student-chip {
        width: 100%;
    }

    .student-hero__center,
    .student-section-head,
    .student-table-panel__head {
        text-align: center;
    }

    .student-lesson-card__top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .student-lesson-card__actions,
    .student-sort-links {
        justify-content: center;
    }

    .student-switcher {
        width: 100%;
    }

    .student-switcher label {
        text-align: center;
    }
}