body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}
.navbar {
    width: 100vw;
    background: #1976d2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 18px;
    height: 56px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.navbar .menu-btn {
    margin-right: 7px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    padding: 2px 6px;
    box-shadow: none;
}
.navbar .brand {
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 1px;
}
.navbar .dropdown {
    display: none;
    position: absolute;
    top: 56px;
    left: 18px;
    right: auto;
    background: #fff;
    color: #1976d2;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13);
    overflow: hidden;
}
.navbar .dropdown.open {
    display: block;
}
.navbar .dropdown a {
    display: block;
    color: #1976d2;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 1em;
    border-bottom: 1px solid #e3e3e3;
    background: #fff;
    transition: background 0.2s;
}
.navbar .dropdown a:last-child { border-bottom: none; }
.navbar .dropdown a:hover, .navbar .dropdown a.active {
    background: #e3e3e3;
}
.navbar .theme-toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.2s;
}
.navbar .theme-toggle:hover {
    color: #90caf9;
}
.container {
    max-width: 420px;
    margin: 80px auto 18px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 28px 22px;
    position: relative;
    z-index: 1;
}
table { width: 100%; border-collapse: collapse; margin-top: 18px; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: center; }
th { background: #1976d2; color: #fff; }
tr:nth-child(even) { background: #f2f2f2; }
a { color: #1976d2; text-decoration: none; }
a.button { display: inline-block; margin: 8px 0; padding: 8px 16px; background: #1976d2; color: #fff; border-radius: 4px; }
a.button:hover { background: #125ea2; }
.login-container {
    max-width: 340px;
    margin: 60px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 28px 22px;
    position: relative;
}
.theme-toggle {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1000;
    background: none !important;
    border: none;
    color: #1976d2;
    font-size: 1.4em;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 50%;
    transition: color 0.2s, opacity 0.2s;
    box-shadow: none;
    opacity: 0.7;
}
.theme-toggle:hover {
    background: none !important;
    color: #125ea2;
    opacity: 1;
}
input[type=text], input[type=password] {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #222;
    transition: background 0.2s, color 0.2s;
}
button {
    /* width: 100%; */
    padding: 12px;
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    margin-top: 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
button:hover {
    background: #125ea2;
}
.error {
    color: #b71c1c;
    background: #ffdada;
    border-radius: 4px;
    padding: 8px;
    margin-top: 10px;
    text-align: center;
}
.success {
    color: #155724;
    background: #d4edda;
    border-radius: 4px;
    padding: 8px;
    margin-top: 10px;
    text-align: center;
}
@media (max-width: 600px) {
    .container { margin: 70px 2vw 18px 2vw; padding: 12px 2vw; max-width: 98vw; }
    .navbar .brand { font-size: 1em; }
    .navbar .dropdown { left: 2vw; right: auto; min-width: 70vw; }
}
@media (prefers-color-scheme: dark) {
    .login-container {
        background: #23272f;
        color: #e3e3e3;
        box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    .theme-toggle {
        color: #90caf9;
        background: none;
    }
    .theme-toggle:hover {
        background: #333a45;
        color: #fff;
    }
    input[type=text], input[type=password] {
        background: #23272f;
        color: #e3e3e3;
        border: 1px solid #444;
    }
    button {
        background: #333a45;
        color: #fff;
    }
    button:hover {
        background: #1976d2;
        color: #fff;
    }
    .error {
        color: #ffb3b3;
        background: #3a2323;
    }
    .success {
        color: #b2ffb2;
        background: #233a23;
    }
}
:root[data-theme='dark'] body,
:root[data-theme='dark'] .container {
    background: #23272f !important;
    color: #e3e3e3 !important;
}
:root[data-theme='dark'] .navbar {
    background: #23272f !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
:root[data-theme='dark'] .navbar .dropdown {
    background: #23272f !important;
    color: #e3e3e3 !important;
}
:root[data-theme='dark'] .navbar .dropdown a {
    color: #e3e3e3 !important;
    background: #23272f !important;
    border-bottom: 1px solid #333 !important;
}
:root[data-theme='dark'] .navbar .dropdown a:hover,
:root[data-theme='dark'] .navbar .dropdown a.active {
    background: #333a45 !important;
    color: #fff !important;
}
:root[data-theme='dark'] table {
    background: #23272f !important;
    color: #e3e3e3 !important;
}
:root[data-theme='dark'] th {
    background: #333a45 !important;
    color: #fff !important;
}
:root[data-theme='dark'] tr:nth-child(even) {
    background: #23272f !important;
}
:root[data-theme='dark'] tr:nth-child(odd) {
    background: #181a1b !important;
}
:root[data-theme='dark'] a { color: #90caf9 !important; }
:root[data-theme='dark'] a.button {
    background: #333a45 !important;
    color: #fff !important;
    padding: 14px 3 !important;
}
:root[data-theme='dark'] a.button:hover {
    background: #1976d2 !important;
    color: #fff !important;
}
:root[data-theme='dark'] .login-container {
    background: #23272f !important;
    color: #e3e3e3 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important;
}
:root[data-theme='dark'] .theme-toggle {
    color: #90caf9 !important;
    background: none !important;
}
:root[data-theme='dark'] .theme-toggle:hover {
    background: none !important;
    color: #fff !important;
}
:root[data-theme='dark'] input[type=text],
:root[data-theme='dark'] input[type=password] {
    background: #23272f !important;
    color: #e3e3e3 !important;
    border: 1px solid #444 !important;
}
:root[data-theme='dark'] button {
    background: #333a45 !important;
    color: #fff !important;
    padding: 14px 3 !important;
}
:root[data-theme='dark'] button:hover {
    background: #1976d2 !important;
    color: #fff !important;
}
:root[data-theme='dark'] .error {
    color: #ffb3b3 !important;
    background: #3a2323 !important;
}
:root[data-theme='dark'] .success {
    color: #b2ffb2 !important;
    background: #233a23 !important;
}
/* :root[data-theme='dark'] .card-estatistica {
    background: #333a45 !important;
    color: #fff !important;
} */

