.cnpj-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cnpj-search-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cnpj-search-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: end;
}

@media (max-width: 768px) {
    .search-fields {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 0;
}

.search-input,
.search-field-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.search-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

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

.cnpj-results-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.company-item,
.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.company-item:hover,
.favorite-item:hover {
    background: #f8f9fa;
}

.company-item:last-child,
.favorite-item:last-child {
    border-bottom: none;
}

.company-info h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.company-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.company-details p {
    margin: 0;
    color: #666;
    line-height: 1.4;
}

.company-details strong {
    color: #333;
}

.company-actions {
    margin-left: 20px;
    flex-shrink: 0;
}

.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 28px;
    padding: 5px 10px;
    transition: all 0.3s;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-btn:hover {
    background: #f0f0f0;
}

.favorite-btn .star {
    color: #ccc;
    transition: color 0.3s;
    font-size: 24px;
}

.favorite-btn.favorited .star {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.favorite-btn:hover .star {
    color: #ffed4a;
}

.initial-message,
.loading-message,
.no-results,
.no-favorites {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

.favorites-list {
    min-height: 200px;
}

.cnpj-favorites-container h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
    font-size: 24px;
}

/* Animações */
.company-item,
.favorite-item {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsividade */
@media (max-width: 600px) {
    .company-item,
    .favorite-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .company-actions {
        margin-left: 0;
        margin-top: 15px;
        text-align: center;
    }
    
    .company-details {
        grid-template-columns: 1fr;
    }
}