:root {
    --primary: #003366;
    --accent: #c5a059;
    --bg-dark: #050a14;
    --text-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: black;
}

/* Painel de Controle Unificado na Base */
.main-header {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
    z-index: 9999;
}

.info-container, .qr-container {
    background: rgba(5, 20, 5, 0.75);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Relógio, clima e data em uma única linha */
.info-container {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    white-space: nowrap;
}

.clock {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,0.25);
    font-variant-numeric: tabular-nums;
}

.bottom-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid rgba(255,255,255,0.25);
    padding-right: 12px;
}

.weather-widget #weather-icon { font-size: 1.1rem; line-height: 1; }
.weather-widget .temp { font-size: 1.1rem; font-weight: 700; color: var(--accent); line-height: 1; }

.date {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* QR Code */
.qr-container {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    display: none;
    padding: 10px 16px;
}

.qr-container.visible { display: flex !important; }

.qr-container p {
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
    letter-spacing: 2px;
    opacity: 0.5;
}

.qr-container img {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    background: white;
    padding: 5px;
}

/* --- SLIDER --- */
.content-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slider {
    width: 100%;
    height: 100%;
    background: #000;
    perspective: 1500px; /* Necessário para o efeito 3D de giro */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    backface-visibility: hidden;
    will-change: transform, opacity, filter;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

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

/* Mosaico */
.gallery-grid {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 4px;
    background: #000;
}

.grid-item img { width: 100%; height: 100%; object-fit: cover; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-areas: "a a" "b c"; grid-template-rows: 1.2fr 1fr; }
.grid-3 .grid-item:nth-child(1) { grid-area: a; }
.grid-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* Vídeo */
.slide-video { width: 100%; height: 100%; border: none; object-fit: cover; }
.insta-embed {
    width: 90% !important;
    height: 80% !important;
    max-width: 550px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.8);
}

/* Aniversário */
.slide[data-birthday="true"] { background: linear-gradient(135deg, #1a3317 0%, #000 100%) !important; }
.slide[data-birthday="true"] img {
    width: 65vh !important;
    height: 65vh !important;
    border-radius: 50% !important;
    border: 12px solid var(--accent) !important;
    object-fit: cover !important;
    box-shadow: 0 0 60px rgba(197, 160, 89, 0.4);
    margin-top: -50px;
}
.birthday-icon {
    position: absolute;
    top: 10%;
    font-size: 8rem;
    animation: bounce 2s infinite;
    z-index: 20;
}

.birthday-name {
    position: absolute;
    bottom: 22%;
    width: 100%;
    text-align: center;
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
    text-transform: uppercase;
    z-index: 20;
    letter-spacing: 2px;
}

/* --- EVENTOS ESCOLARES (INTERVALOS) --- */
.event-slide {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 999 !important;
}

.event-content h1 {
    font-size: 5rem;
    font-weight: 900;
    margin: 20px 0;
    text-transform: uppercase;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.event-content h2 {
    font-size: 2.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.event-icon {
    font-size: 8rem;
    margin-bottom: 20px;
    animation: bell-ring 2s infinite ease-in-out;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    10%, 30%, 50% { transform: rotate(15deg); }
    20%, 40% { transform: rotate(-15deg); }
}

/* --- CARD DE NOTÍCIAS EXTERNAS (TIPO REELS / TABOOLA) --- */
.news-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 5;
    box-sizing: border-box;
    opacity: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.news-card.active {
    opacity: 1;
}

.news-fullscreen-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 15%;
    z-index: -2;
}

.news-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 80%; /* Aumentado de 70% para 80% para cobrir mais área */
    background: linear-gradient(to top, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.95) 30%, 
        rgba(0,0,0,0.6) 60%, 
        rgba(0,0,0,0) 100%);
    z-index: -1;
}

.news-content-bottom {
    padding: 60px 80px 180px 80px; /* Espaço para o relógio/painel inferior */
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.news-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
}

.news-badge-icon {
    background: #c00000;
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 6px;
    margin-right: 12px;
    letter-spacing: 1px;
}

.news-badge-text {
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.news-title-text {
    font-size: 2.4rem; /* Fonte reduzida para melhorar legibilidade de títulos longos */
    line-height: 1.25;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 20px rgba(0,0,0,1), 0 0 40px rgba(0,0,0,0.8); /* Sombra duplicada para máximo contraste */
    max-width: 95%;
}

.news-qr-container img {
    width: 260px;
    height: 260px;
}

.news-qr-container p {
    color: #000;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 15px;
    text-transform: uppercase;
}

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

/* Emergência */
.slide.active[data-emergency="true"] {
    border: 15px solid #ff0000;
    box-shadow: inset 0 0 100px rgba(255,0,0,0.5);
    animation: emergency-pulse 1s infinite alternate;
}
.emergency-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.95);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    border: 5px solid #ff0000;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.emergency-text-overlay h1 {
    font-size: 3rem; /* Tamanho reduzido para melhor legibilidade */
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}
@keyframes emergency-pulse { from { border-color: #ff0000; } to { border-color: #880000; } }

/* Analytics */
.analytics-dashboard {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.98);
    padding: 40px;
    border-radius: 25px;
    z-index: 10000;
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    border: 2px solid var(--accent);
    display: none;
    color: #fff;
}
.analytics-dashboard.visible { display: block; }
.analytics-dashboard table { width: 100%; border-collapse: collapse; }
.analytics-dashboard th, .analytics-dashboard td { padding: 15px; text-align: left; border-bottom: 1px solid #333; }

/* Loader */
.loader { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 30px; }

.loader-logo {
    width: 150px;
    height: auto;
    animation: pulse-logo 2s infinite ease-in-out;
    filter: drop-shadow(0 0 20px rgba(197, 160, 89, 0.3));
}

.loader p {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

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

/* WIDGETS EXTRAS: DÓLAR E BRASILEIRÃO */
.dolar-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #093028 0%, #237A57 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 5;
    opacity: 0;
}
.dolar-card.active { opacity: 1; }
.dolar-icon { font-size: 5rem; color: rgba(255,255,255,0.2); margin-bottom: -20px; }
.dolar-title { font-size: 2.2rem; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; opacity: 0.8; margin-bottom: 0; }
.dolar-value { font-size: 7rem; font-weight: 900; margin: 15px 0; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.dolar-variation { font-size: 1.8rem; font-weight: 700; padding: 8px 25px; border-radius: 50px; background: rgba(0,0,0,0.3); }
.dolar-variation.positiva { color: #4ade80; }
.dolar-variation.negativa { color: #f87171; }
.dolar-variation.neutra { color: #94a3b8; }

/* WIDGET CLIMA */
.clima-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.clima-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.clima-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 2;
}
.clima-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}
.clima-header {
    margin-bottom: 20px;
}
.clima-city {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 10px;
    display: block;
}
.clima-state {
    font-size: 1.2rem;
    color: #4ade80;
    font-weight: 700;
    letter-spacing: 5px;
}
.clima-temp {
    font-size: 15rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 10px 50px rgba(0,0,0,0.5);
    margin: 20px 0;
}
.clima-temp span {
    font-size: 5rem;
    vertical-align: top;
    margin-left: 10px;
    color: #4ade80;
}
.clima-phrase {
    font-size: 3.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- QUADRO DE HORÁRIOS (NOVO LAYOUT HORIZONTAL) --- */
.schedule-container {
    width: 95%;
    max-width: 1400px;
    height: 90vh; 
    background: #ffffff;
    border: 8px solid #005a2b; 
    border-radius: 30px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    position: relative;
    margin: auto; 
    color: #333;
}

/* Lógica para esconder elementos (Cabeçalho, QR Code, Relógio) */
body.hide-elements .main-header {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.schedule-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.schedule-header h1 {
    font-size: 2.2rem;
    font-weight: 900;
    color: #005a2b;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-count {
    color: #64748b;
    font-size: 1.8rem;
    font-weight: 400;
}

.timer-badge {
    background: #f1f5f9;
    color: #005a2b;
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px solid #e2e8f0;
    min-width: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Banner de Intervalo (Estilo Novo) */
.interval-banner-new {
    display: flex;
    align-items: center;
    background: #fdf2f2;
    border: 3px dashed #ef4444;
    padding: 12px 25px;
    border-radius: 20px;
    margin-bottom: 15px;
    gap: 20px;
}

.bell-icon {
    font-size: 3.5rem;
    animation: bell-ring 2s infinite ease-in-out;
}

.interval-info h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #b91c1c;
    margin: 0;
}

.interval-banner-new.warning-pulse .interval-info h2 {
    color: #c2410c;
}

.interval-info p {
    font-size: 1.2rem;
    color: #7f1d1d;
    font-weight: 700;
    margin: 0;
}

/* Estado de Aviso no Container */
.schedule-container.warning-state {
    border-color: #f97316;
    background: linear-gradient(to bottom, #ffffff, #fff7ed);
}

.schedule-container.warning-state h1 {
    color: #c2410c;
    animation: text-pulse 1s infinite alternate;
}

@keyframes text-pulse {
    from { opacity: 1; }
    to { opacity: 0.7; }
}

/* Slide de Aviso Fullscreen */
.warning-fullscreen {
    width: 92%;
    height: 88vh;
    background: #f97316;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    animation: flash-bg 1s infinite alternate;
}

@keyframes flash-bg {
    from { background: #f97316; }
    to { background: #ea580c; }
}

.warning-icon { font-size: 12rem; margin-bottom: 30px; }
.warning-fullscreen h1 { font-size: 7rem; font-weight: 900; text-transform: uppercase; margin: 0; }
.warning-fullscreen p { font-size: 3rem; font-weight: 600; margin-top: 10px; opacity: 0.9; }

.page-count {
    font-size: 1.8rem;
    opacity: 0.6;
    margin-left: 15px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: space-around; /* Distribui os cards no espaço disponível */
    overflow: hidden;
}

.schedule-row {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 20px;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.teacher-avatar {
    width: 60px; 
    height: 60px;
    flex-shrink: 0;
}

.avatar-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.class-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.materia-name {
    font-size: 2rem;
    font-weight: 900;
    color: #005a2b;
    text-transform: uppercase;
    line-height: 1.1;
}

.professor-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
}

.class-date {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.turma-badge-new {
    background: #004d23;
    color: #ffffff;
    font-weight: 800;
    font-size: 2.2rem;
    padding: 8px 30px;
    border-radius: 15px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 77, 35, 0.2);
}

/* Ajustes de animação para os cards */
.schedule-row {
    animation: slideInRight 0.5s ease backwards;
}

.schedule-row:nth-child(1) { animation-delay: 0.1s; }
.schedule-row:nth-child(2) { animation-delay: 0.2s; }
.schedule-row:nth-child(3) { animation-delay: 0.3s; }
.schedule-row:nth-child(4) { animation-delay: 0.4s; }
.schedule-row:nth-child(5) { animation-delay: 0.5s; }
.schedule-row:nth-child(6) { animation-delay: 0.6s; }

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

/* --- NOVOS SERVIÇOS: TRÂNSITO E DICAS --- */

/* Slide de Dicas Pedagógicas */
.trivia-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* embaixo reserva o espaço do painel do relógio/QR, que fica por cima */
    padding: 6vh 6vw 190px;
    z-index: 5;
    overflow: hidden;
}

.trivia-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.3) blur(2px);
    z-index: -1;
}

.trivia-badge {
    background: var(--accent);
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: min(50px, 3vh);
    font-size: min(1.2rem, 3vw);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.3);
}

.trivia-text {
    /* acompanha o tamanho da tela para o texto não sair da área visível */
    font-size: min(4rem, 6.2vw, 3.6vh);
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
    margin-bottom: min(40px, 2.5vh);
    max-width: 90%;
}

.trivia-footer {
    font-size: min(1.8rem, 4vw);
    font-weight: 300;
    opacity: 0.8;
    border-top: 2px solid var(--accent);
    padding-top: 20px;
    width: 200px;
}

/* Dashboard de Trânsito */
.traffic-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #050a14 0%, #0f172a 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 5;
}

.traffic-header {
    text-align: center;
    margin-bottom: 10px;
}

.traffic-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.traffic-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.traffic-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 22px;
    border-radius: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.traffic-dest h3 { font-size: 1.6rem; font-weight: 800; color: #fff; }
.traffic-dest p { font-size: 1rem; opacity: 0.5; margin-top: 2px; }

.traffic-time { text-align: right; }
.traffic-time .value { font-size: 2.2rem; font-weight: 900; display: block; }
.traffic-time .label { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; }

.traffic-map-container {
    flex: 1;
    background: #000;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.traffic-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg) brightness(0.7) contrast(1.2);
}
/* --- CARD DE ANIVERSARIANTE (TEMPLATE VERDE) --- */
.birthday-slide {
    background: #000;
    width: 100%;
    height: 100%;
}

.birthday-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.birthday-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.birthday-name-overlay {
    position: absolute;
    top: 48%; /* Ajustado para cair dentro do círculo branco do template */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4.5rem;
    font-weight: 900;
    color: #004d23; /* Tom de verde escuro para combinar com o tema */
    text-align: center;
    width: 80%;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255,255,255,0.5);
    font-family: var(--font-main);
}

/* --- PROVAS BIMESTRAIS --- */
.bimestral-slide {
    background: linear-gradient(160deg, #f0f4f8 0%, #e8ecf1 40%, #f5f7fa 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.bimestral-container {
    width: 92%;
    max-width: 1300px;
    height: 88vh;
    background: #ffffff;
    border: 8px solid #005a2b;
    border-radius: 30px;
    padding: 35px 45px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

.bimestral-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.bimestral-icon {
    font-size: 3.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 20px;
    border: 1px solid #a5d6a7;
    flex-shrink: 0;
}

.bimestral-title-group h1 {
    font-size: 1.4rem;
    font-weight: 900;
    color: #005a2b;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.bimestral-title-group h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #334155;
    margin: 5px 0 2px 0;
}

.bimestral-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.bimestral-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bimestral-list::-webkit-scrollbar {
    display: none;
}

.bimestral-row {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    animation: bimRowSlideIn 0.5s ease backwards;
}

.bimestral-row:nth-child(1) { animation-delay: 0.05s; }
.bimestral-row:nth-child(2) { animation-delay: 0.1s; }
.bimestral-row:nth-child(3) { animation-delay: 0.15s; }
.bimestral-row:nth-child(4) { animation-delay: 0.2s; }
.bimestral-row:nth-child(5) { animation-delay: 0.25s; }
.bimestral-row:nth-child(6) { animation-delay: 0.3s; }
.bimestral-row:nth-child(7) { animation-delay: 0.35s; }
.bimestral-row:nth-child(8) { animation-delay: 0.4s; }

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

/* Estado: HOJE (destaque principal) */
.bimestral-row.today {
    background: linear-gradient(135deg, #e8f5e9, #dcedc8);
    border: 2px solid #005a2b;
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0, 90, 43, 0.15);
    padding: 18px 25px;
}

/* Estado: PASSADO */
.bimestral-row.past {
    opacity: 0.4;
}

/* Estado: FUTURO */
.bimestral-row.upcoming {
    opacity: 0.9;
}

/* Linha de Simulado */
.bimestral-row.simulado-row {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.bimestral-row.simulado-row.today {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #d97706;
}

.bimestral-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    margin-right: 20px;
}

.bimestral-day-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bimestral-row.today .bimestral-day-name {
    color: #005a2b;
}

.bimestral-date {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.bimestral-row.today .bimestral-date {
    color: #005a2b;
    font-size: 1.7rem;
}

.bimestral-materias {
    flex: 1;
    font-size: 1.4rem;
    color: #334155;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bimestral-row.today .bimestral-materias {
    color: #005a2b;
    font-weight: 700;
    font-size: 1.5rem;
}

.bimestral-status {
    min-width: 90px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hoje-badge {
    background: linear-gradient(135deg, #005a2b, #00802b);
    color: white;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: hojePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(0, 90, 43, 0.4);
}

@keyframes hojePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 90, 43, 0.3); transform: scale(1); }
    50% { box-shadow: 0 4px 25px rgba(0, 90, 43, 0.5); transform: scale(1.05); }
}

.done-check {
    font-size: 1.4rem;
    color: #22c55e;
    font-weight: 900;
    background: rgba(34, 197, 94, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.pending-dot {
    font-size: 1.2rem;
    color: #94a3b8;
}

/* --- CARD COPA DO MUNDO 2026 --- */
.worldcup-slide {
    background: radial-gradient(ellipse at 30% 20%, #1a0a2e 0%, #0d1b2a 40%, #0a0f1a 100%) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Efeitos de fundo */
.wc-bg-effects {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Estrelas flutuantes douradas */
.wc-star {
    position: absolute;
    color: rgba(212, 175, 55, 0.15);
    font-size: 3rem;
    animation: wcStarFloat 8s ease-in-out infinite;
}
.wc-star-1 { top: 10%; left: 8%; font-size: 2rem; animation-delay: 0s; }
.wc-star-2 { top: 25%; right: 12%; font-size: 4rem; animation-delay: 1.5s; }
.wc-star-3 { bottom: 20%; left: 15%; font-size: 2.5rem; animation-delay: 3s; }
.wc-star-4 { top: 60%; right: 8%; font-size: 1.8rem; animation-delay: 4.5s; }
.wc-star-5 { bottom: 10%; right: 25%; font-size: 3.5rem; animation-delay: 2s; }

@keyframes wcStarFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.4; }
}

/* Partículas animadas */
.wc-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d4af37;
    opacity: 0;
    animation: wcParticleRise 6s ease-in-out infinite;
}
.wc-p1 { left: 10%; bottom: 0; animation-delay: 0s; }
.wc-p2 { left: 30%; bottom: 0; animation-delay: 1s; }
.wc-p3 { left: 50%; bottom: 0; animation-delay: 2s; }
.wc-p4 { left: 70%; bottom: 0; animation-delay: 0.5s; }
.wc-p5 { left: 85%; bottom: 0; animation-delay: 3s; }
.wc-p6 { left: 45%; bottom: 0; animation-delay: 1.5s; }

@keyframes wcParticleRise {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* Conteúdo principal */
.wc-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    width: 90%;
    max-width: 1200px;
}

/* Badge Superior */
.wc-top-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #d4af37;
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: wcBadgeGlow 3s ease-in-out infinite;
}

.wc-trophy {
    font-size: 2rem;
    animation: wcTrophyBounce 2s ease-in-out infinite;
}

@keyframes wcTrophyBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(-5deg); }
}

@keyframes wcBadgeGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.1); }
    50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.3); }
}

/* Badge de Fase */
.wc-phase-badge {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Confronto */
.wc-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin: 10px 0;
}

.wc-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.wc-flag {
    font-size: 8rem;
    line-height: 1;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    animation: wcFlagPulse 3s ease-in-out infinite;
}

.wc-team-left .wc-flag { animation-delay: 0s; }
.wc-team-right .wc-flag { animation-delay: 1.5s; }

@keyframes wcFlagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.wc-team-name {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 4px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* VS Central */
.wc-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wc-vs-text {
    font-size: 3.5rem;
    font-weight: 900;
    color: #d4af37;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    animation: wcVsPulse 2s ease-in-out infinite;
}

@keyframes wcVsPulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 30px rgba(212, 175, 55, 0.3); }
    50% { transform: scale(1.15); text-shadow: 0 0 50px rgba(212, 175, 55, 0.7); }
}

