/* GERAL E RESET */
:root {
    --cor-primaria: #0f1f3a;
    --cor-secundaria: #1e4d7a;
    --cor-destaque: #fbbf24;
    --cor-fundo: #f8fafc;
    --cor-texto: #1e293b;
    --cor-sucesso: #28a745;
    --cor-erro: #dc3545;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    padding-bottom: 80px; /* Espaço para o navegador flutuante */
}

/* ======================================= */
/* === ESTILOS PARA A TELA DE LOGIN === */
/* ======================================= */
#login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background-color: var(--cor-primaria);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

.login-box {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.login-box h1 {
    font-size: 1.8rem;
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
}

.login-box p {
    color: #6c757d;
    margin-bottom: 2rem;
}

#login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px 24px;
    border: 1px solid #dadce0;
    border-radius: 5px;
    background-color: #fff;
    color: #3c4043;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

#login-btn:hover {
    border-color: #c6c6c6;
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* ======================================= */
/* === ESTILOS PARA O HEADER E LOGOUT === */
/* ======================================= */
header {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-bottom: 4px solid var(--cor-destaque);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

header h1 {
    font-size: 1.8rem;
    text-align: left;
}

#logout-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#logout-btn:hover {
    background-color: white;
    color: var(--cor-secundaria);
}

/* ======================================= */
/* === ESTILOS DO CONTEÚDO DO CURSO === */
/* ======================================= */
.main-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.module {
    display: none;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: fadeIn 0.5s ease-in-out;
}

.module.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module h2 {
    font-size: 2rem;
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--cor-destaque);
    padding-bottom: 0.75rem;
}

.module h3 {
    font-size: 1.5rem;
    color: var(--cor-secundaria);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.module p, .module li {
    margin-bottom: 1rem;
}

.module ul, .module ol {
    padding-left: 2rem;
}

.formula-box {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin: 1.5rem 0;
}

.calculator-container, #quiz-container, #certificado-form-container, #reprovado-container {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #f0f6fc;
    border-left: 5px solid var(--cor-secundaria);
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.input-group input, .input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#opcoes-quiz button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem;
    margin: 0.5rem 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    transition: all 0.2s ease;
}

#opcoes-quiz button:hover:not(:disabled) {
    background-color: #dfe9f5;
}

#opcoes-quiz button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#opcoes-quiz button.correta {
    background-color: #d4edda;
    border-color: var(--cor-sucesso);
    font-weight: bold;
}

#opcoes-quiz button.incorreta {
    background-color: #f8d7da;
    border-color: var(--cor-erro);
}

#feedback {
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
}

#certificado-form-container, #reprovado-container {
    text-align: center;
}

#certificado-form-container { background-color: #eaf5e9; border: 2px solid var(--cor-sucesso); }
#reprovado-container { background-color: #fdeaea; border: 2px solid var(--cor-erro); }

