.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #7648c9, #5f36b0);
  color: white;
  box-shadow: 0 10px 24px rgba(118, 72, 201, 0.18);
}

.btn-secondary {
  background: linear-gradient(135deg, #8dd9b1, #2f8f63);
  color: white;
  box-shadow: 0 10px 24px rgba(47, 143, 99, 0.16);
}

.btn-dark {
  background: #111827;
  color: white;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

.error-box,
.success-box {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.error-box {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.success-box {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.table-action-btn {
  padding: 8px 12px;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 14px;
  overflow: hidden;
}

th, td {
  padding: 13px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid #e7eaf3;
}

th {
  background: linear-gradient(135deg, rgba(118,72,201,0.10), rgba(141,217,177,0.14));
  color: #5f36b0;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tbody tr:hover {
  background: #fafcff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(17,24,39,0.20);
}

.modal-header,
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}