/* CNAE Consulta Plugin Styles */

#cnae-consulta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cnae-consulta-header h3 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.cnae-consulta-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.cnae-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#cnae-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#cnae-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

#cnae-search-btn {
    padding: 12px 24px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#cnae-search-btn:hover {
    background: #005a87;
}

.cnae-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cnae-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.cnae-filters input[type="radio"] {
    margin: 0;
}

#cnae-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

#cnae-loading p {
    margin: 0;
    font-size: 16px;
}

.cnae-results-header {
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #e9ecef;
}

.cnae-results-header p {
    margin: 0;
    color: #555;
    font-weight: 500;
}

.cnae-results-list {
    display: grid;
    gap: 15px;
}

.cnae-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.cnae-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007cba;
}

.cnae-code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 8px;
}

.cnae-description {
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cnae-inscription {
    display: flex;
    justify-content: flex-end;
}

.cnae-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cnae-badge-sim {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cnae-badge-nao {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cnae-no-results,
.cnae-error {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.cnae-no-results p,
.cnae-error p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.cnae-error {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.cnae-error p {
    color: #721c24;
}

.cnae-info {
    text-align: center;
    padding: 40px;
    background: #e7f3ff;
    border-radius: 8px;
    border: 1px solid #b8daff;
}

.cnae-info p {
    margin: 0;
    color: #004085;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 768px) {
    #cnae-consulta-container {
        padding: 15px;
    }
    
    .cnae-search-box {
        flex-direction: column;
    }
    
    .cnae-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .cnae-consulta-header h3 {
        font-size: 20px;
    }
    
    .cnae-item {
        padding: 15px;
    }
    
    .cnae-code {
        font-size: 16px;
    }
    
    .cnae-description {
        font-size: 14px;
    }
}

