/* Estilos gerais */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
}

.container {
  max-width: 1200px;
}

/* Cabeçalhos */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: #333;
}

/* Cards */
.card {
  border-radius: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  padding: 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

.card-body {
  padding: 1.25rem;
}

.card-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1.25rem;
}

/* Botões */
.btn {
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(114, 137, 218, 0.25);
}

.btn-primary {
  background-color: #7289da;
  border-color: #7289da;
}

.btn-primary:hover {
  background-color: #5e78d5;
  border-color: #5e78d5;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  color: #7289da;
  border-color: #7289da;
}

.btn-outline-primary:hover {
  background-color: #7289da;
  border-color: #7289da;
  color: #fff;
}

.btn-secondary {
  background-color: #03dac6;
  border-color: #03dac6;
}

.btn-secondary:hover {
  background-color: #00b3a4;
  border-color: #00b3a4;
}

.btn-success {
  background-color: #2ecc71;
  border-color: #2ecc71;
}

.btn-success:hover {
  background-color: #27ae60;
  border-color: #27ae60;
}

.btn-danger {
  background-color: #e74c3c;
  border-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
}

.btn-warning {
  background-color: #f39c12;
  border-color: #f39c12;
}

.btn-warning:hover {
  background-color: #d35400;
  border-color: #d35400;
}

.btn-info {
  background-color: #3498db;
  border-color: #3498db;
}

.btn-info:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

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

.table th {
  font-weight: 600;
  border-top: none;
  background-color: #f8f9fa;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #f9fafb;
}

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

/* Badges */
.badge {
  padding: 0.35em 0.65em;
  font-weight: 500;
  border-radius: 0.25rem;
}

.bg-success {
  background-color: #2ecc71 !important;
}

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

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

.bg-info {
  background-color: #3498db !important;
}

.bg-primary {
  background-color: #7289da !important;
}

.bg-secondary {
  background-color: #03dac6 !important;
}

/* Formulários */
.form-control {
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease-in-out;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(114, 137, 218, 0.25);
  border-color: #7289da;
}

.form-select {
  border-radius: 0.375rem;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease-in-out;
}

.form-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(114, 137, 218, 0.25);
  border-color: #7289da;
}

.input-group-text {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

/* Alertas */
.alert {
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  border-color: #2ecc71;
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-color: #e74c3c;
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  color: #f39c12;
  border-color: #f39c12;
}

.alert-info {
  background-color: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border-color: #3498db;
}

/* Navegação */
.navbar {
  padding: 0.75rem 1rem;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  color: #333;
}

.nav-tabs {
  border-bottom: 1px solid #e5e7eb;
}

.nav-tabs .nav-link {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
  padding: 0.5rem 1rem;
  color: #6b7280;
  border: 1px solid transparent;
}

.nav-tabs .nav-link:hover {
  color: #333;
  border-color: #e5e7eb #e5e7eb #e5e7eb;
}

.nav-tabs .nav-link.active {
  color: #7289da;
  background-color: #fff;
  border-color: #e5e7eb #e5e7eb #fff;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 1.5rem 0;
  background-color: #f8f9fa;
  border-top: 1px solid #e5e7eb;
}

/* Utilitários */
.font-weight-bold {
  font-weight: 600 !important;
}

.text-primary {
  color: #7289da !important;
}

.text-secondary {
  color: #03dac6 !important;
}

.text-success {
  color: #2ecc71 !important;
}

.text-danger {
  color: #e74c3c !important;
}

.text-warning {
  color: #f39c12 !important;
}

.text-info {
  color: #3498db !important;
}

.text-muted {
  color: #6b7280 !important;
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Correção para dropdown de ações */
.dropdown-menu {
  min-width: 10rem;
  max-height: none;
  overflow: visible;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 0.5rem 1rem;
  color: #333;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f3f4f6;
  color: #7289da;
}

.dropdown-item.active {
  background-color: #7289da;
  color: #fff;
}

.table .dropdown {
  position: static;
}

.table .dropdown-menu {
  position: absolute;
  z-index: 1000;
}

/* Modais */
.modal-content {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 1rem;
}

.modal-title {
  font-weight: 600;
}

/* Paginação */
.pagination {
  margin-bottom: 0;
}

.page-link {
  color: #7289da;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
}

.page-link:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #5e78d5;
}

.page-item.active .page-link {
  background-color: #7289da;
  border-color: #7289da;
}

.page-item.disabled .page-link {
  color: #9ca3af;
}

/* Tooltips e Popovers */
.tooltip {
  font-size: 0.875rem;
}

.popover {
  border-radius: 0.375rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.popover-header {
  font-weight: 600;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

/* Acordeões */
.accordion-button {
  font-weight: 500;
  padding: 1rem;
  background-color: #fff;
}

.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #7289da;
}

.accordion-item {
  border: 1px solid #e5e7eb;
}

/* Listas */
.list-group-item {
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1.25rem;
}

.list-group-item.active {
  background-color: #7289da;
  border-color: #7289da;
}

/* Código e pré-formatado */
pre {
  background-color: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  padding: 1rem;
}

code {
  color: #7289da;
  background-color: rgba(114, 137, 218, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
