/* Estilos Frontend */
.consulta-lote-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.campo-consulta {
    text-align: center;
    margin-bottom: 30px;
}

.campo-consulta label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.campo-consulta input[type="text"] {
    padding: 12px;
    margin-right: 10px;
    width: 250px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.campo-consulta input[type="text"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0,115,170,0.3);
}

.campo-consulta button {
    padding: 12px 25px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.campo-consulta button:hover {
    background: #005a87;
}

.campo-consulta button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#resultado-consulta {
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

#resultado-consulta h3 {
    color: #1d2327;
    margin-bottom: 12px;
    padding: 0;
    border: none;
    background: none;
}

#resultado-consulta h3::after {
    content: '';
    display: block;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e8cb2c, #ec4237, #de1a89, #4e5c94, #00b1c8, #119277, #B7C737);
    margin-top: 8px;
}

.tabela-lote {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tabela-lote td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.tabela-lote td:first-child {
    background: #f8f9fa;
    color: #555;
    width: 35%;
    font-weight: bold;
}

.tabela-lote tr:last-child td {
    border-bottom: none;
}

.erro-msg {
    color: #842029;
    font-weight: 600;
    font-size: 14px;
    background: #fff5f5;
    padding: 14px;
    padding-bottom: 14px !important;
    border-radius: 6px;
    border: 1px solid #f8d7da;
    border-left: 6px solid #ec4237;
    text-align: left;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    align-content: space-around;

}

.erro-msg::before {
    content: '⚠️';
    font-size: 18px;
    line-height: 1;
}

#erro-consulta {
    margin-top: 20px;
}

