
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #3161CA;
    --primary-dark: #24499C;
    --accent: #57C0FF;
    --navy: #08152F;
    --bg: #F5F8FF;
    --white: #FFFFFF;
    --text: #101828;
    --text-2: #667085;
    --muted: #98A2B3;
    --border: #D9E2F2;
    --blue-soft: #EAF4FF;
    --success: #22C55E;
    --success-soft: #DCFCE7;
    --warning: #F59E0B;
    --warning-soft: #FEF3C7;
    --danger: #EF4444;
    --danger-soft: #FEE2E2;
    --shadow: 0 10px 30px rgba(8, 21, 47, .08);
    --shadow-lg: 0 18px 50px rgba(8, 21, 47, .12);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 50px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: .9;
}

.brand-wordmark strong {
    color: var(--primary);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.06em;
}

.brand-wordmark span {
    color: var(--text-2);
    font-size: .57rem;
    font-weight: 700;
    letter-spacing: .34em;
    margin-left: .22em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 7px 18px rgba(49, 97, 202, .24);
    position: relative;
    overflow: hidden;
}
.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    border: 3px solid var(--white);
    width: 17px;
    height: 9px;
    border-radius: 7px;
    transform: skewX(-18deg);
}
.brand-mark::before { left: 6px; top: 8px; border-right-color: transparent; }
.brand-mark::after { right: 6px; bottom: 8px; border-left-color: transparent; }

/* Nota: o símbolo acima é apenas um marcador visual.
   Substitua .brand-mark pelo arquivo oficial do logo quando disponível. */

.card, .panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.panel { padding: 24px; margin-bottom: 20px; }

h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.04em; }
h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.subtitle { color: var(--text-2); line-height: 1.6; }

.btn, button {
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
}
.btn:hover, button:hover { transform: translateY(-1px); }
.btn-primary, button.primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(49,97,202,.18);
}
.btn-primary:hover, button.primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-secondary {
    background: var(--blue-soft);
    color: var(--primary);
    border: 1px solid #CBE6FF;
}
.btn-danger { background: var(--danger-soft); color: #B42318; }
.btn-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

.form-group, .group { margin-bottom: 17px; }
label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: .78rem;
    font-weight: 700;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 13px;
    outline: none;
    transition: .2s ease;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(87,192,255,.16);
}

.message { min-height: 22px; margin-top: 14px; font-weight: 600; }
.message.success, .sucesso { color: #15803D; }
.message.error, .erro { color: #B42318; }

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 10% 10%, rgba(87,192,255,.24), transparent 32%),
        linear-gradient(135deg, #EFF6FF 0%, #F8FBFF 55%, #EAF4FF 100%);
}
.auth-card {
    width: min(440px, 100%);
    padding: 38px;
    text-align: center;
}
.auth-card .brand { justify-content: center; margin-bottom: 26px; }
.auth-card .brand-wordmark strong { font-size: 2rem; }
.auth-card .subtitle { margin-bottom: 28px; }
.auth-card form { text-align: left; }
.auth-info {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-2);
    font-size: .82rem;
    line-height: 1.6;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.stat strong { display: block; color: var(--primary); font-size: 1.8rem; }
.stat span { color: var(--text-2); font-size: .86rem; }

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}
.menu-card {
    padding: 22px;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}
.menu-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.menu-card .icon {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--primary);
    margin-bottom: 14px;
    font-size: 1.25rem;
}
.menu-card h3 { margin-bottom: 6px; }
.menu-card p { margin: 0; color: var(--text-2); font-size: .86rem; line-height: 1.5; }

