/* ===================================================================
   MOIM ADMIN — Warm Hearth Design System
   Aesthetic: Terracotta + Cream + Earthy warmth
   =================================================================== */

/* --- 1. Design Tokens --- */
:root {
  /* Typography */
  --font-display: 'Figtree', 'Pretendard', sans-serif;
  --font-body: 'Pretendard', 'Figtree', -apple-system, sans-serif;

  /* Primary — warm terracotta/coral */
  --color-primary: oklch(0.62 0.12 38);
  --color-primary-soft: oklch(0.93 0.035 38);
  --color-primary-hover: oklch(0.55 0.13 38);
  --color-primary-text: oklch(0.99 0.005 38);

  /* Surfaces — warm cream */
  --color-surface: oklch(0.97 0.006 75);
  --color-card: oklch(1 0 0);
  --color-sidebar-bg: oklch(0.985 0.004 75);
  --color-header-bg: oklch(1 0 0);

  /* Text — warm browns */
  --color-text: oklch(0.24 0.02 55);
  --color-text-secondary: oklch(0.5 0.02 55);
  --color-text-tertiary: oklch(0.62 0.015 55);
  --color-text-placeholder: oklch(0.7 0.01 55);

  /* Borders */
  --color-border: oklch(0.91 0.008 75);
  --color-border-light: oklch(0.94 0.005 75);

  /* Semantic */
  --color-success: oklch(0.6 0.13 155);
  --color-success-soft: oklch(0.93 0.035 155);
  --color-danger: oklch(0.6 0.14 28);
  --color-danger-soft: oklch(0.93 0.035 28);
  --color-warning: oklch(0.72 0.11 75);
  --color-warning-soft: oklch(0.94 0.035 75);
  --color-info: oklch(0.6 0.1 245);
  --color-info-soft: oklch(0.93 0.03 245);

  /* Spacing — 4pt scale */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --sidebar-width: 264px;
  --header-height: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadows — warm tinted */
  --shadow-xs: 0 1px 2px oklch(0.3 0.02 55 / 0.04);
  --shadow-sm: 0 1px 4px oklch(0.3 0.02 55 / 0.06), 0 1px 2px oklch(0.3 0.02 55 / 0.04);
  --shadow-md: 0 4px 12px oklch(0.3 0.02 55 / 0.07), 0 1px 4px oklch(0.3 0.02 55 / 0.04);
  --shadow-lg: 0 8px 24px oklch(0.3 0.02 55 / 0.09), 0 2px 8px oklch(0.3 0.02 55 / 0.04);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
}

/* --- 2. Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-surface);
  line-height: 1.6;
  margin: 0;
}

/* --- 3. Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

/* --- 4. Layout: Header --- */
.admin-header {
  height: var(--header-height);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-header .brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--color-text);
}

.admin-header .brand-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-header .brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.admin-header .brand-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.header-user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.btn-logout {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  font-family: var(--font-body);
}

.btn-logout:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
  background: var(--color-danger-soft);
}

/* --- 5. Layout: Sidebar --- */
.admin-sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - var(--header-height));
  background: var(--color-sidebar-bg);
  border-right: 1px solid var(--color-border);
  position: sticky;
  top: var(--header-height);
  flex-shrink: 0;
  overflow-y: auto;
  padding: var(--space-md) var(--space-sm);
}

.sidebar-section {
  margin-bottom: var(--space-xs);
}

.sidebar-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-md) var(--space-md) var(--space-sm);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 450;
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.nav-item:hover {
  background: oklch(0.94 0.01 55);
  color: var(--color-text);
}

.nav-item.active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: 550;
}

.nav-item i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-toggle .chevron {
  font-size: 0.7rem;
  transition: transform var(--duration-normal) var(--ease-out);
  color: var(--color-text-tertiary);
}

.nav-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.nav-children {
  padding: var(--space-2xs) 0 var(--space-xs) 0;
}

.nav-children .nav-item {
  padding-left: calc(var(--space-md) + 28px);
  font-size: 0.84rem;
}

