/* --- ESTÉTICA NOTEBOOKLM --- */
:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --primary-gradient: linear-gradient(90deg, #4285f4, #9b72cb);
    --text-main: #3c4043;
    --text-sub: #70757a;
    --border-color: #dadce0;
    --selected-bg: #e8f0fe;
    --selected-border: #4285f4;
    --success: #1e8e3e;
    --error: #d93025;
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
}

/* Views Navigation */
.view { display: none; opacity: 0; transition: opacity 0.3s ease; }
.view.active { display: block; opacity: 1; }

/* Components */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 2px rgba(60,64,67,0.1);
    margin-top: 20;
}

h1, h2, h3 { margin-top: 20; font-weight: 500; }

.logo {
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin-bottom: 2rem;
    display: inline-block;
}

/* Buttons */
.btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--text-main);
    color: white;
    border: none;
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.btn:hover { background-color: #f1f3f4; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-success { background-color: var(--success) !important; color: white !important; }

.btn-edit {
    color: var(--text-main);
    border-color: var(--border-color);
    margin-right: 8px; /* Espaço entre o editar e o excluir */
}
.btn-edit:hover {
    background-color: #e8f0fe;
    color: #1a73e8;
    border-color: #1a73e8;
}

/* Inputs */
input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: inherit;
}
textarea { resize: vertical; }

.label-sub {
    font-size: 0.9rem;
    color: var(--text-sub);
    display: block;
    margin-bottom: 0.5rem;
}

/* Exam Options */
.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.option-btn:hover { background-color: #f1f3f4; }
.option-btn.selected {
    background-color: var(--selected-bg);
    border-color: var(--selected-border);
    color: #174ea6;
    font-weight: 500;
}

/* Results & Feedback */
.result-item { padding: 1rem; border-bottom: 1px solid var(--border-color); }
.result-item.error { border-left: 4px solid var(--error); }

.final-score {
    font-size: 3rem; 
    font-weight: bold; 
    margin: 1rem 0;
}

.student-result-header {
    background: #f1f3f4;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-weight: 500;
    color: var(--text-main);
}
.student-result-header span strong { color: var(--text-sub); font-weight: normal; }

/* Progress Bar */
.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    transition: width 0.3s;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    background: #f1f3f4;
    color: var(--text-sub);
    margin-bottom: 0.5rem;
}

/* Utilities */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-sub);
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.divider::before { margin-right: .5em; }
.divider::after { margin-left: .5em; }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.action-bar {
    text-align: center; 
    margin-top: 2rem; 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap;
}

/* --- Timer Config (Professor) --- */
/* --- Timer Config (Professor) --- */
.timer-config {
    display: flex;             /* Coloca os filhos lado a lado */
    align-items: center;       /* Alinha verticalmente no centro */
    gap: 15px;                 /* Espaço entre o checkbox e o input */
/*  background: #f1f3f4; */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;       /* Garante que o texto não quebre linha */
}

/* Ajuste específico para o input de minutos não ficar gigante */
.timer-config input[type="number"] {
    width: 120px;              /* Largura fixa menor */
    margin-bottom: 0;          /* Remove margem padrão de inputs */
    background-color: white;
}

/* --- Timer Display (Aluno) --- */
#exam-timer {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    background: #f1f3f4;
    color: var(--text-main);
}

/* Quando faltar menos de 1 minuto */
#exam-timer.urgent {
    background-color: #fce8e6;
    color: var(--error);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}
