/* Minimalist styles for CNPJ Site Locator */

body {
    background-color: #f8f9fa;
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: 100vh;
}

.container {
    max-width: 900px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #212529;
}

.header p {
    font-size: 1rem;
    color: #6c757d;
}

/* Search Box */
.search-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
}

.search-box .form-control {
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.search-box .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

/* Visual feedback durante requisição htmx no formulário */
.container.htmx-request {
    opacity: 0.7;
    pointer-events: none;
}

.search-box .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 6px;
    padding: 0 2rem;
}

.search-box .btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Full-screen loader overlay */
#full-screen-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms ease-in;
}

/* Mostra durante requisição htmx */
#full-screen-loader.htmx-request {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
}

/* Texto do loader */
.loader-text {
    color: white;
    font-size: 1.25rem;
}

/* Results Container */
.results-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.company-info {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.company-info h4 {
    font-weight: 500;
    color: #212529;
    margin-bottom: 1rem;
}

.company-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Results Table */
.results-table {
    margin-top: 1rem;
}

.results-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 500;
    color: #495057;
    padding: 0.75rem;
}

.results-table tbody td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

.url-link {
    color: #0d6efd;
    text-decoration: none;
    word-break: break-all;
}

.url-link:hover {
    text-decoration: underline;
}

.url-link:visited {
    color: #5a5a5a;
}

/* Legend */
.legend {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

footer a {
    color: #6c757d;
    text-decoration: none;
}

footer a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .search-box {
        padding: 1.5rem;
    }

    .results-container {
        padding: 1.5rem;
    }

    .company-details {
        flex-direction: column;
    }
}