/* --- 6. Layout: Main Content --- */
.admin-main {
  flex: 1;
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-xl);
  max-width: 100%;
  overflow-x: hidden;
}

.page-header {
  margin-bottom: var(--space-xl);
}

.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* --- 7. Components: Buttons --- */
.btn-moim {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 550;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
}

.btn-moim-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
}

.btn-moim-primary:hover {
  background: var(--color-primary-hover);
  color: var(--color-primary-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-moim-secondary {
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-moim-secondary:hover {
  background: var(--color-surface);
  border-color: oklch(0.85 0.01 55);
}

.btn-moim-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-moim-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 8px 16px;
}

.btn-moim-ghost:hover {
  background: var(--color-primary-soft);
}

/* --- 8. Components: Cards --- */
.moim-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.moim-card:hover {
  box-shadow: var(--shadow-sm);
}

.moim-card-body {
  padding: var(--space-lg);
}

/* --- 9. Components: Tables --- */
.moim-table-wrap {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.moim-table {
  width: 100%;
  border-collapse: collapse;
}

.moim-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  background: oklch(0.98 0.003 75);
  white-space: nowrap;
}

.moim-table tbody td {
  font-size: 0.875rem;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
  vertical-align: middle;
}

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

.moim-table tbody tr {
  transition: background var(--duration-fast) var(--ease-out);
}

.moim-table tbody tr:hover {
  background: oklch(0.98 0.005 55);
}

.table-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) !important;
  color: var(--color-text-tertiary);
}

.table-empty-icon {
  font-size: 2.5rem;
  color: var(--color-border);
  margin-bottom: var(--space-md);
  display: block;
}

.table-empty-text {
  font-size: 0.9rem;
  color: var(--color-text-tertiary);
}

