/* Estilos gerais */
body {
    background-color: #f8f9fa;
}

/* Estilos para gráficos */
.card canvas {
    max-height: 400px;
    width: 100% !important;
    height: auto !important;
}

/* Container do gráfico de pizza */
#grafico-categorias-container {
    position: relative;
    height: 400px;
    margin: 0 auto;
    padding: 10px;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    #grafico-categorias-container {
        height: 300px;
    }
    
    .card canvas {
        max-height: 300px;
    }
}

/* Navbar */
.navbar {
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    border: none;
    margin-bottom: 1rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.1);
}

/* Tabelas */
.table th {
    border-top: none;
    background-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Botões */
.btn {
    font-weight: 500;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Formulários */
.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.form-label {
    font-weight: 500;
}

/* Alertas */
.alert {
    border: none;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Status badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.badge-success {
    background-color: #198754;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
}

/* Modais */
.modal-header {
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.modal-footer {
    border-top: 1px solid rgba(0,0,0,.1);
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid rgba(0,0,0,.1);
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #0d6efd;
}

.nav-tabs .nav-link.active {
    border: none;
    border-bottom: 2px solid #0d6efd;
    color: #0d6efd;
    font-weight: 500;
}

/* Dropdowns */
.dropdown-menu {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    border: none;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Icons */
.bi {
    margin-right: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar {
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
}
