body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #003f8c, #0ea5e9);
    background-attachment: fixed;
    background-size: cover;
    color: #333;
}

/* CABEÇALHO */
header {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
}

.logo {
    max-height: 120px;
    margin-bottom: 15px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* CONTAINER APENAS DA PÁGINA INICIAL */
.main-container {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 60px auto;
    max-width: 1200px;
}

/* GRID DE CARDS */
.grid-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* CARD DE ESTADO E SERVIÇO */
.card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 180px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1d4ed8;
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.2);
}

/* SERVIÇOS COM BANDEIRA */
.service-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    width: 220px;
    text-align: center;
    text-decoration: none;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.bandeira-card {
    width: 50px;
    height: auto;
    margin-bottom: 12px;
}

/* BARRA DE BUSCA */
.search-container {
    text-align: center;
    margin-bottom: 30px;
}

#searchInput {
    width: 60%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* BOTÃO DE SAIR */
.logout-btn {
    position: absolute;
    top: 20px;
    right: 30px;
}

.logout-btn a {
    background-color: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.logout-btn a:hover {
    background-color: #c0392b;
}

/* BOTÃO ADMIN */
.admin-btn {
    position: absolute;
    top: 20px;
    left: 30px;
}

.admin-btn a {
    background-color: #1e3a8a;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.admin-btn a:hover {
    background-color: #2563eb;
}

/* PERFIL USUÁRIO NO CANTO DIREITO */
.user-info {
    position: fixed;
    top: 20px;
    right: 120px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #1e3a8a;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* RODAPÉ */
.footer {
    text-align: center;
    color: #fff;
    font-size: 0.9rem;
    margin-top: 60px;
    padding: 20px;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .grid-container {
        flex-direction: column;
        align-items: center;
    }

    .card, .service-card {
        width: 80%;
    }

    #searchInput {
        width: 80%;
    }

    header h1 {
        font-size: 2rem;
    }
}

/* Botão Voltar */
.voltar {
    background-color: #fef2f2;
    border: 2px solid #ef4444;
    color: #b91c1c;
    font-weight: bold;
}

.voltar:hover {
    background-color: #fee2e2;
    border-color: #dc2626;
    transform: translateY(-5px) scale(1.05);
}

/* DASHBOARD CARDS */
.dashboard {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dashboard-card {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 220px;
}

.dashboard-card i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 10px;
}

.dashboard-card h3 {
    margin: 10px 0;
    font-size: 2rem;
    color: #1e3a8a;
}

.dashboard-card p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

/* Login Container */
.login-container {
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    margin: 100px auto;
    text-align: center;
}

.login-container .logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.login-container h1 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #1e3a8a;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.btn-login {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-login:hover {
    background-color: #1e40af;
}

/* Mensagem de erro no login */
.error-message {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: bold;
}
/* Formulário de Cadastro de Usuários */
.form-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.form-section h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-cadastro .form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-cadastro input[type="text"],
.form-cadastro input[type="password"],
.form-cadastro select {
    flex: 1 1 200px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

/* Tabela de Usuários */
.tabela-section h2 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-container {
    overflow-x: auto;
}

.tabela-usuarios {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tabela-usuarios th, .tabela-usuarios td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabela-usuarios th {
    background-color: #0ea5e9;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
}

.tabela-usuarios tr:hover {
    background-color: #f0f8ff;
}

.btn-remover {
    background-color: #e74c3c;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-remover:hover {
    background-color: #c0392b;
}

.logado {
    font-weight: bold;
    color: #10b981;
}
/* BOTÃO VOLTAR */
.back-btn {
    position: absolute;
    top: 20px;
    left: 30px;
}

.back-btn a {
    background-color: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.back-btn a:hover {
    background-color: #1e40af;
}