.table-thumbnail {
  width: 40px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.table-title {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* --- 10. Components: Forms --- */
.moim-form-group {
  margin-bottom: var(--space-lg);
}

.moim-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 550;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.moim-input,
.moim-select {
  width: 100%;
  padding: 11px var(--space-md);
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
  outline: none;
  -webkit-appearance: none;
}

.moim-input::placeholder {
  color: var(--color-text-placeholder);
}

.moim-input:focus,
.moim-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(0.62 0.12 38 / 0.1);
}

.moim-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23847560' d='M6 8.5L1 3.5h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.moim-hint {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
}

/* --- 11. Components: Badges --- */
.moim-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.moim-badge-primary {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.moim-badge-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.moim-badge-danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.moim-badge-info {
  background: var(--color-info-soft);
  color: var(--color-info);
}

.moim-badge-warning {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

/* --- 12. Components: Alerts --- */
.moim-alert {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  animation: alertIn var(--duration-normal) var(--ease-out);
}

.moim-alert-success {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.moim-alert-danger {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.moim-alert i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- 13. Components: Status Indicators --- */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.84rem;
}

.status-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.status-dot-success::before {
  background: var(--color-success);
}

.status-dot-danger::before {
  background: var(--color-danger);
}

/* --- 14. Pages: Login --- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 20%, oklch(0.93 0.04 38 / 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, oklch(0.93 0.03 75 / 0.3) 0%, transparent 50%),
    var(--color-surface);
  padding: var(--space-lg);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2xl) var(--space-xl);
  animation: loginIn var(--duration-slow) var(--ease-out);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.login-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.login-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.login-form .moim-form-group {
  margin-bottom: var(--space-md);
}

.login-form .moim-input {
  padding: 13px var(--space-md);
}

.login-btn {
  width: 100%;
  padding: 13px;
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  background: var(--color-primary);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.login-btn:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

/* --- 15. Pages: Dashboard --- */
.dashboard-welcome {
  margin-bottom: var(--space-xl);
}

.dashboard-welcome h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard-welcome p {
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  font-size: 0.95rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.dash-card {
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--color-text);
  transition: all var(--duration-normal) var(--ease-out);
}

.dash-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text);
}

.dash-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dash-card-icon-coral {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.dash-card-icon-green {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.dash-card-icon-blue {
  background: var(--color-info-soft);
  color: var(--color-info);
}

.dash-card-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.dash-card-body p {
  font-size: 0.84rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.dash-card-arrow {
  margin-left: auto;
  color: var(--color-text-tertiary);
  font-size: 1rem;
  align-self: center;
  transition: transform var(--duration-fast) var(--ease-out);
}

.dash-card:hover .dash-card-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* --- 16. Pages: Error --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  padding: var(--space-lg);
}

.error-content {
  text-align: center;
  max-width: 420px;
}

.error-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--color-warning-soft);
  color: var(--color-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-lg);
}

.error-content h2 {
  font-size: 1.4rem;
  margin-bottom: var(--space-sm);
}

.error-content p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

/* --- 17. User Avatar --- */
.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 650;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.user-avatar-coral {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.user-avatar-green {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.user-avatar-blue {
  background: var(--color-info-soft);
  color: var(--color-info);
}

/* --- 18. Animations --- */
@keyframes loginIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes alertIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in {
  animation: fadeInUp var(--duration-normal) var(--ease-out) both;
}

.fade-in-delay-1 { animation-delay: 60ms; }
.fade-in-delay-2 { animation-delay: 120ms; }
.fade-in-delay-3 { animation-delay: 180ms; }

/* --- 19. Responsive --- */
@media (max-width: 768px) {
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    padding: var(--space-md);
  }

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

  .page-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-card {
    padding: var(--space-xl) var(--space-lg);
  }

  .header-user-name {
    display: none;
  }
}

/* --- 20. Bootstrap Overrides --- */
.d-flex {
  display: flex;
}

.flex-grow-1 {
  flex: 1;
}

/* Suppress Bootstrap defaults on elements we restyle */
.admin-header.navbar {
  all: unset;
  height: var(--header-height);
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-sidebar.border-end {
  border-right: 1px solid var(--color-border) !important;
}

/* ===================================================================
   CONTENT LIST — Tab bar, Action bar, Pagination, Checkbox, Delete btn
   =================================================================== */

/* --- Category Tab Bar --- */
.content-tab-bar {
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border-light);
}

.content-tab-nav {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: -2px;
}

.content-tab-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.content-tab-item:hover {
  color: var(--color-text);
  background-color: oklch(0.97 0.006 75 / 0.7);
  text-decoration: none;
}

.content-tab-item.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
  background-color: transparent;
}

/* --- Action Bar (delete btn + save btn) --- */
.content-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  min-height: 36px;
}

.content-action-info {
  display: flex;
  align-items: center;
}

.content-action-buttons {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.selected-count-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* --- Delete Button --- */
.btn-moim-danger {
  background-color: var(--color-danger);
  color: #fff;
  border: none;
  font-weight: 500;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.btn-moim-danger:hover:not(:disabled) {
  background-color: oklch(0.52 0.15 28);
}

.btn-moim-danger:disabled {
  background-color: var(--color-border);
  color: var(--color-text-tertiary);
  cursor: not-allowed;
  opacity: 0.7;
}

/* --- Checkbox --- */
.content-checkbox-input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
  vertical-align: middle;
}

/* --- Pagination --- */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-lg) 0 var(--space-md);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
  box-shadow: var(--shadow-xs);
}

.pagination-btn:hover:not(.disabled) {
  background-color: var(--color-primary-soft);
  color: var(--color-primary);
  border-color: var(--color-primary-soft);
  text-decoration: none;
}

.pagination-btn.disabled {
  color: var(--color-text-placeholder);
  background-color: var(--color-surface);
  border-color: var(--color-border-light);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  padding: 0 var(--space-xs);
}

.pagination-info strong {
  color: var(--color-primary);
  font-weight: 600;
}

.pagination-sep {
  margin: 0 4px;
  color: var(--color-border);
}

@media (max-width: 768px) {
  .content-tab-nav {
    gap: 2px;
  }
  .content-tab-item {
    padding: 8px 12px;
    font-size: 0.8125rem;
  }
  .content-action-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}
