:root {
  --primary-color: #7ccf00;
  --primary-color-hover: #5ea500;
  --secondary-color: #9ae600;
  --tertiary-color: #27272a;

  --background-page: #f4f4f5;
  --background-card: #ffffff;

  --border-color: #e5e5e5;

  --title-color: #09090b;
  --text-color: #18181b;
  --text-muted: #71717a;
  --text-white: #ffffff;

  --font-family: 'Inter', sans-serif;
}

.breadcrumb-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 16px;
  margin-left: 16px;
  margin-top: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background: linear-gradient(135deg, #fafafa 0%, #f4f4f5 50%, #e4e4e7 100%);
  min-height: 100vh;
  color: var(--text-color);
  padding-bottom: 40px;
}

/* Container */
.container-fluid {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header-container {
  margin-bottom: 32px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--title-color);
  margin-top: 16px;
}

/* Cards */
.card {
  background: var(--background-card);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.5);
}

.card-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
}

.card-body {
  padding: 24px;
}

/* Forms */
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.5rem;
}

.form-group {
  padding: 0.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .col-md-6 {
    width: 50%;
  }
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-card);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  font-family: var(--font-family);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(124, 207, 0, 0.15);
}

/* Actions */
.form-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.btn-importar {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 10px 24px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  color: #fff;
  background-color: var(--primary-color);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-importar:hover {
  background-color: var(--primary-color-hover);
  transform: translateY(-1px);
}

/* Table */
.table-custom {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-custom th,
.table-custom td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}

.table-custom th {
  font-weight: 600;
  color: var(--text-muted);
  background-color: #fafafa;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

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

/* Status Badges */
.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status.integrado {
  background-color: rgba(124, 207, 0, 0.1);
  color: #5ea500;
}

.status.aguardando {
  background-color: #fff7ed;
  color: #c2410c;
}

.status.reprovado {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Buttons inside table */
.acoes {
  display: flex;
  gap: 8px;
}

.btn-detalhes,
.btn-download {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  font-family: var(--font-family);
}

.btn-detalhes:hover,
.btn-download:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(124, 207, 0, 0.05);
}

/* Modal overrides if needed */
/* Modal */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5);
  /* Black w/ opacity */
  backdrop-filter: blur(4px);
}

/* Modal Content */
.modal-content {
  background-color: var(--background-card);
  margin: 5% auto;
  /* 15% from the top and centered */
  padding: 32px;
  border: 1px solid var(--border-color);
  width: 80%;
  /* Could be more or less, depending on screen size */
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close Button */
.close {
  color: var(--text-muted);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.close:hover,
.close:focus {
  color: var(--title-color);
  text-decoration: none;
}

.modal-info {
  margin-bottom: 24px;
}

.modal-info p {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-color);
}

.modal-info strong {
  color: var(--title-color);
}

.modal-preview h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--title-color);
}

/* Adjust table in modal */
.modal-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.modal-preview th,
.modal-preview td {
  border: 1px solid var(--border-color);
  padding: 8px;
  text-align: left;
}

.modal-preview th {
  background-color: #f4f4f5;
  font-weight: 600;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  gap: 8px;
}

.pagination-btn {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: var(--background-card);
  color: var(--text-color);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
  font-size: 14px;
  min-width: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(124, 207, 0, 0.05);
}

.pagination-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f4f4f5;
}

.pagination-dots {
  color: var(--text-muted);
  font-weight: bold;
}