/* BOTÕES PRINCIPAIS COM GRADIENTES E ANIMAÇÕES */
#gerar-certificado-btn, #tentar-novamente-btn, #calcular-graxa-btn, 
.calc-btn, .interactive-btn, .advanced-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#gerar-certificado-btn { 
    background: linear-gradient(135deg, #16a34a, #22c55e);
}
#tentar-novamente-btn, #calcular-graxa-btn { 
    background: linear-gradient(135deg, var(--cor-secundaria), var(--cor-primaria));
}
.calc-btn {
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
}
.interactive-btn {
    background: linear-gradient(135deg, var(--cor-destaque), var(--cor-secundaria));
}
.advanced-btn {
    background: linear-gradient(135deg, #dc3545, #e91e63);
}

/* Efeito de ondulação nos botões */
#gerar-certificado-btn:before, #tentar-novamente-btn:before, #calcular-graxa-btn:before,
.calc-btn:before, .interactive-btn:before, .advanced-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#gerar-certificado-btn:hover:before, #tentar-novamente-btn:hover:before, #calcular-graxa-btn:hover:before,
.calc-btn:hover:before, .interactive-btn:hover:before, .advanced-btn:hover:before {
    width: 300px;
    height: 300px;
}

#gerar-certificado-btn:hover, #tentar-novamente-btn:hover, #calcular-graxa-btn:hover,
.calc-btn:hover, .interactive-btn:hover, .advanced-btn:hover { 
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

#gerar-certificado-btn:active, #tentar-novamente-btn:active, #calcular-graxa-btn:active,
.calc-btn:active, .interactive-btn:active, .advanced-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* === NOVOS ESTILOS PARA ELEMENTOS INTERATIVOS === */

.interactive-box {
    background-color: #f8f9fa;
    border: 2px solid var(--cor-secundaria);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.interactive-box h4 {
    color: var(--cor-secundaria);
    margin-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 0.5rem;
}

.calculator-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.calculator-row label {
    min-width: 200px;
    font-weight: bold;
}

.calculator-row input, .calculator-row select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.calculator-row button {
    background-color: var(--cor-secundaria);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.calculator-row button:hover {
    background-color: var(--cor-primaria);
}

.resultado-calc {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    border-left: 4px solid var(--cor-destaque);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 4px solid var(--cor-destaque);
}

.info-card h5 {
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
}

.desgaste-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.desgaste-tipo {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 4px solid var(--cor-secundaria);
}

.desgaste-tipo h5 {
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

.desgaste-tipo p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.funcoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.funcao-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-left: 4px solid var(--cor-destaque);
    transition: transform 0.2s ease;
}

.funcao-card:hover {
    transform: translateY(-2px);
}

.funcao-card h4 {
    color: var(--cor-secundaria);
    margin-bottom: 0.8rem;
}

.regimes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.regime-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.regime-card.limite {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border-left: 5px solid #e53e3e;
}

.regime-card.mista {
    background: linear-gradient(135deg, #fffbeb, #fef5e7);
    border-left: 5px solid #dd6b20;
}

.regime-card.hidrodinamica {
    background: linear-gradient(135deg, #f0fff4, #c6f6d5);
    border-left: 5px solid #38a169;
}

.regime-card h4 {
    margin-bottom: 1rem;
}

.regime-card ul {
    padding-left: 1.5rem;
}

.regime-card li {
    margin-bottom: 0.3rem;
}

.classification-chart {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}

.tree-structure {
    text-align: center;
}

.tree-level-1, .tree-level-2 {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.tree-level-2 {
    gap: 2rem;
}

.tree-item {
    background-color: var(--cor-secundaria);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.solid-lubricants {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.lubricant-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border-top: 4px solid var(--cor-destaque);
}

.lubricant-card h4 {
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

.properties p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.oil-types, .synthetic-oils {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.oil-category, .synthetic-type {
    background-color: #ffffff;
    padding: 1.2rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-left: 3px solid var(--cor-secundaria);
}

.oil-category h5, .synthetic-type h5 {
    color: var(--cor-primaria);
    margin-bottom: 0.8rem;
}

.grease-structure {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}

.grease-components {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.component {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.component h5 {
    background-color: var(--cor-secundaria);
    color: white;
    padding: 0.5rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.thickener-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.thickener-card {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-top: 4px solid var(--cor-destaque);
}

.thickener-card h5 {
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

.thickener-card ul {
    padding-left: 1.5rem;
}

.thickener-card li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.exercise-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--cor-destaque);
    margin: 2rem 0;
}

.exercise-box h4 {
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

.exercise-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.exercise-options button {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.exercise-options button:hover {
    border-color: var(--cor-secundaria);
    background-color: #f8f9fa;
}

.exercise-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    font-weight: bold;
}

.ehl-features {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
    border-left: 4px solid var(--cor-destaque);
}

.ehl-features h4 {
    color: var(--cor-primaria);
    margin-bottom: 1rem;
}

.ehl-features ul {
    padding-left: 1.5rem;
}

.ehl-features li {
    margin-bottom: 0.5rem;
}

.selecao-regime {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}

.fatores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.fator {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--cor-secundaria);
    font-size: 0.9rem;
}

/* NOVAS FUNCIONALIDADES INTERATIVAS */

/* Simulador de Viscosidade 3D */
.viscosity-simulator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.viscosity-container {
    position: relative;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.viscosity-fluid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #00c6ff, #0072ff);
    transition: all 2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 10px 10px;
}

.viscosity-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

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

/* Calculadora Avançada de Lubrificação */
.advanced-calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.calc-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.calc-tab {
    flex: 1;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.calc-tab.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.calc-content {
    display: none;
}

.calc-content.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Gráfico de Performance Interativo */
.performance-chart {
    background: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.chart-container {
    position: relative;
    height: 400px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 1rem 0;
    overflow: hidden;
}

.chart-line {
    stroke: var(--cor-secundaria);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* Comparador de Lubrificantes Visual */
.lubricant-comparator {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.lubricant-card-compare {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    transform: perspective(1000px) rotateX(5deg);
    transition: all 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.lubricant-card-compare:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
}

.performance-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.performance-fill {
    height: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border-radius: 5px;
    transition: width 1.5s ease-out;
}

/* Simulador de Temperatura e Vida Útil */
.temp-life-simulator {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
}

.temperature-gauge {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        #00ff00 0deg 120deg,
        #ffff00 120deg 240deg,
        #ff0000 240deg 360deg
    );
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.temp-needle {
    position: absolute;
    width: 4px;
    height: 80px;
    background: white;
    border-radius: 2px;
    transform-origin: bottom center;
    transition: transform 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .calculator-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .calculator-row label {
        min-width: auto;
    }
    
    .info-grid, .funcoes-grid, .regimes-container, .desgaste-container {
        grid-template-columns: 1fr;
    }
    
    .grease-components {
        flex-direction: column;
    }
    
    .tree-level-2 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .calc-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .lubricant-comparator {
        grid-template-columns: 1fr;
    }
    
    .viscosity-container, .chart-container {
        height: 250px;
    }
    
    .temperature-gauge {
        width: 150px;
        height: 150px;
    }
}

/* NAVEGADOR FLUTUANTE */
.floating-nav {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-secundaria));
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    z-index: 1001;
}

.floating-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.2);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.floating-nav button:hover:not(:disabled) {
    background: var(--cor-destaque);
    color: var(--cor-primaria);
}

.floating-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#module-indicator {
    color: white;
    font-weight: bold;
    font-size: 1rem;
    min-width: 50px;
    text-align: center;
}

/* ========== LOGIN OVERLAY ========== */
.login-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #0f1f3a, #1e4d7a);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-card h2 {
    color: #0f1f3a;
    margin: 0 0 12px 0;
    font-size: 1.5rem;
}
.login-card p {
    color: #555;
    margin-bottom: 24px;
    font-size: .95rem;
}
.login-card #google-login-btn {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all .3s;
}
.login-card #google-login-btn:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 12px rgba(66,133,244,.2);
}
.login-card #google-login-btn i {
    color: #4285f4;
    font-size: 1.2rem;
}
.login-error {
    color: #dc3545;
    margin-top: 12px;
    font-size: .85rem;
}
