:root {
  --border-hi: rgba(255,255,255,0.14);
  --accent: #28d940;
  --warn: #ffb020;
  --muted: #5a5f72;
  --muted2: #8890a4;
}

html, body {
  height: 100vh;
  margin: 0;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top center, #1c1c21 0%, #09090b 100%);
  /* color: white; */
}

p {
  font-size: 15px;
}

/* .sidebar::-webkit-scrollbar {
  width: 5px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
} */

/* body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f9;
} */

/* LOGIN */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top center, #1c1c21 0%, #09090b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-box {
  background: #111114;
  color: white;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-box input {
  padding: 10px;
  /* border: 1px solid #ccc; */
  background: #232329;
  color: #cbd5e1;
}

/* .login-box button {
  padding: 10px;
  background: #2ecc71;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
} */

.error-msg {
  color: red;
  font-size: 13px;
}

/* LAYOUT */
.layout {
  display: flex;
  margin-top: 60px;
  /* height: 100vh; */
  height: calc(100vh - 60px);
  overflow: hidden;
}

/* TOP BAR */
.topbar {
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;

  background: #111114;
  color: white;

  border-bottom: 1px solid #2a2a2f;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* SIDEBAR */
 .sidebar {
  width: 200px;
  /* height: calc(100vh - 60px); */
  height: 100%;
  background: #1b1b20;
  color: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  /* position: fixed; */
  top: 60px;
  /* overflow-y: auto; */
  box-sizing: border-box;
}

.logo {
  margin-bottom: 20px;
  font-size: 20px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.nav-item {
  text-decoration: none;
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 6px;
  transition: 0.2s;
}

.nav-item:hover {
    border-left: 3px solid #5cf67d;
    color: white;
}

/* ACTIVE STATE */
.nav-item.active {
  background: linear-gradient(135deg, #5cf664 10%, #28d940 100%);
  transition: transform 0.2s;
  color: rgb(0, 0, 0);
}


/* PROFILE */
.admin-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  max-width: 200px;
}

.admin-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.admin-name {
  font-weight: bold;
  font-size: 12px;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.admin-role {
  font-size: 12px;
  opacity: 0.7;
  text-transform: capitalize;
}

/* MENU */
.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.menu button {
  background: #1f2937;
  color: white;
  border: none;
  padding: 10px;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
}

.menu button:hover {
  background: #374151;
}

/* MAINTENANCE */
.maintenance-box {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #374151;
}

.maintenance-box h4 {
  margin: 0 0 10px 0;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-hi);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted2);
  transition: all 0.3s;
}

.status-pill.live .dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.status-pill.maintenance .dot { background: var(--warn); box-shadow: 0 0 6px var(--warn); }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* TOGGLE GROUP */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 15px;
}

.toggle-label {
  font-size: 12px;
  color: #aaa;
}

/* SWITCH */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

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

/* SLIDER */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #444;
  border-radius: 50px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

/* ON STATE */
.switch input:checked + .slider {
  background-color: #ffb85c;
}

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

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  font-size: 12px;
  color: white; 
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease;
  max-width: 280px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast.success { border-color: rgba(0, 255, 21, 0.25); }
.toast.success .toast-dot { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.toast.error { border-color: rgba(255,59,92,0.25); }
.toast.error .toast-dot { background: var(--danger); }
.toast.warn { border-color: rgba(255,176,32,0.25); }
.toast.warn .toast-dot { background: var(--warn); }

.toast-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* CONTENT */
.content {
  flex: 1;
  /* height: calc(100vh - 60px); */
  height: 100%;
  overflow-y: auto;
  /* background: radial-gradient(circle at top center, #1c1c21 0%, #09090b 100%); */
  color: white;
  padding: 20px;
  box-sizing: border-box;
}
 /* .content {
  flex: 1;
  overflow-y: auto;
  top: 60px;
  left: 250px;
  background: radial-gradient(circle at top center, #1c1c21 0%, #09090b 100%);
  color: white;
  padding: 20px;
} */

.page {
  display: none;
}

.page.active {
  display: block;
}

/* overview */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* .time-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
} */
 .time-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.chart-header {
  /* position: relative;

  display: flex;
  align-items: center;

  margin-bottom: 20px; */
  display: flex;
  align-items: center;
  justify-content: space-between;

  position: relative;

  margin-bottom: 20px;
}

.category-filter, .top-filter {
  display: flex;
  gap: 10px;

  z-index: 2;
}

