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

/* ==========================================================================
   VALENTE 2026 - ARQUIVO DE ESTILO MESTRE (STANDALONE)
   Contém: Base Layout + Glassmorphism + Componentes Específicos
   ========================================================================== */

/* --- 1. BASE & BACKGROUND (Deep Blue) --- */
body {
    background-image: radial-gradient(circle at 50% 30%, #3b82f6 0%, transparent 40%), 
                      linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
    background-attachment: fixed !important;
    background-color: #0f172a !important;
    font-family: 'Poppins', sans-serif;
    color: white;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    padding-bottom: 40px;
    padding-top: 20px;
}

a { text-decoration: none; }

/* --- 2. BARRA SUPERIOR (TOP BAR) --- */
.top-bar {
    width: 90%; 
    margin: 0 auto 30px auto;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.welcome-text h1 { 
    margin: 0; 
    font-size: 1.5rem; 
    color: #ffffff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}
.welcome-text small { 
    color: rgba(255,255,255,0.7); 
    font-weight: 600; 
    text-transform: uppercase;
}

/* Botão Voltar/Logout */
.btn-logout {
    color: #ffffff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}
.btn-logout:hover { 
    background: rgba(255, 68, 68, 0.8); 
    border-color: rgba(255, 68, 68, 0.8);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.4);
}

/* --- 3. DASHBOARD GRID & CARDS --- */
.services-grid {
    width: 90%; 
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.service-card {
    min-height: 110px; 
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.icon-box {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-text { display: flex; flex-direction: column; }

.service-card h3 {
    margin: 0 0 3px 0;
    color: #ffffff;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.service-card p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.2;
}

/* Estilos de Borda Específicos */
.style-valente { border-left: 4px solid #a855f7 !important; } /* Roxo Principal */
.style-inscritos { border-left: 4px solid #f97316 !important; } /* Laranja (Admin) */

/* --- 4. MOSTRADOR DE CRONOGRAMA (DECK) --- */
.cronograma-deck {
    width: 90%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.cronograma-deck::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; 
    /* Cor definida inline pelo PHP, mas padrão roxo se falhar */
    background: #a855f7; 
}

.deck-label {
    font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 5px; font-weight: 600;
}

.deck-title {
    font-size: 1.4rem; font-weight: 800; color: white; margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.deck-timer-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 25px;
    border-radius: 50px;
    display: inline-flex; gap: 15px; align-items: center;
}

.timer-unit { display: flex; flex-direction: column; line-height: 1; }
.timer-number { font-family: 'Courier New', monospace; font-size: 1.5rem; font-weight: bold; }
.timer-text { font-size: 0.6rem; color: rgba(255,255,255,0.4); margin-top: 3px; }

.deck-footer {
    margin-top: 15px; font-size: 0.8rem; color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 10px; width: 100%;
}

@media (max-width: 600px) {
    .deck-title { font-size: 1.1rem; }
    .timer-number { font-size: 1.1rem; }
    .deck-timer-box { padding: 8px 15px; gap: 10px; }
}

/* --- 5. TABELAS (GLASS STYLE) --- */
.valente-table-container { width: 90%; margin: 0 auto 40px auto; }

.valente-school-title {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 10px 15px;
    font-weight: 800;
    text-transform: uppercase;
    border-top-left-radius: 10px; border-top-right-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    display: flex; justify-content: space-between; align-items: center;
}

.valente-table {
    width: 100%; border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.valente-table th {
    background: rgba(168, 85, 247, 0.15); /* Roxo Valente */
    color: #fff; font-size: 0.8rem; padding: 8px; text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.valente-table td {
    padding: 8px 15px; font-size: 0.85rem; color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.valente-table tr:hover { background: rgba(255, 255, 255, 0.05); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Linha de Totais */
.total-row td {
    background-color: rgba(168, 85, 247, 0.2) !important;
    font-weight: 800; color: #fff;
    border-top: 2px solid rgba(255,255,255,0.2);
}

/* Badges de Status */
.status-badge {
    font-size: 0.65rem; padding: 2px 6px; border-radius: 4px;
    text-transform: uppercase; font-weight: bold;
}
.status-future { background: rgba(255,255,255,0.1); color: #ccc; }
.status-open { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.4); box-shadow: 0 0 5px rgba(34,197,94,0.2); }
.status-closed { background: rgba(248, 113, 113, 0.2); color: #f87171; }

/* --- 6. FORMULÁRIOS & INPUTS (GLASS) --- */
.form-glass {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px; border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 30px;
}

.form-glass label {
    display: block; margin-bottom: 5px; font-size: 0.8rem; color: #ccc;
}

.form-glass input, .form-glass select, input[type="datetime-local"] {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    color: white; padding: 10px; border-radius: 5px;
    margin-bottom: 15px; width: 100%; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Foco nos Inputs */
.form-glass input:focus, .form-glass select:focus, input[type="datetime-local"]:focus {
    border-color: #a855f7; outline: none; background: rgba(168, 85, 247, 0.1);
}

/* Layout do Form */
.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.col-1 { flex: 1; }
.col-2 { flex: 2; }
.col-3 { flex: 3; }

/* Botões de Form */
.btn-salvar {
    background: #a855f7; color: white; border: none; padding: 10px;
    border-radius: 5px; cursor: pointer; width: 100%;
    font-weight: bold; transition: 0.3s;
}
.btn-salvar:hover { background: #9333ea; }

.btn-delete {
    color: #f87171; background: none; border: 1px solid #f87171;
    padding: 2px 8px; border-radius: 4px; cursor: pointer;
    font-size: 0.7rem; text-decoration: none;
}
.btn-delete:hover { background: #f87171; color: white; }

/* --- 7. FOOTER ADJUSTMENTS --- */
/* Garante que o footer global não quebre o estilo */
#modern-footer { border-top: 1px solid #ffffff !important; }