.alunos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 16px;
}
.aluno-card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.aluno-card h2 { margin-bottom: 12px; }
.aluno-card p { color: var(--text-2); margin: 7px 0; font-size: .9rem; }
.aluno-card strong { color: var(--text); }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}
.badge-blue { background: var(--blue-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: #15803D; }
.badge-warning { background: var(--warning-soft); color: #B45309; }
.badge-danger { background: var(--danger-soft); color: #B42318; }

.semana {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 12px;
}
.dia-card {
    min-height: 245px;
    padding: 16px;
    background: #FBFDFF;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.dia-card:hover { border-color: var(--accent); }
.dia-nome { color: var(--primary); font-weight: 800; }
.dia-data { color: var(--muted); font-size: .76rem; margin: 4px 0 14px; }
.dia-sem-treino { color: var(--muted); font-size: .82rem; text-align: center; margin-top: 70px; }
.treino-dia {
    padding: 12px;
    margin-bottom: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 11px;
}
.treino-dia h3 { font-size: .9rem; margin-bottom: 6px; }
.treino-dia p { color: var(--text-2); font-size: .76rem; line-height: 1.45; margin: 4px 0; }
.btn-concluir {
    width: 100%;
    margin-top: 9px;
    background: var(--primary);
    color: var(--white);
    padding: 9px;
}
.treino-concluido { border-color: #86EFAC; background: #F7FFF9; }
.badge-concluido { display:inline-block; margin-top:7px; padding:4px 7px; border-radius:20px; background:var(--success-soft); color:#15803D; font-size:.7rem; font-weight:800; }

.modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(8,21,47,.55);
    backdrop-filter: blur(4px);
    display: flex; align-items:center; justify-content:center;
    padding: 20px;
}
.modal {
    position: relative;
    width: min(480px,100%);
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal h2 { color: var(--primary); }
.modal p { color: var(--text-2); }
.modal label { margin-top: 15px; }
.modal-fechar {
    position:absolute; top:10px; right:12px;
    background:transparent; color:var(--muted); font-size:28px; padding:4px 8px;
}
.estrelas { display:flex; gap:5px; }
.estrelas button { background:transparent; color:#CBD5E1; font-size:31px; padding:0 3px; }
.estrelas button.selecionada { color:var(--accent); }
.btn-enviar-feedback { width:100%; margin-top:20px; background:var(--primary); color:var(--white); }

@media (max-width: 900px) {
    .semana { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
    .page { width: min(100% - 28px, 1180px); padding-top: 18px; }
    .topbar { align-items: flex-start; }
    .stats, .grid-2, .grid-3, .menu-grid { grid-template-columns: 1fr; }
    .semana { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
}


/* =========================================================
   SPY TEAM — LOGO OFICIAL
   ========================================================= */
.logo-spy-team {
    display: block;
    width: 150px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.navbar .logo-spy-team,
.navbar-brand .logo-spy-team {
    width: 128px;
    max-height: 44px;
}

.sidebar .logo-spy-team,
.sidebar-header .logo-spy-team {
    width: 145px;
    max-height: 52px;
}

.login-logo .logo-spy-team,
.auth-logo .logo-spy-team {
    width: 190px;
    max-height: 90px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .navbar .logo-spy-team,
    .navbar-brand .logo-spy-team {
        width: 112px;
    }

    .sidebar .logo-spy-team,
    .sidebar-header .logo-spy-team {
        width: 125px;
    }

    .login-logo .logo-spy-team,
    .auth-logo .logo-spy-team {
        width: 165px;
    }
}


/* =========================================================
   SPY TEAM — LOGO OFICIAL AZUL E CLICÁVEL
   ========================================================= */
.brand-official {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    border-radius: 10px;
    transition: transform .2s ease, opacity .2s ease;
}

.brand-official:hover {
    transform: translateY(-1px);
    opacity: .88;
}

.brand-official:focus-visible {
    outline: 3px solid rgba(87, 192, 255, .45);
    outline-offset: 5px;
}

.brand-official .brand-logo {
    width: 155px;
    height: auto;
    max-height: 78px;
    object-fit: contain;
}

/* Na tela de login, mantém o logo exatamente no local da marca antiga. */
.auth-card .brand-official {
    margin: 0 auto 28px;
}

.auth-card .brand-official .brand-logo {
    width: 170px;
}

@media (max-width: 768px) {
    .brand-official .brand-logo {
        width: 135px;
    }

    .auth-card .brand-official .brand-logo {
        width: 150px;
    }
}


/* =========================================================
   SPY TEAM — DESIGN SYSTEM 2026 / DASHBOARD V1
   Referência visual: painel azul, superfícies claras e navegação lateral.
   ========================================================= */
:root {
    --primary: #3161CA;
    --primary-strong: #164FD1;
    --primary-dark: #0B3E9E;
    --accent: #57C0FF;
    --accent-strong: #37C0FE;
    --navy: #071F54;
    --navy-2: #06347F;
    --bg: #F5F8FF;
    --surface: #FFFFFF;
    --text: #101828;
    --text-2: #667085;
    --muted: #98A2B3;
    --border: #D9E2F2;
    --blue-soft: #EEF5FF;
    --shadow: 0 8px 24px rgba(16, 52, 112, .07);
    --shadow-lg: 0 20px 55px rgba(10, 42, 102, .13);
}

/* LOGIN: manter visual atual; apenas centralizar o botão Entrar. */
.auth-card form .btn-primary {
    display: block;
    width: min(210px, 100%);
    margin: 8px auto 0;
    text-align: center;
}

.app-body {
    background:
        radial-gradient(circle at 92% 8%, rgba(87,192,255,.10), transparent 30%),
        #F5F8FF;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.app-sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    padding: 24px 14px 18px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(22,79,209,.96) 0%, rgba(7,55,139,.98) 54%, #061D4A 100%);
    box-shadow: 10px 0 34px rgba(20,72,160,.10);
    overflow: hidden;
}

.app-sidebar::before {
    content: "";
    position: absolute;
    inset: auto -80px 25% auto;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(87,192,255,.14);
    filter: blur(4px);
    pointer-events: none;
}

.sidebar-brand {
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 4px 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,.13);
    margin-bottom: 18px;
    text-decoration: none;
}

.sidebar-logo {
    width: 152px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.app-nav { display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.app-nav-section {
    margin: 18px 11px 6px;
    color: rgba(255,255,255,.62);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .10em;
}
.app-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 10px 12px;
    color: rgba(255,255,255,.86);
    text-decoration: none;
    border-radius: 9px;
    font-size: .84rem;
    font-weight: 600;
    transition: .18s ease;
}

.app-nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.09);
    transform: translateX(2px);
}

/* ITEM SELECIONADO */
.app-nav-item.active,
.app-nav-item.active:hover,
a.app-nav-item.active {
    background: #FFFFFF !important;
    color: #1558D6 !important;
    box-shadow: 0 6px 16px rgba(8, 21, 47, .10) !important;
    transform: translateX(0) !important;
}

a.app-nav-item.active .app-nav-icon,
a.app-nav-item.active .app-nav-icon svg {
    color: #1558D6 !important;
    stroke: #1558D6 !important;
}
.app-nav-icon { width: 20px; height: 20px; flex: 0 0 auto; display:grid; place-items:center; }
.app-nav-icon svg { width: 19px; height: 19px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

.sidebar-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 10px 4px;
    border-top: 1px solid rgba(255,255,255,.12);
    position: relative;
    z-index: 1;
}
.sidebar-avatar, .top-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    flex: 0 0 auto;
    font-weight: 800;
}
.sidebar-avatar { background: linear-gradient(135deg, #5CC8FF, #2D82EE); color:#fff; }
.sidebar-profile strong { display:block; font-size:.78rem; }
.sidebar-profile small { display:block; margin-top:2px; color:rgba(255,255,255,.63); font-size:.67rem; }

.app-workspace { min-width: 0; }
.app-topbar {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 30px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid #E8EEF8;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}
.app-topbar-copy { display:flex; flex-direction:column; gap:2px; }
.app-topbar-copy strong { color:#12356C; font-size:.88rem; }
.app-topbar-copy span { color:var(--muted); font-size:.72rem; }
.app-topbar-actions { display:flex; align-items:center; gap:10px; }
.top-status-dot { width:8px; height:8px; border-radius:50%; background:#22C55E; box-shadow:0 0 0 5px rgba(34,197,94,.12); margin-right:6px; }
.top-avatar { color:#fff; background:linear-gradient(135deg,#1C62DB,#0C45BB); font-size:.78rem; }
.top-logout {
    width:36px; height:36px; padding:8px; display:grid; place-items:center;
    color:#6B7C99; background:#F4F7FC; border:1px solid #E4EBF6; border-radius:9px;
}
.top-logout svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.top-logout:hover { color:#B42318; background:#FFF3F2; }

.app-content { width:min(1180px, calc(100% - 48px)); margin:0 auto; padding:34px 0 50px; }
.dashboard-heading, .form-page-heading {
    display:flex;
    justify-content:space-between;
    gap:24px;
    align-items:flex-end;
    margin-bottom:22px;
}
.dashboard-heading h1, .form-page-heading h1 { margin:4px 0 6px; color:#0B2D66; font-size:clamp(1.7rem,3vw,2.15rem); letter-spacing:-.035em; }
.dashboard-heading p, .form-page-heading p { margin:0; color:#61718D; font-size:.88rem; line-height:1.55; }
.wave { font-size:.82em; }
.eyebrow { color:#2775DF; font-size:.66rem; font-weight:800; letter-spacing:.12em; }
.back-link { display:inline-flex; color:#315F9E; text-decoration:none; font-size:.78rem; font-weight:700; margin-bottom:16px; }
.form-page-heading { display:block; }

.dashboard-stats {
    display:grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}
.metric-card {
    min-height:86px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:17px 18px;
    background:#fff;
    border:1px solid #DCE6F5;
    border-radius:11px;
    box-shadow:var(--shadow);
}
.metric-icon {
    width:43px; height:43px; display:grid; place-items:center; border-radius:50%; flex:0 0 auto;
}
.metric-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.metric-blue { color:#1262E1; background:#E7F0FF; }
.metric-green { color:#13A668; background:#E0FAEF; }
.metric-cyan { color:#169BD5; background:#E2F6FF; }
.metric-amber { color:#E58A13; background:#FFF1D7; }
.metric-card strong { display:block; color:#0C2F68; font-size:1.45rem; line-height:1; }
.metric-card span:not(.metric-icon) { display:block; margin-top:5px; color:#6B7C99; font-size:.72rem; }

.dashboard-card, .form-card {
    background:#fff;
    border:1px solid #DCE6F5;
    border-radius:12px;
    box-shadow:var(--shadow);
    padding:22px;
    margin-bottom:18px;
}
.section-heading-row { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:16px; }
.section-heading-row h2 { margin:3px 0 0; color:#12356C; font-size:1.05rem; }
.section-heading-row p { margin:5px 0 0; color:#73829A; font-size:.78rem; }

.btn { min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:7px; text-decoration:none; border-radius:8px; padding:10px 15px; font-size:.78rem; }
.btn-primary { background:linear-gradient(90deg,#1457D8,#098EF4); color:#fff; box-shadow:0 6px 14px rgba(20,87,216,.18); }
.btn-primary:hover { background:linear-gradient(90deg,#104FCB,#087FDC); }
.btn-secondary { background:#fff; color:#1E5EC4; border:1px solid #9FC1F2; }
.btn-outline { background:#fff; color:#1262E1; border:1px solid #74A8F1; }
.btn-compact { min-height:34px; padding:8px 13px; font-size:.72rem; }
.btn-with-icon span { font-size:1rem; line-height:0; }

.training-list { display:flex; flex-direction:column; gap:9px; }
.training-row {
    display:grid;
    grid-template-columns:52px minmax(0,1fr) 82px auto;
    align-items:center;
    gap:14px;
    padding:13px 14px;
    border:1px solid #DEE8F5;
    border-radius:11px;
    background:#fff;
    transition:.18s ease;
}
.training-row:hover { border-color:#AED3FA; box-shadow:0 7px 20px rgba(34,91,170,.07); transform:translateY(-1px); }
.sport-icon { width:45px; height:45px; display:grid; place-items:center; border-radius:50%; font-size:1.35rem; }
.sport-icon.run { background:#E9F1FF; }
.sport-icon.swim { background:#E0F5FF; }
.sport-icon.bike { background:#FFF0D6; }
.sport-icon.tri { background:#E5F9EF; }
.training-main strong { display:block; color:#12356C; font-size:.83rem; }
.training-main span, .training-main small { display:block; margin-top:3px; color:#6F809B; font-size:.70rem; }
.training-main small { color:#97A4B6; }
.training-count { text-align:center; }
.training-count strong { display:block; color:#144EAE; font-size:1rem; }
.training-count span { color:#7B8DA9; font-size:.66rem; }

.quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.quick-card {
    display:flex; align-items:center; gap:12px; padding:15px; text-decoration:none;
    border:1px solid #E0E8F4; border-radius:11px; background:#FBFDFF; transition:.18s ease;
}
.quick-card:hover { border-color:#9FCAF6; background:#F7FBFF; transform:translateY(-1px); }
.quick-icon { width:39px;height:39px;display:grid;place-items:center;border-radius:10px;color:#1262E1;background:#E8F2FF;flex:0 0 auto; }
.quick-icon svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.quick-card strong { display:block; color:#16396E; font-size:.78rem; }
.quick-card small { display:block; margin-top:3px; color:#7A8AA2; font-size:.67rem; line-height:1.35; }

.skeleton-line { height:72px; border-radius:10px; background:linear-gradient(90deg,#F0F4FA,#F8FAFD,#F0F4FA); background-size:200% 100%; animation:shimmer 1.3s infinite; }
@keyframes shimmer { to { background-position:-200% 0; } }

/* Student weekly schedule */
.semana { grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.dia-card { min-height:190px; padding:13px; border-radius:10px; background:#FBFDFF; border:1px solid #DDE7F4; }
.dia-nome { color:#1E5DC0; font-size:.72rem; text-transform:uppercase; letter-spacing:.03em; }
.dia-data { margin:3px 0 11px; }
.dia-sem-treino { margin-top:48px; }
.treino-dia { padding:11px; border-radius:9px; box-shadow:none; }
.treino-dia h3 { color:#13366D; }
.btn-concluir { border-radius:7px; background:linear-gradient(90deg,#1457D8,#098EF4); }
#listaConcluidos .treino { padding:14px 15px; margin-top:9px; border:1px solid #E0E8F4; border-radius:10px; background:#FBFDFF; }
#listaConcluidos .treino h3 { color:#17396F; margin-bottom:6px; }
#listaConcluidos .treino p { color:#6B7C99; font-size:.79rem; }
.profile-card #perfil { margin:10px 0 0; line-height:1.8; }

/* Forms */
.form-card { max-width:720px; }
.stack-form { width:100%; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; padding-top:8px; }
.label-muted { color:#9AA8B8; font-weight:500; }
.form-card input, .form-card select, .form-card textarea,
.planning-header-card input, .week-table select {
    border-color:#CDDBEE;
    background:#FBFDFF;
    border-radius:8px;
}
.form-card textarea { min-height:125px; }

/* Planning */
.planning-header-card { display:grid; grid-template-columns:minmax(240px,.75fr) minmax(0,1.25fr); gap:18px; align-items:end; }
.planning-date label { margin-bottom:8px; }
.hint { display:flex; flex-direction:column; gap:4px; padding:13px 15px; border:1px solid #D6E8FB; border-radius:9px; background:#F3F9FF; color:#60728E; font-size:.75rem; line-height:1.45; }
.hint strong { color:#1A5CC1; }
.week-table-wrap { overflow-x:auto; border:1px solid #E0E8F4; border-radius:10px; }
.week-table { width:100%; min-width:840px; border-collapse:collapse; }
.week-table th,.week-table td { padding:13px 10px; border-bottom:1px solid #E8EEF7; vertical-align:middle; }
.week-table th { background:#F5F9FF; color:#1E5DC0; text-align:center; font-size:.68rem; letter-spacing:.04em; }
.week-table th:first-child,.week-table td:first-child { text-align:left; width:180px; }
.week-table tbody tr:last-child td { border-bottom:0; }
.modalidade-cell { color:#17396F; font-size:.77rem; font-weight:800; white-space:nowrap; }
.modalidade-icon { display:inline-grid; place-items:center; width:32px; height:32px; margin-right:8px; border-radius:50%; background:#EAF3FF; }
.week-table select { min-width:130px; padding:9px 8px; font-size:.72rem; }
.planning-actions { margin-top:18px; }

/* Students */
.alunos-grid { grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:12px; margin-bottom:18px; }
.aluno-card { position:relative; padding:18px; border-radius:11px; border:1px solid #DCE6F4; box-shadow:var(--shadow); }
.aluno-card::before { content:""; position:absolute; top:0; left:0; width:4px; height:100%; border-radius:11px 0 0 11px; background:linear-gradient(#2577E8,#38BDF8); }
.aluno-card h2 { color:#12356C; font-size:1rem; padding-left:4px; }
.aluno-card p { font-size:.77rem; margin:6px 0; }
.aluno-acoes { display:flex; gap:8px; flex-wrap:wrap; margin-top:13px; }
.btn-ver,.btn-excluir { min-height:34px; border-radius:7px; padding:8px 11px; font-size:.70rem; font-weight:700; }
.btn-ver { background:#EAF3FF; color:#175FCB; border:1px solid #BED8FA; }
.btn-excluir { background:#FFF0F0; color:#C93636; border:1px solid #F6C8C8; }
.student-detail { display:none; }
.student-detail h3 { color:#12356C; font-size:.92rem; margin-top:18px; }
.treino-card { background:#FBFDFF; border:1px solid #DDE7F4; border-radius:10px; padding:15px; margin-top:10px; }
.feedback { margin-top:10px; padding:13px; background:#F2F8FF; border-left:3px solid #57C0FF; border-radius:7px; }

/* Modal */
.modal { border:1px solid #DBE5F2; border-radius:14px; }
.modal h2 { color:#12356C; }
.estrelas button.selecionada { color:#F6B62C; }
.btn-enviar-feedback { border-radius:8px; background:linear-gradient(90deg,#1457D8,#098EF4); }

.vazio { color:#8492A8; font-size:.80rem; }

@media (max-width: 1020px) {
    .app-shell { grid-template-columns:190px minmax(0,1fr); }
    .sidebar-logo { width:132px; }
    .quick-grid { grid-template-columns:1fr; }
    .semana { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 780px) {
    .app-shell { display:block; }
    .app-sidebar { min-height:auto; position:relative; padding:12px; }
    .sidebar-brand { min-height:46px; margin:0 0 8px; padding:3px 8px 10px; }
    .sidebar-logo { width:120px; }
    .app-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
    .app-nav-section,.sidebar-profile { display:none; }
    .app-nav-item { justify-content:center; min-height:38px; padding:8px; font-size:.70rem; }
    .app-nav-icon { display:none; }
    .app-topbar { height:58px; padding:0 16px; position:relative; }
    .app-content { width:min(100% - 28px,1180px); padding-top:22px; }
    .dashboard-heading { align-items:flex-start; flex-direction:column; }
    .dashboard-stats { grid-template-columns:1fr; }
    .training-row { grid-template-columns:46px minmax(0,1fr) auto; }
    .training-count { display:none; }
    .form-grid,.planning-header-card { grid-template-columns:1fr; }
    .semana { grid-template-columns:1fr; }
}


/* ==========================================================
   SPY TEAM — ÁREA DO ALUNO / DESIGN V2
   Dashboard, histórico e perfil separados
   ========================================================== */

.history-summary {
    display: grid;
    grid-template-columns: minmax(240px, 360px);
    margin-bottom: 18px;
}

.history-panel {
    min-height: 360px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    padding: 17px;
    background: #FBFDFF;
    border: 1px solid #DEE8F5;
    border-radius: 11px;
    transition: .18s ease;
}

.history-item:hover {
    border-color: #B8D6F7;
    box-shadow: 0 8px 22px rgba(34, 91, 170, .07);
    transform: translateY(-1px);
}

.history-item-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #13A668;
    background: #E0FAEF;
    font-weight: 900;
}

.history-item-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.history-item h3 {
    margin: 4px 0 0;
    color: #12356C;
    font-size: .94rem;
}

.history-modality {
    color: #2775DF;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.history-date {
    color: #7A8AA2;
    font-size: .72rem;
    white-space: nowrap;
}

.history-description {
    margin: 9px 0 0;
    color: #657690;
    font-size: .78rem;
    line-height: 1.55;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.history-chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #51647F;
    background: #EEF4FB;
    font-size: .66rem;
    font-weight: 700;
}

.history-chip.success {
    color: #15825A;
    background: #E1F8EE;
}

.history-stars {
    color: #F2A51B;
    font-size: .80rem;
    letter-spacing: .04em;
}

.history-feedback {
    margin-top: 12px;
    padding: 11px 13px;
    border-left: 3px solid var(--accent);
    border-radius: 7px;
    background: #F2F8FF;
}

.history-feedback strong {
    display: block;
    color: #285A9D;
    font-size: .68rem;
}

.history-feedback p {
    margin: 4px 0 0;
    color: #657690;
    font-size: .75rem;
    line-height: 1.55;
}

.empty-state {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 52px 24px;
}

.empty-state-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 50%;
    color: #13A668;
    background: #E0FAEF;
    font-size: 1.3rem;
    font-weight: 900;
}

.empty-state h3 {
    margin: 0;
    color: #12356C;
}

.empty-state p {
    max-width: 390px;
    margin: 7px 0 17px;
    color: #7A8AA2;
    font-size: .78rem;
    line-height: 1.55;
}


/* Perfil do aluno */

.student-profile-layout {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: 18px;
    align-items: start;
}

.student-profile-hero {
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 150px;
}

.student-profile-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #1D64DB, #38BDF8);
    box-shadow: 0 10px 25px rgba(29, 100, 219, .22);
    font-size: 1.65rem;
    font-weight: 800;
}

.profile-role {
    color: #2775DF;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.student-profile-hero h2 {
    margin: 5px 0 5px;
    color: #12356C;
    font-size: 1.25rem;
}

.student-profile-hero p {
    margin: 0;
    color: #7788A1;
    font-size: .76rem;
}

.profile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.profile-data-item {
    min-height: 84px;
    padding: 14px 15px;
    border: 1px solid #E0E8F4;
    border-radius: 10px;
    background: #FBFDFF;
}

.profile-data-item span {
    display: block;
    color: #8493A9;
    font-size: .67rem;
    font-weight: 600;
}

.profile-data-item strong {
    display: block;
    margin-top: 7px;
    color: #16396E;
    font-size: .85rem;
}


/* Em mobile agora existem exatamente três páginas do aluno. */
@media (max-width: 780px) {
    .student-profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-data-grid {
        grid-template-columns: 1fr;
    }

    .history-item-heading {
        flex-direction: column;
        gap: 5px;
    }

    .history-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    .history-item-icon {
        width: 38px;
        height: 38px;
    }
}


/* ==========================================================
   SPY TEAM — SENHAS / DESIGN V3
   ========================================================== */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #71829B;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--primary);
    background: #EEF5FF;
    transform: translateY(-50%);
}

.password-toggle:focus-visible {
    outline: 3px solid rgba(87, 192, 255, .22);
    outline-offset: 1px;
}

.password-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle.is-visible::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-42deg);
}

.password-change-card {
    grid-column: 1 / -1;
}

.password-change-card .section-heading-row {
    margin-bottom: 18px;
}

.password-change-card .section-heading-row p {
    margin: 5px 0 0;
    color: #7A8AA2;
    font-size: .76rem;
    line-height: 1.5;
}

.password-change-form {
    width: min(620px, 100%);
}

.password-change-form .form-group {
    margin-bottom: 14px;
}

.password-hint {
    display: block;
    margin-top: 6px;
    color: #8A99AD;
    font-size: .67rem;
}

.password-message {
    min-height: 22px;
    margin: 3px 0 11px;
    color: #657690;
    font-size: .75rem;
    font-weight: 700;
}

.password-message.success {
    color: #15825A;
}

.password-message.error {
    color: #C93636;
}

.password-submit {
    min-width: 160px;
}

.password-submit:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

/* O campo de senha do login mantém o visual atual. */
.auth-card .password-field {
    width: 100%;
}

.auth-card .password-toggle {
    right: 6px;
}


/* ==========================================================
   SPY TEAM — PRIMEIRO ACESSO E RECUPERAÇÃO DE SENHA
   ========================================================== */

.forgot-password-link,
.auth-back-link {
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 700;
    text-decoration: none;
}

.forgot-password-link:hover,
.auth-back-link:hover {
    text-decoration: underline;
}

.recovery-card,
.first-access-card {
    width: min(470px, calc(100vw - 32px));
}

.recovery-card .eyebrow,
.first-access-card .eyebrow {
    display: block;
    margin: 4px 0 8px;
    text-align: center;
}

.recovery-card h1,
.first-access-card h1 {
    text-align: center;
}

.recovery-card .subtitle,
.first-access-card .subtitle {
    text-align: center;
    line-height: 1.55;
}

.recovery-card .btn,
.first-access-card .btn {
    width: 100%;
}

.auth-secondary-action {
    display: block;
    margin: 14px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #71829B;
    font-size: .73rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-secondary-action:hover {
    color: var(--primary);
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #8493A9;
    font-size: .67rem;
    line-height: 1.4;
}
