/* 1. CONFIGURAÇÕES GERAIS */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f4f8; /* Azul acinzentado bem clarinho */
    margin: 0;
    padding: 10px;
    color: #334155;
}

/* 2. CONTAINER PRINCIPAL (CARDS) */
.container, .painel, .box-gestao {
    max-width: 500px;
    margin: 20px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* Ajuste para telas de Gerente (que precisam ser maiores) */
.painel, .box-gestao {
    max-width: 1100px;
}

/* 3. TIPOGRAFIA */
h2 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
    border-left: 5px solid #3b82f6;
    padding-left: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
}

/* 4. CAMPOS DE ENTRADA (INPUTS) */
input[type="text"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background-color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* 5. BOTÕES */
button, .btn-geral {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão Enviar (Verde) */
button[name="enviar_relatorio"] {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

/* Botão Login (Azul) */
button[name="login"] {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

button:active {
    transform: scale(0.98);
}

/* 6. ELEMENTOS ESPECÍFICOS (GPS, USER INFO) */
.user-info {
    background: #f1f5f9;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.85rem;
    border-bottom: 2px solid #e2e8f0;
}

#gps_st {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 7. TABELAS (VIEW GERENTE) */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 15px;
}

th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 12px;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 15px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

tr:hover {
    background-color: #f8fafc;
}

/* 8. RADIOS CUSTOMIZADOS (SIM/NÃO) */
input[type="radio"] {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}

/* 9. RESPONSIVIDADE */
@media (max-width: 600px) {
    .container {
        padding: 15px;
        margin: 10px auto;
    }
    
    h2 { font-size: 1.25rem; }
    
    td, th {
        padding: 10px 5px;
        font-size: 0.8rem;
    }
}

/* Estilo para as fotos na tabela */
.thumb-link {
    text-decoration: none;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    color: #475569;
    font-size: 11px;
}