/* ============================================================
   ESTILOS GERAIS
   ============================================================ */

body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

main {
    min-height: calc(100vh - 56px);
    padding-bottom: 30px;
}

.navbar-brand i {
    margin-right: 8px;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    border-radius: 10px;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #e9ecef;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.badge {
    font-weight: 500;
    padding: 5px 12px;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-sm {
    padding: 3px 8px;
}

.alert {
    border: none;
    border-radius: 8px;
}

/* Cards de estatísticas */
.card.text-white .card-title {
    font-size: 2rem;
    font-weight: 700;
}

.card.text-white .card-text {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Formulários */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Tabelas responsivas */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

/* Paginação */
.pagination .page-link {
    border-radius: 6px;
    margin: 0 2px;
}

/* Cores de status */
.bg-pendente {
    background-color: #ffc107;
    color: #212529;
}

.bg-concluido {
    background-color: #28a745;
    color: #fff;
}

.bg-erro {
    background-color: #dc3545;
    color: #fff;
}

/* Ajustes Mobile */
@media (max-width: 768px) {
    .card-body {
        padding: 15px;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* Animação de loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}