.wc-matchday {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Barra de Informações */
.wc-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border-radius: 20px;
    margin-top: 10px;
}

.wc-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wc-info-icon {
    font-size: 1.8rem;
}

.wc-info-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    font-weight: 700;
}

.wc-info-value {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 800;
}

.wc-info-divider {
    width: 1px;
    height: 50px;
    background: rgba(255,255,255,0.15);
}

/* Texto Inferior Animado */
.wc-bottom-text {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #009c3b, #ffdf00, #009c3b, #ffdf00);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wcTextShine 4s linear infinite;
    margin-top: 5px;
}

@keyframes wcTextShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* --- ENEM 2026 COUNTDOWN SPECIAL SLIDE --- */
.enem-countdown-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Quadro com a proporção exata da arte (9:16), cobrindo a tela como object-fit: cover.
   Texto e moldura usam a mesma referência, então ficam alinhados em qualquer TV,
   e as fontes acompanham a largura da arte (--fw). */
.enem-frame {
    --fw: max(100vw, 56.25vh);
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--fw);
    height: max(100vh, 177.78vw);
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.enem-countdown-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: fill;
    z-index: 0;
}

.enem-countdown-container {
    position: absolute;
    z-index: 1;
    top: 33%;
    left: 11%;
    width: 78%;
    height: 44%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: calc(var(--fw) * 0.025);
    overflow: hidden;
}

.enem-days-count {
    font-size: calc(var(--fw) * 0.12);
    font-weight: 800;
    color: #003366;
    margin: 0;
    line-height: 1;
}

.enem-days-label {
    font-size: calc(var(--fw) * 0.032);
    font-weight: 800;
    color: #4CAF50;
    margin-top: calc(var(--fw) * 0.008);
    margin-bottom: calc(var(--fw) * 0.025);
    letter-spacing: 2px;
}

.enem-countdown-phrase {
    font-size: calc(var(--fw) * 0.03);
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    max-width: 90%;
    margin: 0;
}

.enem-success-icon {
    font-size: calc(var(--fw) * 0.07);
    margin-bottom: calc(var(--fw) * 0.015);
}

.enem-countdown-phrase.enem-success-phrase {
    font-size: calc(var(--fw) * 0.038);
    font-weight: 800;
    color: #003366;
    line-height: 1.3;
}
