/* Estilos personalizados para o NotaFácil */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge {
    font-weight: 500;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.text-primary {
    color: #007bff !important;
}

.bg-primary {
    background-color: #007bff !important;
}

/* Loading spinner */
.loading {
    display: none;
}

.loading.show {
    display: inline-block;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Estilo para campos obrigatórios */
.required::after {
    content: " *";
    color: #dc3545;
}

/* Melhorias visuais */
.card-header {
    background-color: rgba(0, 123, 255, 0.1);
    border-bottom: 1px solid rgba(0, 123, 255, 0.2);
}

.list-group-numbered > li::before {
    font-weight: bold;
    color: #007bff;
}

/* Footer fixo */
footer {
    margin-top: auto;
}

html, body {
    height: 100%;
}

#root {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Estilos específicos para limites MEI */
.progress {
    background-color: #e9ecef;
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

.limite-card {
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.limite-card.warning {
    border-left-color: #ffc107;
}

.limite-card.danger {
    border-left-color: #dc3545;
}

.limite-card.success {
    border-left-color: #28a745;
}

/* Badges personalizados para status */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
}

/* Alertas de limite */
.alert {
    border-left: 4px solid;
}

.alert-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: #d1ecf1;
}

.alert-success {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.alert-danger {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

/* Melhoria visual para números grandes */
.valor-destaque {
    font-size: 1.1em;
    font-weight: 600;
}

/* Animação para barras de progresso */
@keyframes progressAnimation {
    0% { width: 0%; }
    100% { width: var(--progress-width); }
}

.progress-bar.animated {
    animation: progressAnimation 1s ease-out;
}