:root {
    --seed-primary: #343a40;
    --seed-secondary: #26282a;
    --primary-color: #007bff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

.card-body, .card-footer {
    background-color: #fff;
}

.card-title {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.5;
    color: #32325d;
}

.btn-custom {
    color: white;
    background-color: var(--seed-primary) !important;
    border-color: var(--seed-primary) !important;
}

.btn-custom:hover {
    color: white;
    background-color: var(--seed-secondary) !important;
    border-color: var(--seed-secondary) !important;
}

a {
    color: var(--seed-primary);
}

a:hover,
a:active,
a:focus {
    outline: none;
    text-decoration: none;
    color: var(--seed-secondary);
}

/* Estilos específicos para a página de empresas */
.company-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    border-radius: 0.75rem;
    overflow: hidden;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.company-card.active {
    border-left-color: var(--success-color);
}

.company-card.inactive {
    border-left-color: var(--danger-color);
}

.company-card.featured {
    border-left-color: var(--warning-color);
}

.company-info h6 {
    color: #495057;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.company-info p {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.badge-custom {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
}

.btn-action {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border-width: 1px;
}

.btn-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.stats-card {
    transition: transform 0.2s ease;
    border-radius: 0.75rem;
    overflow: hidden;
}

.stats-card:hover {
    transform: scale(1.02);
}

.form-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.g-0 {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Melhorias nos filtros */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem;
}

.filter-section .form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.filter-section .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Melhorias nos cards de estatísticas */
.stats-card .card-body {
    padding: 1.5rem;
}

.stats-card h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.stats-card i {
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
    }
    
    .company-card .row {
        flex-direction: column;
    }
    
    .company-card .col-lg-4 {
        margin-top: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .filter-section .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .company-info h6 {
        font-size: 0.8rem;
    }
    
    .company-info p {
        font-size: 0.8rem;
    }
    
    .btn-action {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-card {
    animation: fadeInUp 0.6s ease-out;
}

.company-card:nth-child(1) { animation-delay: 0.1s; }
.company-card:nth-child(2) { animation-delay: 0.2s; }
.company-card:nth-child(3) { animation-delay: 0.3s; }
.company-card:nth-child(4) { animation-delay: 0.4s; }
.company-card:nth-child(5) { animation-delay: 0.5s; }

/* Melhorias nos modais */
.modal-content {
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.75rem 0.75rem 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Melhorias na paginação */
.pagination {
    justify-content: center;
}

.page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
