








.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: var(--fw-medium);
  line-height: 1;
  height: 44px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}


.btn-primary {
  background-color: var(--teal-primary);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background-color: var(--teal-dark);
  box-shadow: var(--shadow-teal);
  transform: scale(1.01);
  text-decoration: none;
}
.btn-primary:active { transform: scale(0.97); }


.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--teal-primary);
  color: var(--teal-primary);
}
.btn-secondary:hover {
  background-color: var(--teal-light);
  transform: scale(1.01);
  text-decoration: none;
}
.btn-secondary:active { transform: scale(0.97); }


.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-default);
  color: #6B6560;
}
.btn-ghost:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-muted);
  text-decoration: none;
}


.btn-danger {
  background-color: var(--color-error);
  color: white;
}
.btn-danger:hover {
  background-color: #8B2020;
  transform: scale(1.01);
  text-decoration: none;
}


.btn-sm { height: 36px; font-size: 13px; padding: 0 var(--space-4); }
.btn-lg { height: 52px; font-size: 16px; padding: 0 var(--space-8); }
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}
.btn-icon-sm { width: 36px; height: 36px; }


.btn[disabled], .btn.loading {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}





.card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition:
    border-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.card-hover:hover {
  border-color: var(--teal-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-flat {
  background: var(--bg-surface);
  border-color: transparent;
}





.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1;
  white-space: nowrap;
}


.badge-category {
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
}


.badge-tayang     { background: var(--badge-tayang-bg);   color: var(--badge-tayang-text); }
.badge-diproses   { background: var(--badge-diproses-bg); color: var(--badge-diproses-text); }
.badge-dikirim    { background: var(--badge-dikirim-bg);  color: var(--badge-dikirim-text); }
.badge-habis      { background: var(--badge-habis-bg);    color: var(--badge-habis-text); }
.badge-disembunyikan { background: var(--badge-hidden-bg); color: var(--badge-hidden-text); }





.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.form-label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: #fff;
  transition:
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  height: auto;
  min-height: 120px;
  padding: var(--space-3) var(--space-4);
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239C958E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-input.error,
.form-textarea.error { border-color: var(--color-error); }
.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: 2px;
}

.form-helper {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


.form-input-custom {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 14.5px;
  background: var(--bg-page);
  color: var(--text-primary);
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.form-input-custom:focus {
  border-color: var(--teal-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(4, 23, 92, 0.1);
}

.form-input-custom:disabled {
  background: var(--bg-neutral);
  cursor: not-allowed;
  color: var(--text-muted);
}

textarea.form-input-custom {
  height: auto;
  resize: vertical;
}

select.form-input-custom {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239C958E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}


.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap .search-icon {
  position: absolute;
  left: var(--space-4);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrap .form-input {
  padding-left: var(--space-10);
}





.rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--amber-primary);
  font-size: 14px;
}

.rating-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-left: 4px;
}





.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  padding: var(--space-4);
  backdrop-filter: blur(2px);
}

.modal-overlay.hidden { display: none; }

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-default);
}

.modal-title {
  font-size: 18px;
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.modal-close {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-base), color var(--dur-base);
}
.modal-close:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.modal-body { padding: var(--space-6); }
.modal-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}





.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(4, 23, 92, 0.04);
  font-size: 13.5px;
  min-width: 340px;
  max-width: 420px;
  pointer-events: all;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.toast:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  padding-right: 20px;
}

.toast-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-navy);
}

.toast-message {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.toast-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
}


.toast-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.toast-close-btn:hover {
  background: #f7fafc;
  color: #4a5568;
}