.chart-title {
  position: absolute;

  left: 50%;
  transform: translateX(-50%);

  margin: 0;

  font-size: 20px;
  font-weight: 700;
}

.time-filter .tf {
  padding: 4px 8px;
  border-radius: 15px;
  background: #7e7e7e;
  color: white;
  cursor: pointer;
  font-size: 12px;
  /* transition: 0.2s; */
  transition: all 0.2s ease;
}

.time-filter .tf:hover {
  background: rgba(59, 255, 75,0.08);
  border-color: #28d940;
  /* color: #fff; */
}

.time-filter .tf.active {
  background: linear-gradient(135deg, #5cf664 10%, #28d940 100%);
  color: #000000;
}

/* .kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
} */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 10px;
  align-items: stretch;
}

.kpi-card {
  background: #232329;
  color: #cbd5e1;
  padding: 14px;
  border-radius: 10px;
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
  transition: 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
}

.kpi-title {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.6;
}

.kpi-value {
  font-size: 20px;
  font-weight: bold;
  margin-top: 5px;
}

/* time filter card style */
.kpi-grid .time-filter {
  background: unset;

  display: flex;
  align-items: flex-end; /* buttons align bottom */
  justify-content: center;

  height: 100%;
}

.chart-container {
  background: #232329;
  color: #cbd5e1;
  padding: 20px;
  border-radius: 12px;
  height: 90vh;
}

.bottom-dashboard {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 1.3fr;
  gap: 16px;
  margin-top: 20px;
  align-items: stretch;
}

/* shared panel */
.panel {
  background: #232329;
  /* border: 1px solid #222; */
  border-radius: 10px;
  padding: 12px;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  /*justify-content: center;*/ /* vertical centering */
  align-items: center;     /* horizontal centering */
  overflow: hidden;
}

/* scroll tables */
.table-scroll-container {
  background: #1b1b20;
  display: block !important;
  width: 100%;
  max-height: 350px;
  border-radius: 10px;
  overflow-y: auto;
  border: 1px solid var(--border-hi);
}

.table-scroll {
  /* flex: 1;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 10px; */
  width: 100%;
  border-collapse: collapse;
  color: #ffffff !important;
}

.table-scroll th, .table-scroll td {
  color: #cbd5e1;
  padding: 14px 20px;
  border-bottom: 1px solid #2a2a2f;
}

.table-scroll th {
  background: #232329;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted2);
}

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

/* Chat Log */
.chat-container {
  display: flex;
  height: 80vh;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
}

/* =========================
   SIDEBAR
========================= */
.search-bar {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

.cc-sidebar {
  width: 300px;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  background: #ffffff;
}

.sidebar-user {
  color: #09090b;
  padding: 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s;
}

.sidebar-user:hover {
  background: #f5f5f5;
}

.sidebar-user.active {
  background: #cbd1c6;
  font-weight: 600;
}

/* =========================
   CHAT AREA
========================= */
.chat-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* HEADER */
.chat-header {
  padding: 16px 20px;
  background: white;
  color: #09090b;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  font-size: 16px;
}

/* CHAT ROOM */
.chat-room {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #ece5dd;
  color: #09090b;
  display: flex;
  flex-direction: column;
}

/* MESSAGE */
.message {
  max-width: 70%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  word-wrap: break-word;
  display: inline-block;
}

.message small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  opacity: 0.7;
}

/* USER MESSAGE */
.user {
  background: white;
  align-self: flex-start;
}

/* BOT MESSAGE */
.bot {
  background: #dcf8c6;
  align-self: flex-end;
}

/* RECEIPTS */
/* Table Styles */
.table-container {
  background: #1b1b20;
  display: block !important;
  width: 100%;
  min-height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-hi);
}

.admin-table, .item-table {
  color: #ffffff !important;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  color: #cbd5e1;
  padding: 14px 20px;
  border-bottom: 1px solid #2a2a2f;
}

.admin-table th, .item-table th {
  background: #232329;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted2);
}

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

.item-table th, .item-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #2a2a2f;
}

.receipt-link {
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
}

.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
  backdrop-filter: blur(3px);
}

.confirm-box {
  width: 90vw;
  max-width: 100%;
  max-height: 100%;

  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 14px;

  padding: 22px;

  box-shadow:
    0 10px 40px rgba(0,0,0,0.35);

  animation: modalPop 0.18s ease;
}

