.card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.88));
  border-bottom: 1px solid var(--gray-150);
  font-weight: 700;
  font-size: 15px;
  color: var(--gray-900);
}

.card-body {
  padding: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.btn-primary:hover {
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.btn-success {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success-600);
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.btn-success:hover {
  color: var(--success-600);
  background: rgba(22, 163, 74, 0.16);
}

.btn-warning {
  background: rgba(217, 119, 6, 0.12);
  color: var(--warning-600);
  border: 1px solid rgba(217, 119, 6, 0.18);
}

.btn-warning:hover {
  color: var(--warning-600);
  background: rgba(217, 119, 6, 0.16);
}

.btn-danger {
  background: rgba(220, 38, 38, 0.12);
  color: var(--error-600);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.btn-danger:hover {
  color: var(--error-600);
  background: rgba(220, 38, 38, 0.16);
}

.btn-outline-primary,
.btn-info {
  background: rgba(14, 165, 233, 0.1);
  color: var(--info-600);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

.btn-outline-primary:hover,
.btn-info:hover {
  background: rgba(14, 165, 233, 0.16);
  color: var(--info-600);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 14px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: var(--gray-50);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table thead th:first-child {
  border-top-left-radius: 12px;
}

.table thead th:last-child {
  border-top-right-radius: 12px;
}

.table tbody td {
  padding: 16px;
  font-size: 14px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.66);
}

.table tbody tr:hover td {
  background: rgba(248, 250, 252, 0.92);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1.4;
}

.bg-success {
  background: rgba(22, 163, 74, 0.12) !important;
  color: #166534 !important;
}

.bg-warning {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #92400e !important;
}

.bg-danger {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #991b1b !important;
}

.bg-secondary {
  background: var(--gray-100) !important;
  color: var(--gray-600) !important;
}

.bg-info {
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0c4a6e !important;
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--gray-300);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-800);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group {
  margin-bottom: 16px;
}

.form-text {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

.action-menu {
  position: relative;
  display: inline-block;
  z-index: 20;
}

.action-menu-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.action-menu-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.action-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  min-width: 150px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
  overflow: hidden;
  max-height: min(280px, calc(100vh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.action-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.action-menu-portal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 3000;
  visibility: hidden;
  pointer-events: auto;
}

.action-menu-portal.show {
  visibility: visible;
}

.action-menu-portal .action-dropdown {
  position: relative;
  right: auto;
  top: auto;
  transform: none;
}

.action-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--gray-700);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.action-dropdown-item:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.action-dropdown-item.danger {
  color: var(--error-600);
}

.action-dropdown-item.danger:hover {
  background: #fee2e2;
}

.action-dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary-color);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--gray-500);
}