.toast-success {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(16, 185, 129, 0.15);
  background: linear-gradient(135deg, #ffffff 70%, #f0fdf4 100%);
}
.toast-success .toast-icon-wrapper {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.toast-error {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(239, 68, 68, 0.15);
  background: linear-gradient(135deg, #ffffff 70%, #fef2f2 100%);
}
.toast-error .toast-icon-wrapper {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

.toast-warning {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(245, 158, 11, 0.15);
  background: linear-gradient(135deg, #ffffff 70%, #fffbeb 100%);
}
.toast-warning .toast-icon-wrapper {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.toast-default {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.01), 0 0 0 1px rgba(29, 158, 117, 0.15);
  background: linear-gradient(135deg, #ffffff 70%, #f0fdfa 100%);
}
.toast-default .toast-icon-wrapper {
  background: rgba(29, 158, 117, 0.08);
  color: var(--teal-primary);
}


.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left center;
  animation-play-state: running;
  opacity: 0.6;
}

.toast-success .toast-progress { background: #10b981; }
.toast-error .toast-progress { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-default .toast-progress { background: var(--teal-primary); }





.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  gap: var(--space-4);
}

.empty-state-icon {
  width: 64px; height: 64px;
  background: var(--teal-light);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-primary);
}

.empty-state h3 {
  font-size: var(--text-lg);
  font-weight: var(--fw-medium);
}

.empty-state p {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 320px;
}





.metric-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.metric-card-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}

.metric-card-value {
  font-size: 28px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-top: var(--space-2);
  line-height: 1;
}

.metric-card-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  margin-top: var(--space-2);
}

.trend-up   { color: var(--teal-primary); }
.trend-down { color: var(--color-error); }





.tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border-default);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur-base), border-color var(--dur-base);
  margin-bottom: -1px;
  user-select: none;
}

.tab-item:hover { color: var(--text-body); }

.tab-item.active {
  color: var(--teal-primary);
  border-bottom-color: var(--teal-primary);
}

.tab-count {
  background: var(--bg-neutral);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  padding: 2px 8px;
  font-weight: var(--fw-semibold);
}

.tab-item.active .tab-count {
  background: var(--teal-light);
  color: var(--teal-primary);
}





.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-default);
  color: var(--text-body);
  vertical-align: middle;
}

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

.data-table tr:hover td { background: var(--bg-page); }


.table-thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  flex-shrink: 0;
}





.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-neutral);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  overflow: hidden;
}

.avatar-sm  { width: 32px; height: 32px; font-size: 13px; }
.avatar-md  { width: 44px; height: 44px; font-size: 15px; }
.avatar-lg  { width: 64px; height: 64px; font-size: 20px; }
.avatar-xl  { width: 96px; height: 96px; font-size: 28px; }





.progress-bar {
  height: 8px;
  background: var(--bg-neutral);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--teal-primary);
  border-radius: var(--radius-full);
  transition: width 600ms var(--ease-ui);
}





.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--dur-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--dur-base) var(--ease-ui);
  box-shadow: var(--shadow-xs);
}

.toggle input:checked + .toggle-slider {
  background: var(--teal-primary);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}





.upload-zone {
  border: 2px dashed var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--dur-base), background var(--dur-base);
  color: var(--text-muted);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--teal-primary);
  background: var(--teal-light);
}





.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text-body);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--dur-base), border-color var(--dur-base), color var(--dur-base);
}

.page-btn:hover {
  background: var(--bg-surface);
  border-color: var(--teal-primary);
}

.page-btn.active {
  background: var(--teal-primary);
  border-color: var(--teal-primary);
  color: white;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}





.side-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,22,0.4);
  z-index: var(--z-overlay);
  backdrop-filter: blur(1px);
}

.side-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: #fff;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}

.side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
}

.side-panel-footer {
  border-top: 1px solid var(--border-default);
  padding: var(--space-4) var(--space-6);
  flex-shrink: 0;
  display: flex;
  gap: var(--space-3);
}

.hidden { display: none !important; }


.quick-nav-section {
  background: #fff;
  padding: 28px 0;
  border-bottom: 1px solid rgba(4, 23, 92, 0.05);
}
.quick-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.quick-nav-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-normal, 0.25s ease);
}
.quick-nav-item:hover {
  transform: translateY(-4px);
}
.quick-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-normal, 0.25s ease);
  color: #fff;
}
.quick-nav-item:hover .quick-icon-circle {
  box-shadow: 0 12px 28px rgba(4, 23, 92, 0.15);
}
.quick-icon-circle svg {
  width: 22px;
  height: 22px;
}
.quick-icon-circle.bg-navy { background: linear-gradient(135deg, #04175C 0%, #030f3d 100%); }
.quick-icon-circle.bg-gold { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.quick-icon-circle.bg-teal { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
.quick-icon-circle.bg-orange { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }
.quick-icon-circle.bg-blue { background: linear-gradient(135deg, #04175C 0%, #030f3d 100%); }
.quick-icon-circle.bg-purple { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.quick-nav-item span {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-navy, #04175C);
  transition: color var(--transition-fast, 0.15s ease);
}
.quick-nav-item:hover span {
  color: var(--accent-gold, #f59e0b);
}