.confirm-header {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.confirm-body {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
  max-height: 80vh;
  overflow-y: auto;
}

.confirm-warning {
  margin-top: 10px;
  color: #f87171;
  font-weight: 600;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal (Pop-out) Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

/* .modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
} */

.modal-content-wrapper {
  background: #fff;
  width: 88%;
  height: 95%;
  border-radius: 12px;
  background-color: rgba(31, 31, 31, 0.9);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-content-inner {
  display: flex;
  gap: 20px;
  height: 100%;
  overflow:auto;
}

.highlight-carnation, .highlight-greater td {
  font-weight: bold;
  color: #2efa4a!important;
}

.approvalTotal {
  background-color: #2efa492a;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px; right: 35px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

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

.card {
  background: #1b1b20;
  color: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.card-actions button {
  flex: 1;
}

/* Reward, Item */
.rewards-header, .items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.edit-reward-num, .edit-num, .reward-name, .edit-point, .reward-qty, .reward-point,
.reward-num, .edit-itemcode, .edit-name, .edit-qty, .edit-lucky, .edit-keywords,
.ld-dropdown, #prizeTable input {
  width: 85%;
  padding: 9px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: white;
  background: #5a5a5a;

}

/* .edit-num:hover,
.reward-name:hover,
.edit-point:hover,
.reward-qty:hover,
.ld-dropdown:hover {
  border-color: #28d940;
  background: #666666;
} */

.hidden {
  display: none !important;
}

.modal-reward {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 999;
}

.large-modal {
  width: 95%;
  max-width: 1400px;

  /* background: white; */
  background: #1b1b20;
  border-radius: 12px;

  margin-top: 65px;
  padding: 24px;

  max-height: 85vh;
  overflow: auto;
}

.review-layout {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 5px;
  align-items: start;
}

.poster-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}


#catalogImg {
  width: 100%;
  max-width: 500px;

  /* max-height: 500px; */

  object-fit: contain;

  /* border-radius: 12px; */

  /* border: 1px solid #ddd;

  background: #f5f5f5; */

  /* padding: 8px; */
}

/* .poster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.poster-card {
  background: #f3f3f3;
  border-radius: 12px;

  padding: 16px;
  cursor: grab;

  transition: 0.2s;
}

.poster-card.dragging {
  opacity: 0.5;
}

.poster-card h4 {
  margin-bottom: 8px;
} */

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Poster */
.poster-frame {
  width: 50%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-wrapper {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.poster-box {
  width: 250px;
  /* border: 1px solid #ddd; */
  /* padding: 60px; */
  /* border-radius: 10px; */
  text-align: center;
}

.poster-box img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 10px;
}

 .dropzone {
  width: 100%;
  /* max-width: 300px; */
  height: 40px;
  border: 2px dashed #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 10px;
  /* background: #fafafa; */
  cursor: pointer;
}

/* when image is present */
.dropzone.has-image {
  height: auto;
  aspect-ratio: 4 / 5;
  border: none;
  padding: 0;
  background: transparent;
}

.pdf-drop-zone {
  cursor: pointer;
}

.dropzone:hover, .dropzone.active, .dropzone.dragover, .pdf-drop-zone.dragover, .pdf-drop-zone:hover {
  background: rgba(59, 255, 75,0.08);
  border-color: #28d940;
}

.dropzone .placeholder {
  color: #888;
  position: relative;
  font-size: 12px;
}

.dropzone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Terms & Conditions */
.tnc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.tnc-preview {
  border-radius: 8px;
  overflow: hidden;
}

.tnc-upload-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdf-drop-zone {
  border: 2px dashed #aaa;
  border-radius: 8px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.2s;
}

/* lucky draw */
.draw-wrapper {
  /* padding: 20px; */
}

.draw-row {
  display: flex;
  align-items: flex-end; 
  gap: 10px;
  /* justify-content: flex-start; */
  margin-bottom: 20px;
}

.draw-row .form-group {
  flex: 0 0 auto;          /* Prevents them from expanding */
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group select {
  width: 100%;
  height: 45px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 0 12px;
  font-size: 15px;
}

/* .primary-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 14px 22px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
}

.primary-btn:hover {
  opacity: 0.9;
} */

/* .secondary-btn {
  background: #e5e7eb;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
} */

/* .danger-btn {
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
} */

#drawResultArea {
  margin-top: 30px;
}

/* HEART BUTTON */

.draw-heart-btn {
  background: #ff3b5c;
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
  animation: pulse-ld 1.3s infinite;
  margin-top: 20px;
}

@keyframes pulse-ld {

  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,59,92,0.7);
  }

  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 25px rgba(255,59,92,0);
  }

  100% {
    transform: scale(1);
  }
}

