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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: #f4f7f9;
  color: #2d3748;
  line-height: 1.5;
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

header {
  background: #ffffff;
  color: #2d3748;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

h3,
h2 {
  margin-bottom: 1.5rem;
}

.subtitle {
  color: #718096;
  font-size: 1rem;
}

.nav {
  display: flex;
  background: #f8fafc;
  border-bottom: 1px solid #e9ecef;
  overflow-x: auto;
  padding: 0 1rem;
}

.nav-item {
  padding: 1rem 2rem;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  color: #718096;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #3182ce;
}

.nav-item.active {
  color: #3182ce;
  border-bottom: 2px solid #3182ce;
  background: rgba(102, 126, 234, 0.1);
}

.nav-item-content {
  display: none;
  padding: 2rem;
  animation: fadeIn 0.3s;
}

.nav-item-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

hr {
  margin: 1.5rem 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

input,
select,
textarea {
  padding: 0.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: #f8fafc;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #3182ce;
}

textarea {
  resize: none;
}

.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary {
  background: #3182ce;
  color: white;
}

.btn-primary:hover {
  background: #20609b;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-export {
  align-self: center;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.btn-success {
  background: #38a169;
  color: white;
}

.btn-success:hover {
  background: #328843;
}

.btn-danger {
  color: #dc3545;
  background: #e2e8f0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-danger:hover {
  background: white;
}

.btn-warning {
  color: #212529;
  background: #e2e8f0;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-warning:hover {
  background: white;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-check {
  background: #e2e8f0;
  color: #38a169;
}

.btn-check:hover {
  background: white;
}

.badge {
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success {
  color: #38a169;
}

.badge-warning {
  color: #f69621;
}

.badge-danger {
  color: #dc3545;
}

.badge-add {
  color: #084298;
}

.search-filter {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: #ffffff;
  color: #2d3748;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #3182ce;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 5px 0;
  color: #3182ce;
}

.stat-label {
  opacity: 0.9;
  font-size: 1rem;
  color: #718096;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th {
  background: #f8fafc;
  padding: 0.875rem;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #718096;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 0.875rem;
  border-bottom: 1px solid #e9ecef;
}

tr:hover {
  background: #f1f5f9;
}

.empty-table {
  text-align: center;
  padding: 2.5rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #6c757d;
}

.confirm {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.text-confirm {
  font-size: 1rem;
  color: #328843;
  font-weight: 500;
  align-self: center;
  margin-bottom: 1rem;
}

.danger-zone {
  margin-top: 2rem;
  border: 1px solid #e53e3e;
  padding: 2rem;
  border-radius: 12px;
  background-color: #fff5f5;
}

.danger-zone h3 {
  color: #e53e3e;
}

.danger-zone p {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 1.5rem;
}

.btn-danger-outline {
  background: white;
  color: #e53e3e;
  border: 1px solid #e53e3e;
}

.btn-danger-outline:hover {
  background: #e53e3e;
  color: white;
}

.btn-danger-all {
  background: #e53e3e;
  color: white;
}

.btn-danger-all:hover {
  border: 1px solid white;
  /* font-size: 1.5rem; */
}

/* MEDIA QUERIES */
@media (max-width: 576px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .search-filter {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .empty-table {
    padding: 1.5rem;
    text-align: start;
  }

  h1 {
    font-size: 2rem;
  }

  th,
  td {
    padding: 10px;
    font-size: 0.8rem;
  }
}
