/* ======== ESTILO BASE ======== */
body {
    font-family: Arial, sans-serif;
    background: #b10000;
    margin: 0;
    padding: 0;
}

/* ======== CONTAINER CENTRAL ======== */
.container {
    max-width: 600px;
    background: white;
    margin: 60px auto;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}

/* ======== TÍTULOS E LISTAS ======== */
h1 {
    color: #d63031;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.titulo {
    color: #000000;
    font-weight: bold;
    font-size: 1.2em;
}

.lista-bairros {
    list-style: none;
    padding: 0;
}

.lista-bairros li {
    background: #ff6f6f;
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

/* ======== MENSAGENS ======== */
.sem-rompimento {
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.1em;
}

.tempo-info {
    margin-top: 20px;
    font-size: 1.1em;
    color: #000000;
    background: #FFFF00;
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}

/* ======== LOGO ======== */
.logo {
    height: 100px;         
    width: auto;           
    max-width: 100%;       
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(-20px);
}

/* Animação suave de entrada */
@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplica a animação */
.animar-logo {
    animation: fadeInLogo 1s ease-out forwards;
}

/* ======== BOTÕES E RODAPÉ ======== */
button {
    background: #0984e3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background: #74b9ff;
}

.rodape {
    margin-top: 40px;
    text-align: center;
}

.botao-painel {
    display: inline-block;
    padding: 12px 12px;
    font-size: 1.3em;
    color: #333; /* cinza escuro */
    background: transparent; /* fundo totalmente transparente */
    border: none; /* sem borda */
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.botao-painel:hover {
    background: #fff; /* fundo branco no hover */
    color: #000; /* texto preto */
}


/* ======== CHECKBOXES ======== */
.checkboxes {
    text-align: left;
    display: inline-block;
}

/* ======== IMAGENS EXTRAS ======== */
img {
    max-width: 100%;
    height: auto;
}

/* ======== HISTÓRICO E FINALIZAR ======== */
.botao-finalizar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.botao-finalizar:hover {
    background-color: #218838;
}

.historico-rompimentos {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-top: 25px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.historico-rompimentos h2 {
    margin-bottom: 10px;
}

.historico-rompimentos ul {
    list-style: none;
    padding: 0;
}

.historico-rompimentos li {
    border-bottom: 1px solid #eee;
    padding: 8px 0;
}

/* ======== PAINEL TOPO ======== */
.painel-topo {
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #333;
    text-decoration: none;
    z-index: 9999;
}

/* ======== RESPONSIVIDADE GLOBAL ======== */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        width: 100%;
        margin: 30px auto;
        padding: 20px;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.4em;
    }

    .lista-bairros li {
        font-size: 1em;
        padding: 8px;
    }

    .tempo-info {
        font-size: 1em;
        padding: 8px 12px;
    }

    .botao-painel {
        font-size: 1.1em;
        padding: 6px 10px;
    }

    .logo {
        height: 80px;
    }

    button,
    .botao-finalizar {
        width: 100%;
        box-sizing: border-box;
    }

    .checkboxes {
        width: 100%;
    }

    .historico-rompimentos {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2em;
    }

    .container {
        padding: 15px;
        margin: 20px auto;
    }

    .lista-bairros li {
        font-size: 0.95em;
        padding: 6px;
    }

    .tempo-info {
        font-size: 0.9em;
        padding: 6px 10px;
    }

    .botao-painel {
        font-size: 1em;
        padding: 5px 8px;
    }

    .historico-rompimentos {
        padding: 10px;
        margin-top: 20px;
    }

    .painel-topo {
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .logo {
        height: 60px;
    }
}

/* ============================================================
   LOGIN DO PAINEL ADMINISTRATIVO
   ============================================================ */
body.login {
    background: #b10000;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

body.login .container {
    background: #ffffff;
    width: 100%;
    max-width: 380px;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    box-sizing: border-box;
}

body.login h1 {
    color: #b10000;
    margin-bottom: 25px;
    font-size: 1.6em;
}

body.login form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.login label {
    text-align: left;
    font-weight: bold;
    color: #333;
}

body.login input[type="text"],
body.login input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

body.login button {
    background: #0984e3;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

body.login button:hover {
    background: #74b9ff;
}

body.login p {
    margin: 10px 0;
}

body.login .rodape {
    margin-top: 20px;
}

body.login .rodape a {
    color: #b10000;
    text-decoration: none;
    font-weight: bold;
}

body.login .rodape a:hover {
    text-decoration: underline;
}

/* ======== RESPONSIVIDADE LOGIN ======== */
@media (max-width: 480px) {
    body.login .container {
        margin: 0 15px;
        padding: 25px 20px;
    }

    body.login h1 {
        font-size: 1.3em;
    }

    body.login input,
    body.login button {
        font-size: 0.95em;
    }
}