/* TABLE */
/* #prizeTable input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
} */

.winner-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: gold;
  color: black;
  padding: 20px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  z-index: 99999;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.backup-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #444;
  color: white;
  padding: 15px;
  border-radius: 10px;
  font-size: 16px;
  z-index: 99999;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* .draw-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
} */

.draw-table th,
.draw-table td {
  /* border: 1px solid #ddd;
  padding: 12px; */
  color: #cbd5e1;
  padding: 14px 20px;
  /* border-bottom: 1px solid #2a2a2f; */
}

.draw-table th {
  /* background: #f3f4f6; */
  /* background: #232329; */
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted2);
}

/* .prize-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
} */

.prize-table th,
.prize-table td {
  /* border: 1px solid #ddd;
  padding: 12px; */
  color: #cbd5e1;
  padding: 14px 20px;
  border-bottom: 1px solid #2a2a2f;
}

.prize-table th {
  background: #232329;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--muted2);
}

/* MODAL */

.custom-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.custom-modal.show {
  display: flex;
}

.modal-content {
  background: #232329;
  color: #cbd5e1;
  width: 400px;
  border-radius: 18px;
  padding: 24px;
}

.modal-content h3 {
  margin-top: 0;
}

.modal-content.large {
  width: 700px;
}

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/* button */
.btn-green, .confirmBtn, .primary-btn {
  background: transparent;
  color: #28d940;
  border-color: rgba(59, 255, 75, 0.3);
  border-radius: 5px;
  padding: 8px;
  margin-right: 5px;
  cursor: pointer;
}

.login-box button {
  background: transparent;
  color: #28d940;
  border-color: rgb(59, 255, 75);
  border-radius: 5px;
  padding: 8px;
  margin-right: 5px;
  cursor: pointer;
}

.btn-green:hover, .confirmBtn:hover, .login-box button:hover, .primary-btn:hover {
  background: rgba(59, 255, 75,0.08);
  border-color: #28d940;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 255, 75,0.15);
}

.btn-yellow, .edit-btn, .chart-filter-btn, .top-filter-btn {
  background: transparent;
  color: #ffdf2b;
  border-color: rgba(255, 226, 59, 0.3);
  border-radius: 5px;
  padding: 8px;
  margin-right: 5px;
  cursor: pointer;
}

.chart-filter-btn:active, .chart-filter-btn.active, .top-filter-btn:active, .top-filter-btn.active {
  background: #ffdf2b !important;
  color: #52470d !important;
  /* border-color: rgba(255, 226, 59, 0.3);
  border-radius: 5px;
  padding: 8px;
  margin-right: 5px;
  cursor: pointer; */
}

.btn-yellow:hover, .edit-btn:hover, .chart-filter-btn:hover, .top-filter-btn:hover {
  background: rgba(255, 226, 59,0.08);
  color: #ffdf2b;
  border-color: #ffdf2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 226, 59,0.15);
}

.btn-red {
  background: transparent;
  color: #ff3b5c;
  border-color: rgba(255, 59, 92, 0.3);
  border-radius: 5px;
  cursor: pointer;
  padding: 8px;
}

.btn-red:hover {
  background: rgba(255,59,92,0.08);
  border-color: #ff3b5c;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,59,92,0.15);
}

.btn-cancel {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;

  background: #374151;
  color: white;
  cursor: pointer;
}

.btn-cancel:hover {
  background: #4b5563;
}

.btn-disabled, .btn-green:disabled, .confirmBtn:disabled, .btn-red:disabled {
  background: rgba(150, 150, 150, 0.1);
  color: #999;
  border-color: rgba(150, 150, 150, 0.2);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.6;
}

.removePrizeBtn {
  background-color: transparent;
  border: transparent;
  color: #f87171;
  font-size: 15px;
}

.removePrizeBtn:hover {
  color: #ef4444;
  font-size: 18px;
}

.logout-btn {
  text-decoration: none;
  color: #f87171;
  padding: 10px;
  border-top: 1px solid #374151;
  margin-top: auto;
}

.logout-btn:hover {
  color: #ef4444;
}