/* assets/style.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

/* Header */

.site-header {
    background: #020617;
    border-bottom: 1px solid #1f2937;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.site-header .subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Layout */

.container {
    max-width: 1100px;
    margin: 1.5rem auto 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters-card,
.results-card {
    background: #020617;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
}

.filters-card h2,
.results-card h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

/* Formulário */

.form-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 0.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

label {
    font-size: 0.85rem;
    color: #9ca3af;
}

input,
select {
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    border: 1px solid #374151;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
}

input:focus,
select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5);
}

.form-actions {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Botões */

.btn-primary,
.btn-secondary {
    padding: 0.5rem 0.9rem;
    border-radius: 0.5rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-primary {
    background: #2563eb;
    color: #f9fafb;
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border: 1px solid #374151;
}

.btn-secondary:hover {
    background: #020617;
    box-shadow: 0 0 0 1px rgba(55, 65, 81, 0.7);
    transform: translateY(-1px);
}

/* Resultados */

.results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.results-count {
    font-size: 0.85rem;
    color: #9ca3af;
}

.loading {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #d1d5db;
}

.table-wrapper {
    margin-top: 0.75rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

thead {
    background: #020617;
}

th,
td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #1f2937;
    text-align: left;
}

th {
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
}

tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.7);
}

tbody tr:hover {
    background: rgba(37, 99, 235, 0.2);
}

.hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsivo */

@media (max-width: 640px) {
    .site-header h1 {
        font-size: 1.25rem;
    }
}