/* ── App loading screen ─────────────────────────────────────── */

#app-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

#app-loading-screen.app-loading-fade-out {
    opacity: 0;
}

.app-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.app-loading-logo {
    font-size: 56px;
    color: #3b82f6;
    animation: appLogoPulse 2s ease-in-out infinite;
}

.app-loading-brand {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    font-family: system-ui, sans-serif;
    letter-spacing: 1px;
}

.app-loading-text {
    font-size: 13px;
    color: #94a3b8;
    font-family: system-ui, sans-serif;
    margin-top: 4px;
}

.app-loading-spinner {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.app-loading-spinner span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3b82f6;
    animation: appDotBounce 1.2s ease-in-out infinite;
}

.app-loading-spinner span:nth-child(2) { animation-delay: 0.2s; }
.app-loading-spinner span:nth-child(3) { animation-delay: 0.4s; }

@keyframes appLogoPulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.1); opacity: 0.8; }
}

@keyframes appDotBounce {
    0%, 80%, 100% { transform: translateY(0);   opacity: 0.4; }
    40%            { transform: translateY(-10px); opacity: 1; }
}

/* Blazor default validation styles */
.validation-message {
    color: red;
}

.input-validation-error {
    border-color: red;
}

.validation-summary-errors {
    color: red;
}

.my-reconnect-modal > div {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-family: system-ui;
    text-align: center;
}

.rejected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.failed {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.show {
    flex-direction: column !important;
    align-items: center;
}

@keyframes wifiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.25; transform: scale(0.92); }
}

.reconnect-icon {
    font-size: 82px;
    margin-bottom: 14px;
}

.reconnect-icon-pulse {
    color: white;
    animation: wifiPulse 1.1s ease-in-out infinite;
}

.reconnect-icon-error {
    color: #ef4444;
}

/* Estado oculto */
.components-reconnect-hide > div {
    display: none;
}

/* Tentando reconectar */
.components-reconnect-show > div {
    display: none;
}

.components-reconnect-show > .show {
    display: flex;
}

/* Falhou */
.components-reconnect-failed > div {
    display: none;
}

.components-reconnect-failed > .failed {
    display: flex;
}

/* Rejeitado (estado perdido) */
.components-reconnect-rejected > div {
    display: none;
}

.components-reconnect-rejected > .rejected {
    display: flex;
}

#manual-reload-btn {
    background: gray;
    border: none;
    padding:4px;
    margin: 0px;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

/* Para mobile (xs e sm), inverter a ordem */
@media (max-width: 960px) { /* Breakpoint md do MudBlazor � 960px */
    .mission-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    /* Opcional: adicionar espa�amento entre os itens */
    .mission-text {
        margin-bottom: 2rem;
    }
}

/* Estilo do menu mobile */
@media (max-width: 991px) {
    .menu-item {
        border: 1px solid #ddd;
        margin:0px;
        padding: 10px;
        border-radius: 0px;
        background-color: #fff;
    }

    .nav-shadow {
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        padding: 10px;
        border-radius: 8px;
        background-color: #fff;
    }
}

.mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #eeeeee !important;
}

.mud-nav-link.active {
    background-color: rgba(255, 255, 255, 0.2)!important;
    color: #eeeeee !important;
}

.hover-paper {
    transition: all 0.18s ease;
}

.hover-paper:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0,0,0,.18);
}

.hover-paper:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.resumo-cards:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.paper-aulas-hoje {
    transition: all 0.18s ease;
}

.paper-aulas-hoje:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.paper-pendencias-atividades {
    transition: all 0.18s ease;
}

.paper-pendencias-atividades:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.graficos-paper-hover {
    transition: all 0.18s ease;
}

.graficos-paper-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.tabelas-paper-hover{
    transition: all 0.18s ease;
}

.tabelas-paper-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

.pendencias-atividades-hover-paper{
    transition: all 0.18s ease;
}

.pendencias-atividades-hover-paper:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}


.ver-todas-turmas {
    transition: all 0.18s ease;
}

