/* ==========================================================================
   KALA.CLOCK — STYLESHEET RESMI IoT CLOCK & RUNNING TEXT CONTROLLER
   Desain Berdasarkan Referensi Gambar & Video UX Kala.Clock
   
   ATURAN TIPOGRAFI (Disesuaikan +3 agar pas & terbaca di seluruh device):
   - Font Utama: 'Plus Jakarta Sans', sans-serif
   - Font Khusus 'Kala.Clock': 'Baumans', cursive, sans-serif
   - H1: 19px (Bold / 700)   [Awal: 16px + 3]
   - H2: 17px (Bold / 700)   [Awal: 14px + 3]
   - H3: 15px (Medium / 500) [Awal: 12px + 3]
   - H4: 13px (Medium / 500) [Awal: 10px + 3]
   - Teks Lainnya (p, span, label, input, button): 11px - 9px (Light / 300) [Awal: 8px - 6px + 3]
   - 'Kala.Clock' saat dipasangkan dengan H1/H2: 21px [Awal: 18px + 3]
   - Jam Digital: 'Plus Jakarta Sans' Light Weight (300)
   
   RESPONSIVITAS:
   - Mobile-First: Min-width 412px
   - Tablet & Desktop Adaptif & Terpusat Rapi
   ========================================================================== */

/* IMPORT GOOGLE FONTS: Plus Jakarta Sans & Baumans */
@import url('https://fonts.googleapis.com/css2?family=Baumans&family=Plus+Jakarta+Sans:wght@300;400;500;700&display=swap');

/* ==========================================================================
   SECTION 1: VARIABLE WARNA & PENGATURAN GLOBAL
   ========================================================================== */
:root {
  /* Warna Latar Belakang & Permukaan Kartu */
  --bg-page: #ece7de;            /* Latar belakang krem hangat sesuai video & UI */
  --bg-card: #1b1b1c;            /* Kartu utama gelap rounded */
  --bg-subcard: #242528;         /* Kotak dalam / input / sub-komponen */
  --bg-input: #28292c;          /* Kotak input teks */
  
  /* Palet Warna Aksen Kala.Clock */
  --accent-tan: #cda077;         /* Warna tan / cokelat muda tombol & highlight */
  --accent-tan-hover: #b88b64;   /* Hover tan */
  --accent-active-bg: #35271f;   /* Latar tombol terpilih / aktif */
  --accent-active-border: #cda077;/* Garis tepi tombol aktif */
  --border-subtle: rgba(255, 255, 255, 0.08); /* Garis batas tipis */
  
  /* Warna Teks */
  --text-main: #f5f0e8;          /* Teks terang */
  --text-muted: #9e9a92;         /* Teks abu-abu / keterangan */
  --text-dim: #737069;           /* Teks redup / placeholder */
  --text-dark-btn: #322116;      /* Teks pada tombol warna tan */
  
  /* Status Indikator */
  --status-online: #22c55e;      /* Hijau online */
  --status-offline: #ef4444;     /* Merah offline */
  --status-warning: #f59e0b;     /* Kuning proses */
  
  /* LED Virtual Simulation */
  --led-amber: #ffaa33;          /* Warna amber LED digital */
  --led-red: #ff3b30;            /* Warna merah LED running text */
  
  /* Radius & Bayangan */
  --radius-card: 20px;
  --radius-subcard: 14px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 10px 28px rgba(0, 0, 0, 0.22);
  --shadow-btn: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* RESET ELEMEN */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 412px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 412px;
  min-height: 100vh;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 12px; /* Skala font diresize +3 */
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* ==========================================================================
   SECTION 2: TIPOGRAFI STANDAR (+3 RESIZED)
   ========================================================================== */
h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 20px; /* 16px + 3 */
  color: var(--text-main);
  line-height: 1.25;
}

h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px; /* 14px + 3 */
  color: var(--text-main);
  line-height: 1.25;
}

h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 16px; /* 12px + 3 */
  color: var(--text-main);
  line-height: 1.3;
}

h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 14px; /* 10px + 3 */
  color: var(--text-main);
  line-height: 1.3;
}

p, span, label, small, li, td, th {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 12px; /* 8px + 3 */
  color: var(--text-main);
}

.text-light-sm {
  font-weight: 300;
  font-size: 10px; /* 7px + 3 */
  color: var(--text-muted);
}

.text-light-tiny {
  font-weight: 300;
  font-size: 8px;  /* 6px + 3 */
  color: var(--text-dim);
}

/* Font khusus untuk seluruh kata 'Kala.Clock' */
.brand-name {
  font-family: 'Baumans', cursive, sans-serif;
  letter-spacing: 0.02em;
  color: var(--accent-tan);
  font-weight: 400;
}

