/* Reset and Base Styles */
* {
  box-sizing: border-box;
  font-family: "Ubuntu", monospace;
}
:root {
  --bg-gradient-2: linear-gradient(to top, #00a3ff, #0b00a9);
  --bg-gradient-2-hover: linear-gradient(to left, #00a3ff, #0b00a9);
  --color-4: #00a3ff;
}
.nav-topbar {
  font-size: 13px;
}
.logo-wrapper {
  display: block;
  position: relative;
  margin: 0 auto;
  max-width: 140px;
}
.font-small {
  font-size: 13px !important;
}
.logo-web {
  display: block;
  position: relative;
  width: 100%;
}
body {
  background: var(--background);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.bg-gradient-2 {
  background: var(--bg-gradient-2);
}
.winner-title {
  font-size: 12px;
  padding: 10px;
  background: var(--bg-gradient-2);
}
.callout {
  background: linear-gradient(to right, #00508c, transparent);
  border-left: 6px solid #008cd1;
}
.form-konversi {
  background: url(/assets/images/bg-toto-sgp.jpg);
}
.form-konversi .table > :not(caption) > * > * {
  background: transparent !important;
}

/* Table Data Result Styles */
#tableDataResult {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#tableDataResult thead {
  background: #2a2a2a;
}

#tableDataResult th {
  padding: 12px;
  text-align: left;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #4caf50;
}

#tableDataResult tbody tr {
  border-bottom: 1px solid #333;
  transition: background 0.2s;
}

#tableDataResult tbody tr:hover {
  background: #2a2a2a;
}

#tableDataResult td {
  padding: 12px;
  color: #ddd;
}

/* Pagination Styles */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#pagination .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

#pagination .page-item {
  list-style: none;
}

#pagination .page-link {
  padding: 8px 12px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

#pagination .page-link:hover {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

#pagination .page-item.active .page-link {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

#pagination .page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Livedraw Button Styles */
.btn-link-livedraw {
  width: 100%;
  padding: 15px 20px;
  text-align: left;
  border: none;
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-link-livedraw:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-link-livedraw i {
  font-size: 14px;
}

.blink.badge {
  display: block;
  position: absolute !important;
  top: -10px !important;
  padding: 0.35em 0.65em;
  border-radius: 50px;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1 !important;
  text-transform: uppercase;
}
.btn.btn-tab:hover {
  background: var(--bg-gradient-2-hover) !important;
  border: 1px solid transparent;
}
.btn.btn-tab.active {
  background: var(--bg-gradient-2-hover) !important;
  border: 1px solid transparent;
}
.card-tool-info {
  position: absolute;
  right: 1rem;
}
/* Card Result Togel */
.card-result {
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card-result:hover {
  transform: translateY(-5px);
}

.result-number {
  border-radius: 8px;
  text-align: center;
}
.card-thumbnail {
  display: block;
  position: relative;
  margin: 0 auto;
  max-width: 160px;
  border-radius: 12px;
}

.result-number .number-wrapper {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffc107;
  letter-spacing: 3px;
}

.btn-link-pasaran {
  border-radius: 5px;
  font-size: 0.85rem;
  padding: 6px 12px;
  transition: all 0.3s ease;
  border: none;
}

.btn-link-pasaran:hover {
  background: var(--bg-gradient-2-hover) !important;
  transform: translateX(5px);
}

/* Card Prediksi Togel */
.card-prediksi {
  border-radius: 8px;
  overflow: hidden;
}

.prediksi-thumbnail {
  border-radius: 8px;
  object-fit: cover;
  height: 150px;
}

.prediksi-title {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.prediksi-description {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
}

/* Table Buku Mimpi */
#tableBukuMimpi {
  background-color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
}

#tableBukuMimpi thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#tableBukuMimpi thead th {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 12px;
  border: none;
}

#tableBukuMimpi tbody tr {
  transition: background-color 0.3s ease;
}

#tableBukuMimpi tbody tr:hover {
  background-color: #2a2a2a !important;
}

#tableBukuMimpi tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-color: #333;
}

.filter-container {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  color: #fff;
  margin-bottom: 5px;
  font-weight: 500;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #333;
  background: #2a2a2a;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: #4caf50;
}

.btn-filter {
  padding: 10px 20px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-filter:hover {
  background: #45a049;
}

.btn-reset {
  padding: 10px 20px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

.btn-reset:hover {
  background: #da190b;
}

#filterTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

#filterTable thead {
  background: #2a2a2a;
}

#filterTable th {
  padding: 12px;
  text-align: left;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #4caf50;
}

