body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background-color: #111;
    background-image: url("/static/fundo_unico.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center top;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7); /* ← MANTIDO! */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.capa {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 12px;
}

.aviso {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 165, 0, 0.4);
}

h1, h2, h3 {
    text-align: center;
    color: #ffa500;
}

.botoes-superiores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 1rem;
}

.botao-moderno {
    padding: 10px 20px;
    background-color: #ffa500;
    color: #000;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.botao-moderno:hover {
    background-color: #ff8c00;
}

form {
    text-align: center;
    margin: 20px 0;
}

label {
    margin: 0 10px;
    font-weight: bold;
}

button[type="submit"] {
    padding: 8px 15px;
    background-color: #28a745;
    border: none;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #218838;
}

table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background-color: white;
    color: #000;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #ffa500;
    color: #000;
}

.resumo {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 30px 0;
}

.resumo p {
    background: #222;
    border-left: 5px solid #ffa500;
    padding: 15px;
    border-radius: 5px;
    width: 200px;
    margin: 10px;
    font-size: 14px;
    color: #fff;
    text-align: center;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
    padding: 10px;
    border-left: 5px solid #ffa500;
    border-radius: 4px;
}

/* === Painel Admin: Sidebar e Dashboard === */

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 220px;
    background-color: #111;
    color: white;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    z-index: 999;
}

.sidebar h2 {
    color: #ffa500;
    text-align: center;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: white;
    padding: 12px 0;
    text-decoration: none;
    font-weight: bold;
}

.sidebar a:hover {
    background-color: #333;
}

.main {
    margin-left: 240px;
    padding: 30px;
}

.card {
    background-color: #222;
    color: white;
    border-left: 6px solid #ffa500;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.card h3 {
    margin: 0;
    font-size: 18px;
    color: #ff944d;
}

.card p {
    font-size: 26px;
    margin: 10px 0 0;
}

.logout-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
}

/* Gráfico no painel */
canvas#graficoAcessos {
    background: white;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