/* Kala.Clock saat dipasangkan dengan H1 / H2 menggunakan font size 21px (18px + 3) */
h1 .brand-name,
h2 .brand-name,
.brand-name-h1-h2 {
  font-size: 22px !important;
  line-height: 1;
}

.brand-sm {
  font-size: 14px !important;
}

/* ==========================================================================
   ANIMASI UTAMA
   ========================================================================== */
@keyframes logoEntrance {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   SECTION 4: SCREEN 2 — LOGIN PAGE (SESUAI GAMBAR LOGIN.PNG & VIDEO)
   ========================================================================== */
.login-screen-wrap {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.login-screen-wrap.hidden {
  display: none !important;
}

.login-header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  animation: logoEntrance 0.8s ease both;
}

.login-header-logo img {
  width: 110px;
  height: auto;
}

.login-header-logo .brand-name {
  font-size: 26px;
}

.login-card {
  width: 100%;
  max-width: 412px;
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  animation: cardEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-title {
  margin-bottom: 6px;
  color: #ffffff;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 20px;
}

.login-group {
  margin-bottom: 16px;
}

.login-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  height: 42px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  padding: 0 14px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input::placeholder {
  color: var(--text-dim);
  font-size: 10px;
}

.login-input:focus {
  border-color: var(--accent-tan);
  box-shadow: 0 0 0 2px rgba(205, 160, 119, 0.25);
}

.btn-login {
  width: 100%;
  height: 42px;
  background-color: var(--accent-tan);
  color: var(--text-dark-btn);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: var(--shadow-btn);
  transition: background-color 0.2s, transform 0.15s;
}

.btn-login:hover {
  background-color: var(--accent-tan-hover);
}

.btn-login:active {
  transform: scale(0.98);
}

.login-remember-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
}

.login-remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-tan);
  cursor: pointer;
}

.login-remember-row span {
  font-size: 11px;
  color: var(--text-muted);
}

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

/* ==========================================================================
   SECTION 5: LOGIN SUCCESS MODAL & COUNTDOWN (SESUAI NOTIF.PNG & VIDEO)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-notif-card {
  width: 100%;
  max-width: 320px;
  background-color: var(--bg-card);
  border-radius: var(--radius-subcard);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  text-align: left;
  animation: cardEntrance 0.35s ease both;
}

.modal-notif-title {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.modal-notif-divider {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
}

.modal-notif-body {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.6;
}

.modal-notif-body strong {
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   SECTION 6: MAIN DASHBOARD CONTAINER & RESPONSIVE LAYOUT
   ========================================================================== */
.dashboard-wrapper {
  width: 100%;
  max-width: 960px;
  min-width: 412px;
  padding: 16px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: cardEntrance 0.6s ease both;
}

.dashboard-wrapper.hidden {
  display: none !important;
}

/* Top user bar */
.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 6px;
}

.user-status-greeting {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
}

.user-greeting-text {
  font-size: 11px;
  font-weight: 500;
  color: #333333;
}

.btn-switch-account {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 5px 10px;
  color: #444444;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-switch-account:hover {
  background: #333333;
  color: #ffffff;
  border-color: #333333;
}

/* KARTU UTAMA 1: DASHBOARD KALA.CLOCK (PREVIEW + JAM) */
.card-main-preview {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-preview-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-roof-icon {
  width: 48px;
  height: auto;
}

/* KONTEN KARTU UTAMA: KIRI (LED SCREEN) & KANAN (JAM ANALOG + DIGITAL) */
.main-preview-body {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 540px) {
  .main-preview-body {
    grid-template-columns: 1fr 138px;
    gap: 10px;
  }
}

/* SISI KIRI: DISPLAY SCREEN & STATUS */
.preview-left-pane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* LAYAR SIMULASI LED MATRIX DENGAN BEZEL & POLA DOT MATRIX */
.led-screen-bezel {
  position: relative;
  background-color: #070707;
  border: 2px solid #28292c;
  border-radius: var(--radius-subcard);
  overflow: hidden;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.9);
}

.led-matrix-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.8) 30%, transparent 35%);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.25);
  transition: background-color 0.25s ease;
}

.led-screen-display {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  z-index: 1;
}

/* KOTAK JAM & TANGGAL PADA LED */
.led-clock-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.led-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 20px;
  font-weight: 900;
  color: var(--led-amber);
  text-shadow: 0 0 8px rgba(255, 170, 51, 0.7);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.led-date {
  font-family: 'Courier New', Courier, monospace;
  font-size: 9px;
  color: #ffd080;
  text-shadow: 0 0 5px rgba(255, 208, 128, 0.5);
  margin-top: 1px;
}

