.card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  backdrop-filter: blur(14px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      background 0.2s ease,
      border-color 0.2s ease;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255,255,255,0.03);
  color: #dbeafe;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  box-shadow: none;
}

.btn-sm {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.form-label {
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

textarea.form-input {
  min-height: 140px;
  resize: vertical;
}

.form-input:focus {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.form-input::placeholder {
  color: #7f93ab;
}

.admin-textarea {
  min-height: 180px;
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.admin-table thead th {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #9fb4cb;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.admin-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #dbe6f3;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.admin-checkbox-row {
  margin-top: 4px;
}

.admin-checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dbe6f3;
  font-size: 14px;
}

.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.alert-info {
  background: rgba(37, 99, 235, 0.12);
  color: #bfdbfe;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #dbeafe;
  font-size: 14px;
  font-weight: 700;
}

.pagination .is-active {
  background: rgba(37, 99, 235, 0.16);
  color: #ffffff;
}

@media (max-width: 768px) {
  .card {
      padding: 18px;
      border-radius: 20px;
  }

  .btn {
      width: 100%;
  }

  .admin-page-head {
      align-items: stretch;
  }
}

.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: auto;
  backdrop-filter: blur(14px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.28);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.toast--info {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.toast__title {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 900;
}

.toast__text {
  color: #d6e2f0;
  font-size: 13px;
  line-height: 1.55;
}

.btn[disabled],
button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 768px) {
  .toast-container {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}
