/* ================================================
   PAITO WARNA CSS
   ================================================ */

.paito-page {
  background: #000;
  min-height: 100vh;
  padding: 0 0 30px;
  font-family: Arial, Helvetica, sans-serif;
}

/* ===== TOPBAR ===== */
.paito-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #111;
  border-bottom: 2px solid #f5c518;
  flex-wrap: wrap;
  gap: 10px;
}

.paito-title {
  font-size: 18px;
  font-weight: 900;
  color: #f5c518;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.paito-title span {
  display: block;
  font-size: 13px;
  color: #aaa;
  font-weight: 400;
  letter-spacing: .5px;
}

.paito-market-select {
  background: #222;
  border: 1px solid #444;
  color: #fff;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  min-width: 180px;
  outline: none;
}

.paito-market-select:focus { border-color: #f5c518; }

/* ===== TOOLBAR ===== */
.paito-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
  gap: 10px;
}

.paito-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.paito-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.paito-tool-label {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
}

.paito-palette {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.palette-swatch {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
  display: block;
}

.palette-swatch:hover {
  transform: scale(1.2);
  border-color: #fff;
}

.palette-swatch.active {
  border-color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 6px rgba(255,255,255,.5);
}

.paito-btn {
  padding: 6px 13px;
  border-radius: 5px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .2s;
}

.btn-erase {
  background: #333;
  color: #ccc;
  border: 1px solid #555;
}

.btn-erase.active {
  background: #e53935;
  color: #fff;
  border-color: #e53935;
}

.btn-erase:hover { background: #c62828; color: #fff; }

.btn-reset {
  background: #1a1a1a;
  color: #888;
  border: 1px solid #333;
}

.btn-reset:hover { background: #333; color: #fff; }

/* ===== COLOR INDICATOR ===== */
.paito-color-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: #0a0a0a;
  border-bottom: 1px solid #222;
  font-size: 12px;
  color: #666;
}

#colorPreview {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid #444;
  display: inline-block;
}

/* ===== TABLE WRAPPER ===== */
.paito-table-wrap {
  overflow-x: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

.paito-table-wrap::-webkit-scrollbar { height: 6px; }
.paito-table-wrap::-webkit-scrollbar-track { background: #111; }
.paito-table-wrap::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* ===== TABLE ===== */
.paito-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

/* HEADER */
.paito-thead-main th {
  background: #2a2a2a;
  color: #f5c518;
  text-align: center;
  padding: 8px 4px;
  border: 1px solid #3a3a3a;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

.paito-thead-sub th {
  background: #1e1e1e;
  color: #888;
  text-align: center;
  padding: 5px 4px;
  border: 1px solid #2a2a2a;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.paito-th-no { width: 36px; }
.paito-th-angka { min-width: 80px; }
.paito-th-d { width: 28px; }

/* ROWS */
.row-odd  { background: #1a1a1a; }
.row-even { background: #141414; }

.paito-row:hover { background: #222 !important; }

.paito-td-no {
  text-align: center;
  color: #555;
  font-size: 10px;
  padding: 4px 6px;
  border: 1px solid #222;
  white-space: nowrap;
}

.paito-td-angka {
  text-align: center;
  padding: 3px 4px;
  border: 1px solid #222;
}

.paito-td-d {
  text-align: center;
  padding: 3px 2px;
  border: 1px solid #222;
  background: rgba(255,255,255,.02);
}

/* ===== DIGITS ===== */
.paito-digits {
  display: flex;
  gap: 2px;
  justify-content: center;
  align-items: center;
}

.pd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #e0e0e0;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid transparent;
  user-select: none;
}

.pd:hover {
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.1) !important;
}

.pd-d {
  width: 22px;
  height: 22px;
  font-size: 12px;
  color: #aaa;
}

.paito-x {
  color: #555;
  font-size: 11px;
}

.paito-dash {
  color: #333;
  font-size: 11px;
}

.paito-no-data {
  text-align: center;
  color: #444;
  padding: 40px;
  font-size: 14px;
}

/* ===== LEGEND ===== */
.paito-legend {
  padding: 8px 16px;
  font-size: 11px;
  color: #444;
  border-top: 1px solid #1a1a1a;
  margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .paito-topbar { flex-direction: column; align-items: flex-start; }
  .paito-market-select { width: 100%; }
  .paito-toolbar { flex-direction: column; align-items: flex-start; }
  .paito-toolbar-right { width: 100%; justify-content: flex-end; }
  .paito-title { font-size: 15px; }
  .pd { width: 17px; height: 20px; font-size: 11px; }
  .paito-table { font-size: 11px; }
}