.led-divider {
  width: 85%;
  height: 1px;
  background: #2b1700;
  box-shadow: 0 0 3px var(--led-amber);
  margin: 4px auto 6px;
}

.led-ticker-wrap {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 0;
  border-radius: 4px;
}

.led-ticker-text {
  display: inline-block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--led-red);
  text-shadow: 0 0 8px rgba(255, 59, 48, 0.7);
  animation: tickerScrollLeft 16s linear infinite;
  padding-left: 100%;
}

@keyframes tickerScrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes tickerScrollRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* STATUS INDIKATOR & ID JAM PADA SISI KIRI */
.preview-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status-badge-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 300;
  color: #ffffff;
}

.status-icon-img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.status-glow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-offline);
  box-shadow: 0 0 6px var(--status-offline);
  transition: all 0.3s ease;
}

.status-glow-dot.online {
  background-color: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
}

.preview-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.id-jam-display-text {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
}

.id-jam-display-text strong {
  color: var(--accent-tan);
  font-weight: 700;
}

.made-by-text {
  font-size: 10px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ==========================================================================
   SISI KANAN: KARTU JAM ANALOG & DIGITAL
   SESUAI PERSIS DENGAN GAMBAR REFERENSI (media_1790657823908 & media_1790657823930)
   ========================================================================== */
.clock-card-box {
  background-color: var(--bg-subcard);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-subcard);
  padding: 14px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* JAM ANALOG BULAT DENGAN PENANDA CAPSULE PILL SESUAI REFERENSI GAMBAR */
.analog-clock-container {
  position: relative;
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background-color: transparent; /* Bersih tanpa bezel hitam kaku */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 12 PENANDA JAM BERBENTUK KAPSUL BULAT (CAPSULE PILL) */
.clock-tick-mark {
  position: absolute;
  width: 4px;
  height: 8px;
  background-color: #eae6db; /* Warna krem pucat sesuai gambar */
  border-radius: var(--radius-pill);
  left: 50%;
  top: 4px;
  transform-origin: center 53px; /* Jarak sumbu putar ke pusat jam 106px / 2 */
  opacity: 0.88;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}

.clock-tick-major {
  width: 4px;
  height: 9px;
  opacity: 1;
  background-color: #ffffff;
}

/* JARUM JAM ANALOG SESUAI REFERENSI (media_1790657823908.png) */
.needle {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: 50% 100%;
  border-radius: var(--radius-pill);
  transition: transform 0.05s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

/* 1. Jarum Jam: MERAH, TERPENDEK */
.needle-hour {
  width: 4px;
  height: 24px; /* Terpendek */
  background-color: #ff3333; /* Merah menyala sesuai gambar */
  margin-left: -1.75px;
  z-index: 5;
  box-shadow: 0 0 4px rgba(255, 51, 51, 0.6);
}

/* 2. Jarum Menit: PUTIH, PALING PANJANG */
.needle-minute {
  width: 3px;
  height: 42px; /* Paling panjang */
  background-color: #eae6db; /* Putih krem sesuai gambar */
  margin-left: -1.25px;
  z-index: 6;
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}

/* 3. Jarum Detik: PUTIH, PANJANG DI TENGAH-TENGAH */
.needle-second {
  width: 2px;
  height: 32px; /* Di tengah-tengah antara 24px dan 42px */
  background-color: #ffffff;
  margin-left: -0.75px;
  z-index: 7;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

/* TITIK PUSAT SUMBU JARUM BULAT (SESUAI GAMBAR media_1790657823908.png) */
.needle-center-pin {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background-color: #eae6db; /* Bulatan krem sesuai gambar */
  top: 0%;
  left: 0%;
  transform: translate(0%, 0%);
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   JAM DIGITAL: PLUS JAKARTA SANS LIGHT WEIGHT (SESUAI media_1790657823930.png)
   ========================================================================== */
.digital-clock-label {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 16px;
  font-weight: 300 !important; /* LIGHT WEIGHT */
  color: #f5f0e8;
  letter-spacing: 0.03em;
  text-align: center;
  line-height: 1.2;
}

/* ==========================================================================
   SECTION 7: PEMBATAS SEKSI (PENGATURAN JAM IOT)
   ========================================================================== */
.section-heading-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0;
}

.section-heading-divider::before,
.section-heading-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

.section-heading-divider span {
  font-size: 11px;
  font-weight: 500;
  color: #555555;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION 8: GRID KARTU KONTROL (RESPONSIF MOBILE / TABLET / DESKTOP)
   ========================================================================== */
.controls-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .controls-grid-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* KARTU KONTROL STANDAR */
.control-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.control-card-header h3 {
  color: #ffffff;
  margin-bottom: 4px;
}

.card-dashed-line {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  margin: 6px 0 8px;
}

.control-card-header p {
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.4;
}

.control-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-label {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
}

.val-badge {
  background-color: #f5f0e8;
  color: #1b1b1c;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

/* KONTROL INPUT RUNNING TEXT */
.control-input {
  width: 100%;
  height: 38px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  padding: 0 12px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300;
  font-size: 11px;
  outline: none;
  transition: border-color 0.2s;
}

.control-input::placeholder {
  color: var(--text-dim);
  font-size: 10px;
}

.control-input:focus {
  border-color: var(--accent-tan);
}

/* CUSTOM SLIDER (SESUAI GAMBAR SLIDER.PNG) */
.custom-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #ebe5d8;
  outline: none;
  margin: 6px 0;
  cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1b1b1c;
  border: 2px solid #2e2f33;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.1s;
}

.custom-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.custom-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1b1b1c;
  border: 2px solid #2e2f33;
  cursor: pointer;
}

/* TOMBOL-TOMBOL PILIHAN MODE TAMPILAN JAM (4 PILIHAN) */
.btn-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.btn-option {
  height: 34px;
  background-color: var(--accent-tan);
  color: var(--text-dark-btn);
  border: none;
  border-radius: var(--radius-btn);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 6px;
}

.btn-option:hover {
  background-color: var(--accent-tan-hover);
}

/* STATUS TOMBOL AKTIF: GELAP DENGAN TEKS TAN */
.btn-option.active {
  background-color: var(--accent-active-bg) !important;
  color: var(--accent-tan) !important;
  border: 1px solid var(--accent-active-border) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4) !important;
}

/* TOMBOL PRESET KECERAHAN (VERTIKAL STACK) */
.btn-stack-vertical {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-stack-vertical .btn-option {
  height: 34px;
  font-size: 11px;
}

/* KOTAK JAM SAAT INI (PADA KALIBRASI JAM) */
.current-time-box {
  width: 100%;
  height: 48px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 300; /* Light Weight sesuai digital clock */
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

/* ROW ZONA WAKTU DENGAN BADGE KREM & 3 TOMBOL UTC */
.utc-row-wrap {
  display: grid;
  grid-template-columns: 38px 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.badge-utc-indicator {
  height: 34px;
  background-color: #f5f0e8;
  color: #1b1b1c;
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* TOMBOL KALIBRASI RTC & NTP */
.sync-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

/* TOMBOL BESAR: KIRIM SECARA REAL TIME */
.btn-send-realtime {
  width: 100%;
  min-height: 125px;
  flex: 1;
  background-color: var(--accent-tan);
  color: var(--text-dark-btn);
  border: none;
  border-radius: var(--radius-subcard);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px; /* 13px + 3 */
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
}

.btn-send-realtime:hover {
  background-color: var(--accent-tan-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(205, 160, 119, 0.4);
}

.btn-send-realtime:active {
  transform: translateY(1px);
}

/* ==========================================================================
   SECTION 9: TOAST NOTIFIKASI PERUBAHAN JAM (SESUAI NOTIF PERUBAHAN JAM.PNG)
   ========================================================================== */
.toast-notif-wrap {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notif-wrap.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-notif-card {
  background-color: #173826;
  border: 1px solid #22c55e;
  border-radius: var(--radius-subcard);
  padding: 16px 20px;
  max-width: 320px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.toast-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.toast-check-icon {
  width: 16px;
  height: 16px;
  color: #22c55e;
  flex-shrink: 0;
}

.toast-title {
  color: #22c55e;
  font-size: 11.5px;
  font-weight: 700;
}

.toast-body {
  color: #86efac;
  font-size: 10.5px;
  font-weight: 300;
  line-height: 1.45;
}

/* ==========================================================================
   SECTION 10: RESPONSIVITAS TABLET & DESKTOP
   ========================================================================== */
@media (min-width: 768px) {
  .dashboard-wrapper {
    padding: 24px 20px 60px;
    gap: 20px;
  }

  .main-preview-body {
    grid-template-columns: 1fr 190px;
    gap: 20px;
  }

  .analog-clock-container {
    width: 126px;
    height: 126px;
  }

  .clock-tick-mark {
    transform-origin: center 59px; /* Jarak sumbu putar untuk ukuran 126px */
  }

  .needle-hour { height: 28px; }
  .needle-minute { height: 50px; }
  .needle-second { height: 38px; }

  .digital-clock-label {
    font-size: 18px;
  }

  .led-screen-bezel {
    height: 145px;
  }

  .led-time {
    font-size: 26px;
  }

  .led-ticker-text {
    font-size: 13px;
  }

  .btn-mode-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