.ver-todas-turmas:hover {
    transform: translateY(-1px);
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.turmas-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.turmas-scroll::-webkit-scrollbar {
    display: none;
}

.turmas-scroll {
    scrollbar-width: none;
}

.turma-card {
    min-width: 260px;
    flex: 0 0 auto;
    position: relative;
}

.minha-turma:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.minha-turma:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

/* hover premium */
.turma-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* efeito ao clicar */
.turma-card:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

/* link inferior full width */
.detalhes-link {
    display: block;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #E5E7EB;
    text-decoration: none;
}


/* Responsiveness inside modal on mobile */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 8px;
    }

    .sig-preview-card {
        min-height: 80px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Home page — animations & landing styles
   ══════════════════════════════════════════════════════════════ */

/* ── Keyframes ────────────────────────────────────────────────── */

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(36px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}

@keyframes growBar {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes shimmer {
    0%   { left: -80%; }
    100% { left: 130%; }
}

/* ── Hero ─────────────────────────────────────────────────────── */

.hero-text-col {
    animation: fadeInLeft 0.75s cubic-bezier(.22,.68,0,1.1) both;
}

.hero-mockup-col {
    animation: fadeInRight 0.75s 0.18s cubic-bezier(.22,.68,0,1.1) both;
}

/* ── macOS window mockup ─────────────────────────────────────── */

.macos-window {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    animation: floatY 5s ease-in-out infinite;
    transition: box-shadow 0.3s ease;
}

.macos-window:hover {
    box-shadow: 0 40px 80px rgba(37,99,235,0.2), 0 0 0 1px rgba(37,99,235,0.12);
}

.macos-bar {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tl-wrap { display: flex; gap: 6px; align-items: center; }

.tl {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.macos-window:hover .tl { transform: scale(1.2); filter: brightness(1.15); }

.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.macos-bar-title {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.macos-body {
    background: #f1f5f9;
    padding: 12px;
}

.db-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.db-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.db-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.12);
}

.db-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-card-val {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.db-card-lbl {
    font-size: 9px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.db-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.db-chart-wrap, .db-recent-wrap {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.db-section-title {
    font-size: 9px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.db-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 64px;
}

.db-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 3px;
}

.db-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    min-height: 4px;
    transform-origin: bottom;
    animation: growBar 0.8s cubic-bezier(.34,1.56,.64,1) both;
}

.db-bar-wrap:nth-child(1) .db-bar { animation-delay: 0.7s; }
.db-bar-wrap:nth-child(2) .db-bar { animation-delay: 0.85s; }
.db-bar-wrap:nth-child(3) .db-bar { animation-delay: 1.0s; }
.db-bar-wrap:nth-child(4) .db-bar { animation-delay: 1.15s; }
.db-bar-wrap:nth-child(5) .db-bar { animation-delay: 1.3s; }

.db-bar-wrap span { font-size: 8px; color: #94a3b8; }

.db-recent-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.db-recent-item:hover { background: #f8fafc; border-radius: 4px; padding-left: 4px; }
.db-recent-item:last-child { border-bottom: none; }

.db-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.db-recent-text { font-size: 10px; color: #334155; flex: 1; }
.db-recent-time { font-size: 9px; color: #94a3b8; }

/* ── Scroll fade-up ──────────────────────────────────────────── */

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-d1 { transition-delay: 0.08s; }
.anim-d2 { transition-delay: 0.18s; }
.anim-d3 { transition-delay: 0.28s; }
.anim-d4 { transition-delay: 0.38s; }

/* ── Hover: area cards ───────────────────────────────────────── */

.hover-scale {
    transition: transform 0.3s cubic-bezier(.22,.68,0,1.2),
                box-shadow 0.3s ease !important;
}

.hover-scale:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 24px 48px rgba(37,99,235,0.18) !important;
}

/* ── Hover: feature cards ────────────────────────────────────── */

.feat-card {
    border: 1px solid transparent;
    transition: transform 0.25s ease,
                box-shadow 0.25s ease,
                border-color 0.25s ease !important;
}

.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(37,99,235,0.13) !important;
    border-color: rgba(37,99,235,0.18) !important;
}

.feat-card .feat-icon {
    transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}

.feat-card:hover .feat-icon {
    transform: scale(1.2) rotate(-4deg);
}

/* ── Button shimmer ──────────────────────────────────────────── */

.mud-button-filled-primary {
    position: relative;
    overflow: hidden;
}

.mud-button-filled-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}

.mud-button-filled-primary:hover::after {
    animation: shimmer 0.55s ease forwards;
}

/* ── Rounded helpers ─────────────────────────────────────────── */

.rounded-pill { border-radius: 60px !important; }
.rounded-xl   { border-radius: 32px !important; }
.rounded-lg   { border-radius: 24px !important; }

/* ── Footer links ────────────────────────────────────────────── */

.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: white !important; }