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

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0b0b0d;
    color: #ffffff;
    text-transform: uppercase;
}

a {
    text-decoration: none;
}

header {
    text-align: center;
    padding: 20px 10px 10px;
}

header img {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

header h1 {
    font-size: 18px;
    letter-spacing: 1px;
}

.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.content {
    width: 100%;
    max-width: 1100px;
}

.search-box, .admin-box, .login-box {
    background: #14141a;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.search-box h2,
.admin-box h2,
.login-box h2 {
    font-size: 16px;
    margin-bottom: 10px;
    text-align: center;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

form input[type="text"],
form input[type="number"],
form input[type="password"],
form select {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #0f0f14;
    color: #fff;
    min-width: 180px;
}

form button,
.btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    background: linear-gradient(135deg, #ff8600, #ffb347);
    color: #000;
    transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.2s ease;
}

form button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    opacity: 0.9;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card {
    border-radius: 10px;
    padding: 12px 14px;
    background: #191922;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

/* CORES POR MUNICÍPIO (SERÃO COMBINADAS COM CLASSES GERADAS EM PHP) */
.city-color-0 { background:#ff860033; }
.city-color-1 { background:#00bfff33; }
.city-color-2 { background:#00ffaa33; }
.city-color-3 { background:#ff007833; }
.city-color-4 { background:#ffd70033; }
.city-color-5 { background:#8a2be233; }

.service-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.service-meta {
    font-size: 13px;
    opacity: 0.9;
}

.service-value {
    font-size: 16px;
    font-weight: bold;
    margin-top: 4px;
    color: #ffb347;
}

.service-actions {
    margin-top: 8px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.service-actions form {
    margin: 0;
}

/* TABELA NO ADMIN */
.table-wrapper {
    margin-top: 10px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

table thead {
    background: #20202a;
}

table th, table td {
    padding: 8px;
    border-bottom: 1px solid #333;
    text-align: center;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px 10px 20px;
    font-size: 11px;
    background: #050507;
    border-top: 1px solid #222;
    margin-top: 15px;
}

.footer-instagram-btn {
    display: inline-block;
    margin-bottom: 6px;
}

.footer-instagram-btn .btn {
    font-size: 11px;
    padding: 6px 14px;
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
    header h1 {
        font-size: 14px;
    }
    .search-box, .admin-box, .login-box {
        padding: 12px;
    }
    table {
        font-size: 11px;
    }
}

/* BOTÃO DE LOGOUT */
.logout-container {
    text-align: center;
    margin: 10px 0;
}