#loading-consulta {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Overrides caprichados para barra de consulta */
.campo-consulta input[type="text"] {
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.campo-consulta input[type="text"]:focus {
    border-color: #4e5c94;
    box-shadow: 0 0 0 3px rgba(78,92,148,0.2);
}

.campo-consulta button {
    padding: 12px 28px;
    background: #4e5c94; /* padrão sólido */
    color: #fff;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.campo-consulta button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    background-color: #3d497a;
}

/* Opção A: Sólida azul (padrão) */
.campo-consulta.style-a input[type="text"] {
    border-color: #cbd5e1;
}
.campo-consulta.style-a input[type="text"]:focus {
    border-color: #4e5c94;
    box-shadow: 0 0 0 3px rgba(78,92,148,0.2);
}
.campo-consulta.style-a button {
    background: #4e5c94;
}
.campo-consulta.style-a button:hover {
    background: #3d497a;
}

/* Opção B: Botão contornado verde */
.campo-consulta.style-b input[type="text"] {
    border: 2px solid rgba(17,146,119,0.2);
    border-radius: 8px;
}
.campo-consulta.style-b input[type="text"]:focus {
    border-color: #119277;
    box-shadow: 0 0 0 3px rgba(17,146,119,0.2);
}
.campo-consulta.style-b button {
    background: #fff;
    color: #119277;
    border: 2px solid #119277;
    border-radius: 9999px;
    box-shadow: none;
}
.campo-consulta.style-b button:hover {
    background: #119277;
    color: #fff;
}

/* Opção C: Botão escuro, input suave */
.campo-consulta.style-c input[type="text"] {
    background: #f7fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.campo-consulta.style-c input[type="text"]:focus {
    border-color: #1d2327;
    box-shadow: 0 0 0 3px rgba(29,35,39,0.15);
}
.campo-consulta.style-c button {
    background: #1d2327;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.campo-consulta.style-c button:hover {
    background: #2a3137;
}

/* Opção D: Neumórfico suave */
.campo-consulta.style-d {
    background: #f2f5f9;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 9px 9px 16px #d5d9e0, -9px -9px 16px #ffffff;
}
.campo-consulta.style-d label {
    color: #4b5563;
    font-weight: 600;
}
.campo-consulta.style-d input[type="text"] {
    background: #f2f5f9;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: inset 3px 3px 6px #d5d9e0, inset -3px -3px 6px #ffffff;
}
.campo-consulta.style-d input[type="text"]:focus {
    outline: none;
    box-shadow: inset 2px 2px 4px #cbd0d8, inset -2px -2px 4px #ffffff, 0 0 0 4px rgba(78,92,148,0.15);
}
.campo-consulta.style-d button {
    background: #f2f5f9;
    color: #4e5c94;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 6px 6px 12px #d5d9e0, -6px -6px 12px #ffffff;
}
.campo-consulta.style-d button:hover {
    transform: translateY(-1px);
}
.campo-consulta.style-d button:active {
    box-shadow: inset 3px 3px 6px #cbd0d8, inset -3px -3px 6px #ffffff;
}

/* Opção E: Glassmorphism (vidro fosco) */
.campo-consulta.style-e {
    position: relative;
}
.campo-consulta.style-e label {
    color: #334155;
    font-weight: 600;
}
.campo-consulta.style-e input[type="text"] {
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.5);
    color: #0f172a;
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.campo-consulta.style-e input[type="text"]::placeholder {
    color: rgba(15,23,42,0.6);
}
.campo-consulta.style-e input[type="text"]:focus {
    outline: none;
    border-color: rgba(78,92,148,0.7);
    box-shadow: 0 0 0 4px rgba(78,92,148,0.15);
}
.campo-consulta.style-e button {
    background: rgba(30,41,59,0.7);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 12px;
    padding: 12px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.campo-consulta.style-e button:hover {
    background: rgba(30,41,59,0.82);
}

/* Opção F: Pill combo com foco aprimorado */
.campo-consulta.style-f {
    display: block;
    position: relative;
    margin-top: 4px;
}
.campo-consulta.style-f input[type="text"] {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 9999px 0 0 9999px;
    padding: 12px 16px;
}
.campo-consulta.style-f input[type="text"]:focus {
    border-color: #119277;
    box-shadow: 0 0 0 3px rgba(17,146,119,0.15);
    outline: none;
}
.campo-consulta.style-f button {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #e5e7eb;
    border-radius: 0 9999px 9999px 0;
    padding: 12px 20px;
    background: #119277;
    color: #fff;
    transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.campo-consulta.style-f button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.campo-consulta.style-f button:active {
    transform: scale(0.98);
}
.campo-consulta.style-f:focus-within {
    outline: 4px solid rgba(17,146,119,0.15);
    outline-offset: 4px;
    border-radius: 9999px;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .consulta-lote-container {
        margin: 10px;
        padding: 15px;
    }
    
    .campo-consulta input[type="text"] {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .campo-consulta button {
        width: 100%;
    }
    
    .tabela-lote td {
        padding: 10px;
        font-size: 14px;
    }
    
    .tabela-lote td:first-child {
        width: 40%;
    }
}

/* Estilos Admin */
.card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.card h2 {
    margin-top: 0;
    color: #1d2327;
    border-bottom: 1px solid #c3c4c7;
    padding-bottom: 10px;
}

.form-table th {
    width: 200px;
    padding: 20px 10px 20px 0;
}

.form-table td {
    padding: 20px 0;
}

.regular-text {
    width: 25em;
}

.large-text {
    width: 99%;
}

/* Tabela de lotes no admin */
.wp-list-table {
    margin-top: 10px;
}

.wp-list-table th,
.wp-list-table td {
    padding: 8px 10px;
}

.wp-list-table .button-small {
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.5;
    min-height: 22px;
}

/* Avisos */
.notice {
    border: 1px solid #c3c4c7;
    border-left-width: 4px;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
    margin: 5px 15px 2px;
    padding: 1px 12px;
}

.notice-success {
    border-left-color: #00a32a;
}

.notice-error {
    border-left-color: #d63638;
}

.notice-warning {
    border-left-color: #dba617;
}
