.admin-body {
  background-color: #130307;
  background: radial-gradient(circle at 50% 15%, #25070f 0%, #140307 60%, #0d0104 100%);
  color: #ffffff;
  min-height: 100vh;
  padding: 0;
  display: block;
}

.admin-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #130307;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
}

.auth-card {
  background-color: #1b060b;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 380px;
  padding: 32px 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.auth-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 30, 66, 0.12);
  border: 1px solid rgba(255, 30, 66, 0.35);
  color: var(--primary-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-header h2 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.auth-header p {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.form-label {
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.form-hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: -2px;
}

.form-input, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-sm);
  background-color: #120306;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 400;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 0 1px var(--primary-red);
}

.auth-error-msg {
  display: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-red);
  background-color: rgba(255, 30, 66, 0.12);
  border: 1px solid rgba(255, 30, 66, 0.35);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: left;
}

.btn-primary {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-red-hover);
  box-shadow: var(--shadow-button);
}

.btn-secondary {
  padding: 8px 14px;
  background-color: #1b060b;
  color: #ffffff;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: #240a10;
  border-color: #3e121d;
}

.admin-navbar {
  background-color: #1b060b;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  background-color: var(--primary-red);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.brand-title {
  font-size: 14.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.admin-card {
  background-color: #1b060b;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-title-simple {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  border-bottom: 1px solid #2e0d15;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.missions-simple-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.mission-simple-card {
  background-color: #120306;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mission-simple-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mission-type-pill {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-red);
  background-color: rgba(255, 30, 66, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.btn-delete-simple {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-delete-simple:hover {
  color: var(--primary-red);
  background-color: rgba(255, 30, 66, 0.12);
}

.mission-simple-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 540px) {
  .mission-simple-grid {
    grid-template-columns: 1fr;
  }
}

.btn-add-more {
  padding: 10px;
  background-color: #120306;
  color: var(--text-secondary);
  border: 1px dashed #3e121d;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-add-more:hover {
  border-color: var(--primary-red);
  color: var(--primary-red);
  background-color: rgba(255, 30, 66, 0.05);
}

.btn-add-more:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #2e0d15;
}

.result-card-box {
  display: none;
  background-color: #1c050a;
  border: 1.5px solid var(--primary-red);
  border-radius: var(--radius-md);
  padding: 18px;
  flex-direction: column;
  gap: 12px;
}

.result-card-box.show {
  display: flex;
}

.result-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #120306;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.result-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  background: transparent;
}

.btn-copy-main {
  padding: 9px 16px;
  background-color: var(--primary-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-copy-main:hover {
  background-color: var(--primary-red-hover);
}

.btn-copy-main.copied {
  background-color: #10b981;
}

.links-table-wrapper {
  overflow-x: auto;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-sm);
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12.5px;
}

.links-table th {
  background-color: #120306;
  padding: 10px 12px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid #2e0d15;
}

.links-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #2e0d15;
  color: #ffffff;
  font-weight: 400;
  vertical-align: middle;
}

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

.table-slug-badge {
  display: inline-block;
  font-family: monospace;
  font-weight: 600;
  color: var(--primary-red);
  background-color: rgba(255, 30, 66, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
}

.table-views-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.table-views-badge svg {
  color: var(--primary-red);
  display: inline-block;
  vertical-align: middle;
}

.btn-table-action {
  background: none;
  border: 1px solid #2e0d15;
  border-radius: var(--radius-sm);
  padding: 5px;
  cursor: pointer;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-table-action:hover {
  color: var(--primary-red);
  border-color: var(--primary-red);
  background-color: rgba(255, 30, 66, 0.1);
}

.empty-state {
  text-align: center;
  padding: 26px 10px;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* App Notice Switch & Badges */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2e0d15;
  border: 1px solid #44141f;
  border-radius: 24px;
  box-shadow: none !important;
  filter: none !important;
  transition: var(--transition);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: none !important;
  filter: none !important;
  transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-red);
  border-color: var(--primary-red-hover);
  box-shadow: none !important;
  filter: none !important;
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
  box-shadow: none !important;
}

.notice-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.notice-badge.active {
  background-color: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.notice-badge.inactive {
  background-color: rgba(125, 77, 87, 0.15);
  color: var(--text-secondary);
  border: 1px solid #2e0d15;
}