#filterTable tbody tr {
  border-bottom: 1px solid #333;
  transition: background 0.2s;
}

#filterTable tbody tr:hover {
  background: #2a2a2a;
}

#filterTable td {
  padding: 12px;
  color: #ddd;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 12px;
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #333;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
  background: #4caf50;
  border-color: #4caf50;
}

.pagination button.active {
  background: #4caf50;
  border-color: #4caf50;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: #fff;
  font-size: 14px;
}

.loading {
  text-align: center;
  color: #fff;
  padding: 20px;
  font-size: 16px;
}

.no-data {
  text-align: center;
  color: #999;
  padding: 40px;
  font-size: 16px;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.badge-2d {
  background: #2196f3;
  color: white;
}

.badge-3d {
  background: #ff9800;
  color: white;
}

.badge-4d {
  background: #9c27b0;
  color: white;
}

/* Table styling */
#drawing-table,
#paito-drawing-table {
  border-collapse: collapse;
  width: 100%;
}

#drawing-table .asu,
#paito-drawing-table .asu {
  cursor: pointer;
  min-width: 30px;
  height: 30px;
}

#drawing-table .asux,
#paito-drawing-table .asux {
  background: #333;
  color: #fff;
  cursor: pointer;
  min-width: 30px;
  height: 30px;
}

/* Color selector styling */
.paito-color-selector {
  margin-bottom: 15px;
}

#color-selector,
#paito-color-selector {
  display: flex;
  align-items: center;
  gap: 5px;
}

#color-selector .color,
#paito-color-selector .color {
  width: 35px;
  height: 35px;
  display: inline-block;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

#color-selector .color.aqua,
#paito-color-selector .color.aqua {
  background-color: aqua;
}

#color-selector .color.gold,
#paito-color-selector .color.gold {
  background-color: gold;
}

#color-selector .color.lightgreen,
#paito-color-selector .color.lightgreen {
  background-color: lightgreen;
}

#color-selector .color.deeppink,
#paito-color-selector .color.deeppink {
  background-color: deeppink;
}

#color-selector .color.violet,
#paito-color-selector .color.violet {
  background-color: violet;
}

#color-selector .color.turquoise,
#paito-color-selector .color.turquoise {
  background-color: turquoise;
}

#color-selector .color.orange,
#paito-color-selector .color.orange {
  background-color: orange;
}

#color-selector .color.selected,
#paito-color-selector .color.selected {
  border: 2px solid #fff;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#color-selector button,
#paito-color-selector button {
  padding: 8px 15px;
  background-color: #dc3545;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

#color-selector button:hover,
#paito-color-selector button:hover {
  background-color: #c82333;
}

.card.card-result .number-wrapper {
  padding: 5px;
  animation: border-dance 15s infinite linear;
  background:
    linear-gradient(90deg, var(--color-4) 50%, transparent 50%),
    linear-gradient(90deg, var(--color-4) 50%, transparent 50%),
    linear-gradient(0deg, var(--color-4) 50%, transparent 50%),
    linear-gradient(0deg, var(--color-4) 50%, transparent 50%);
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-size:
    8px 2px,
    8px 2px,
    2px 8px,
    2px 8px;
  background-position:
    0px 0px,
    200px 100px,
    0px 100px,
    200px 0px;
  color: var(--color-4);
  font-family: "Orbitron", sans-serif;
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: 0.2rem;
  line-height: 1;
  text-align: center;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes slideshow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 0px));
  }
}

@keyframes border-dance {
  0% {
    background-position:
      0px 0px,
      100% 100%,
      0px 100%,
      100% 0px;
  }
  100% {
    background-position:
      100% 0px,
      0px 100%,
      0px 0px,
      100% 100%;
  }
}

.winner-wrapper {
  border: 1px solid darkorange;
  border-radius: 0.375rem;
  overflow: hidden;
}

.winner-wrapper li {
  display: flex;
  align-items: center;
  width: 100%;
}
.winner-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  border: 1px solid var(--color-4);
  border-radius: 7px;
}
@media (min-width: 993px) {
    .winner-wrapper .winner-title {
        /* line-height: 34px; */
    }
}

.winner-wrapper .winner-title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100px;
    max-width: 100px;
    min-width: 100px;
    border-radius: 7px 0 0 7px;
    font-size: 0.7rem;
    white-space: nowrap;
    /* line-height: 40px; */
}

.splide-winner-player p {
    font-size: 12px;
    padding: 4px 8px;
}