* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f9;
    color: #333;
}

/* ================= HEADER ================= */

.header {
    background: linear-gradient(90deg, #0d47a1, #1565c0);
    padding: 15px 20px;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 4px;
}

.logout-btn {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

/* ================= CONTAINER ================= */

.main-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ================= TÍTULO ================= */

.titulo-principal {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.titulo-icon {
    font-size: 30px;
    color: #1565c0;
}

/* ================= GRID PRINCIPAL ================= */

.topo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 900px) {
    .topo-grid {
        grid-template-columns: 1fr;
    }
}

/* ================= CARD ================= */

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* ================= HEADER CARD ================= */

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #1565c0;
    font-size: 18px;
}

/* ================= GRID CAMPOS ================= */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* ================= CAMPOS ================= */

.campo {
    display: flex;
    flex-direction: column;
}

.campo label {
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.campo input,
.campo select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: 0.2s;
    background: #fff;
}

.campo input:focus,
.campo select:focus,
textarea:focus {
    border-color: #1565c0;
    box-shadow: 0 0 5px rgba(21,101,192,0.3);
}

/* ================= CRITÉRIOS ================= */

.criterios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 700px) {
    .criterios {
        grid-template-columns: 1fr;
    }
}

.criterio {
    display: flex;
    flex-direction: column;
}

.criterio label {
    font-size: 14px;
    margin-bottom: 5px;
    color: #444;
}

.criterio select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

/* ================= CORES DOS SELECTS ================= */

.nao-atende {
    background: #ffebee;
    border-color: #e53935 !important;
}

.parcial {
    background: #fff3e0;
    border-color: #fb8c00 !important;
}

.atende {
    background: #fffde7;
    border-color: #fdd835 !important;
}

.supera {
    background: #e8f5e9;
    border-color: #43a047 !important;
}

/* ================= RESULTADO ================= */

.resultado {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    background: #f5f5f5;
    transition: 0.3s;
}

/* CORES RESULTADO */

.resultado-vermelho {
    background: #ffebee;
    color: #c62828;
}

.resultado-laranja {
    background: #fff3e0;
    color: #ef6c00;
}

.resultado-amarelo {
    background: #fffde7;
    color: #f9a825;
}

.resultado-verde {
    background: #e8f5e9;
    color: #2e7d32;
}

/* ================= OBSERVAÇÃO ================= */

textarea {
    width: 100%;
    min-height: 120px;
    resize: none;
}

/* ================= BOTÃO ================= */

.actions {
    text-align: right;
}

.btn-salvar {
    background: linear-gradient(90deg, #1565c0, #1e88e5);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-salvar:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-salvar:disabled {
    opacity: 0.7;
    cursor: wait;
}

/* ================= LOGIN ================= */

.login-body {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-card h1 {
    font-size: 18px;
    color: #0d47a1;
    margin-bottom: 8px;
}

.login-sub {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-card input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.login-card input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 5px rgba(21, 101, 192, 0.3);
}

.login-card button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #1565c0, #1e88e5);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.login-card button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.login-err {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* ================= RESPONSIVO GERAL ================= */

@media (max-width: 600px) {

    .resultado {
        flex-direction: column;
        gap: 10px;
    }

    .actions {
        text-align: center;
    }
}