﻿:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #121828;
    --bg-card: #1a2238;
    --bg-input: #0f172a;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #2d3748;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 30%), radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 30%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 0 30px;
    position: relative;
}

    .header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 4px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        border-radius: 2px;
    }

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 10px;
}

.description {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Navigation Top */
.navigation-top {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .nav-link:hover {
        color: var(--primary);
    }

/* Alert Box Styles */
.alert-box {
    display: none;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 15px 20px;
    margin-bottom: 25px;
    animation: slideDown 0.3s ease-out;
}

    .alert-box.warning {
        background-color: rgba(245, 158, 11, 0.1);
        border: 1px solid rgba(245, 158, 11, 0.3);
        border-left: 4px solid var(--warning);
    }

    .alert-box.info {
        background-color: rgba(6, 182, 212, 0.1);
        border: 1px solid rgba(6, 182, 212, 0.3);
        border-left: 4px solid var(--accent);
    }

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    font-size: 20px;
    color: var(--danger);
}

.alert-box.warning .alert-icon {
    color: var(--warning);
}

.alert-box.info .alert-icon {
    color: var(--accent);
}

.alert-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.alert-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

    .alert-close:hover {
        color: var(--text-primary);
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Card */
.main-card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

    .card-title i {
        color: var(--primary);
    }

/* Search Form */
.search-form {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 20px;
    margin-bottom: 30px;
    align-items: end;
}

@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-control {
    padding: 14px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    height: 52px;
    width: 100%;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 45px;
}

.btn {
    padding: 0 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Info Box */
.info-box {
    background-color: rgba(6, 182, 212, 0.1);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin: 25px 0;
}

    .info-box p {
        color: var(--text-secondary);
        margin: 0;
        line-height: 1.6;
    }

/* Loading State */
.loading-container {
    display: none;
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

    .loading-spinner::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 4px solid rgba(99, 102, 241, 0.2);
        border-top-color: var(--primary);
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Results Container */
.results-container {
    display: none;
    margin-top: 30px;
}

.results-header {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.05));
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 30px;
    border-bottom: 1px solid var(--border);
}

.company-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.results-body {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.info-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 25px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

    .info-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .info-card::after {
        content: 'Clique para copiar';
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 10px;
        font-weight: 600;
        color: var(--primary);
        opacity: 0;
        transition: var(--transition);
    }

    .info-card:hover::after {
        opacity: 1;
    }

.info-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
}

    .info-value.small {
        font-size: 16px;
    }

    .info-value.large {
        font-size: 22px;
        color: var(--accent);
    }

.credential-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.tag-cred {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.tag-no-cred {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.tag-unknown {
    background-color: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

/* Results Footer */
.results-footer {
    padding: 25px 30px;
    border-top: 1px solid var(--border);
    background-color: var(--bg-secondary);
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-actions {
    display: flex;
    gap: 15px;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-secondary:hover {
        background-color: var(--border);
        color: var(--text-primary);
    }

/* Quick States Section */
.quick-states {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.quick-states-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.states-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.state-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

    .state-card:hover {
        background-color: var(--primary);
        transform: translateY(-3px);
        border-color: var(--primary);
    }

.state-abbr {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.state-card:hover .state-abbr {
    color: white;
}

.state-name {
    font-size: 12px;
    color: var(--text-secondary);
}

.state-card:hover .state-name {
    color: rgba(255, 255, 255, 0.9);
}

.state-card img {
    display: block;
    margin: 0 auto 8px auto;
    width: 40px;
    height: auto;
    max-height: 25px;
    object-fit: contain;
    border-radius: 2px;
}

/* SEO Content */
.seo-content {
    margin-top: 60px;
    padding: 40px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.seo-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.seo-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.seo-list {
    color: var(--text-secondary);
    margin-left: 20px;
    margin-bottom: 20px;
    line-height: 1.8;
}

    .seo-list li {
        margin-bottom: 10px;
    }

.features-grid {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-sm);
    margin-top: 25px;
    border: 1px solid var(--border);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.feature {
    padding: 10px;
}

.feature-title {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.site-footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

    .footer-link:hover {
        color: var(--primary);
    }

.footer-disclaimer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

    .footer-disclaimer p {
        color: var(--text-muted);
        font-size: 12px;
    }

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 15px 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s;
    border-left: 4px solid var(--primary);
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

.toast-icon {
    font-size: 20px;
    color: var(--primary);
}

.toast-message {
    font-size: 15px;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .results-body {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .main-card {
        padding: 25px;
    }

    .results-header {
        padding: 25px;
    }

    .results-body {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .company-name {
        font-size: 24px;
    }

    .results-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .seo-content {
        padding: 25px;
    }

    .states-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .state-card img {
        width: 35px;
        max-height: 22px;
    }

    .navigation-top {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 0 20px;
    }

    .logo-text {
        font-size: 26px;
    }

    .main-card {
        padding: 20px;
    }

    .card-title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 16px;
    }

    .description {
        font-size: 14px;
    }
}
