:root {
  --primary-color: #5c7cfa;
  --secondary-color: #748ffc;
  --success-color: #69db7c;
  --warning-color: #ffd43b;
  --danger-color: #ff6b6b;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --gray-color: #adb5bd;
  --border-radius: 10px;
  --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 70px;
  background-color: var(--light-color);
  color: var(--dark-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary-color);
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

/* Cards e componentes */
.card {
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
  font-weight: 500;
  border-top-left-radius: var(--border-radius) !important;
  border-top-right-radius: var(--border-radius) !important;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 1.25rem;
}

.card-body {
  padding: 1.5rem;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.bg-success {
  background-color: var(--success-color) !important;
}

.bg-warning {
  background-color: var(--warning-color) !important;
}

.bg-danger {
  background-color: var(--danger-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

/* Botões */
.btn {
  border-radius: 5px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-danger {
  background-color: var(--danger-color);
  border-color: var(--danger-color);
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
  border-radius: 50rem;
}

/* Tabelas */
.table th {
  background-color: rgba(0, 0, 0, 0.02);
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: rgba(92, 124, 250, 0.05);
}

/* Estilo personalizado para status de pagamento */
.status-aprovado {
  color: var(--success-color);
  font-weight: bold;
}

.status-pendente {
  color: var(--warning-color);
  font-weight: bold;
}

/* Formulários */
.form-control {
  border-radius: 5px;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
}

.form-control-lg {
  font-size: 1.1rem;
  padding: 0.75rem 1rem;
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Alertas */
.alert {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* List groups */
.list-group-item {
  border-left: none;
  border-right: none;
  padding: 1rem 1.25rem;
  transition: var(--transition);
}

.list-group-item:first-child {
  border-top: none;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item:hover {
  background-color: rgba(92, 124, 250, 0.05);
}

/* Responsividade para celular */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .card {
    margin-left: 0;
    margin-right: 0;
  }

  .card-body {
    padding: 1.25rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .btn-group .btn,
  .d-flex .btn,
  .d-flex-center .btn {
    width: auto;
    margin-bottom: 0;
  }

  .table-responsive {
    border: none;
  }

  h1,
  .h1 {
    font-size: 1.75rem;
  }

  h2,
  .h2 {
    font-size: 1.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .footer {
    line-height: 1.5;
    padding: 15px 0;
  }
}

/* Centralização de conteúdo */
.text-center-mobile {
  text-align: center;
}

@media (max-width: 576px) {
  .text-center-sm {
    text-align: center !important;
  }

  .d-flex-sm-column {
    flex-direction: column !important;
  }
}

.d-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Espaçamento */
.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.gap-5 {
  gap: 3rem;
}

/* Formulário de busca por celular */
.search-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.search-result {
  max-width: 800px;
  margin: 20px auto;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.65em;
  font-size: 0.85em;
  font-weight: 500;
  border-radius: 50rem;
}

.status-badge-success {
  background-color: rgba(105, 219, 124, 0.2);
  color: #2b9a3e;
}

.status-badge-warning {
  background-color: rgba(255, 212, 59, 0.2);
  color: #a17d0a;
}

/* Upload de arquivos */
.file-upload-area {
  transition: var(--transition);
}

/* Melhorias para experiência mobile */
.touch-active {
  transform: scale(0.98);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15) !important;
}

.input-focused {
  box-shadow: 0 5px 15px rgba(92, 124, 250, 0.15) !important;
}

.very-small-device h1,
.very-small-device .h1 {
  font-size: 1.5rem;
}

.very-small-device h2,
.very-small-device .h2 {
  font-size: 1.3rem;
}

.very-small-device .lead {
  font-size: 1rem;
}

.very-small-device .display-4 {
  font-size: 1.75rem;
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Melhorias para acessibilidade */
.btn:focus,
.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(92, 124, 250, 0.25);
}

/* Melhorias para telas muito grandes */
@media (min-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}

/* Melhorias para telas muito pequenas */
@media (max-width: 320px) {
  .card-body {
    padding: 1rem;
  }

  .btn {
    padding: 0.4rem 0.75rem;
  }

  .form-control-lg {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
  }
}