/* Estilos gerais */
body {
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

.nav-link {
  font-weight: 500;
}

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

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.card-body {
  padding: 1rem;
}

/* Formulários */
.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
  background-color: #f8f9fa;
  border-radius: 5px;
}

/* Botões */
.btn {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.btn i {
  margin-right: 0.5rem;
}

.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

/* Tabelas */
.table {
  margin-bottom: 0;
}

.table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: bold;
}

.table td {
  vertical-align: middle;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* DataTables */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 5px;
  padding: 5px 30px 5px 10px;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 5px;
  padding: 5px 10px;
  margin-left: 5px;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 15px;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 5px;
  margin: 0 2px;
  padding: 5px 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
  color: #fff !important;
}

/* Loading */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading.active {
  display: flex;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toast.bg-success {
  background-color: #198754 !important;
}

.toast.bg-danger {
  background-color: #dc3545 !important;
}

.toast.bg-warning {
  background-color: #ffc107 !important;
}

.toast.bg-info {
  background-color: #0dcaf0 !important;
}

/* Gráficos */
.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
  .card-body {
    padding: 0.75rem;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .text-end {
    text-align: center !important;
  }
}

@media print {
  .navbar,
  .card-header,
  .btn,
  .loading,
  .toast-container {
    display: none !important;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #dee2e6;
  }
  
  .card-body {
    padding: 0;
  }
  
  .table th {
    background-color: #fff !important;
    border-bottom: 2px solid #000;
  }
  
  .chart-container {
    page-break-inside: avoid;
  }
} 