*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Montserrat',sans-serif;
}

html, body{
  height:100%;
}

body{
  background:
    linear-gradient(rgba(6,26,47,.75),rgba(6,26,47,.75)),
    url("img/bg-kantor.png") center/cover no-repeat fixed;
  color:#fff;
}

/* ===== PANEL ===== */
.panel{
  background:linear-gradient(180deg,#0d335c,#081f36);
  border-radius:0px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.6);
}

.panel-glow{
  border:3px solid #ffc91b;
  animation:glow 2.5s ease-in-out infinite;
}

/* ===== HEADER ===== */
.header{
  display:flex;
  align-items:center;
  margin:0px;
  margin-bottom:0px;
  background: rgba(13, 51, 92, 0.50);
}

.logo{
  max-height:100px;
  margin-left:20px;
  flex:0 0 auto;
}

.header-center{
  flex:1;                 /* judul ambil ruang tengah */
  text-align:center;
  font-size:45px;
  font-weight:800;
  white-space:nowrap;
  margin-left:90px;
}

.header-right{
  flex:0 0 360px;         /* ⬅️ PERLEBAR ke kiri */
  display:flex;
  flex-direction:column;
  align-items:flex-end;   /* ⬅️ rata kanan */
  justify-content:center;
  padding-right:20px;
  min-height: 120px;   /* ⬅️ tambahkan ini */
}

/* TANGGAL */
.tanggal{
  font-size: 25px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
  text-align: right;
  margin-bottom:10px;
}

/* JAM */
.jam{
  font-size: 25px;
  font-weight: 800;
  color: #ffc91b;
  white-space: nowrap;
  line-height: 1.1;
  text-align: right;
}

/* ===== INFO ===== */
.info-box{
  margin:0 16px;
  overflow:hidden;
  white-space: nowrap;
  background: rgba(13, 51, 92, 0.25);
}

.info-marquee span{
  display:inline-block;
  padding-left:100%;
  animation:scroll 18s linear infinite;
  font-size:20px;
}

@keyframes scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-100%)}
}

/* ===== MAIN ===== */
.main{
  flex:1;
  display:flex;
  justify-content: space-between;
  grid-template-columns:400px 1fr;
  padding:30px;
  margin-bottom:-30px;
}

/* ===== QUEUE BOX ===== */
.queue{
  position: relative;
  padding-top: 110px; /* ruang untuk marquee */
  height:426px;
  width:755px;
  background: rgba(13, 51, 92, 0.50);
}

/* ===== MARQUEE ===== */
.queue-marquee{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  overflow: hidden;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
}

.queue-marquee-track{
  white-space: nowrap;
  padding-left: 100%;
  animation: queue-marquee 30s linear infinite;

  font-size: 30px;
  font-weight: 100;
  color: #ffffff;
}

@keyframes queue-marquee{
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ===== CONTENT ===== */
.queue-content{
  text-align:center;
  height:426px;
  width:730px;
  padding-right: 30px;
}

.queue .label{
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
}

.queue .number{
  font-size: 150px;
  font-weight: 800;
  color: #ffc91b;
}

.queue .target{
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
}

.right{
  height:100%;
}

/* ===== TV ===== */
.panel-tv{
  width:755px;
  height:426px;
  position:relative;
  overflow:hidden;
  border:1px solid #1a3d66;
  background:#000;
}

.panel-tv iframe{
  width:100%;
  height:100%;
  border:none;
}

/* ===== LOKET ===== */
.loket-bar{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  min-width:150px;
  gap:30px;
  padding:30px;
}

.loket{
  background: rgba(13, 51, 92, 0.50);
  border:3px solid #fff;
  border-radius:0px;
  padding:12px;
  text-align:center;
  height:150px;
}

.loket span{
  display:block;
  font-weight:800;
  font-size:30px;
}

.loket b{
  font-size:65px;
  font-weight:800;
  color:#ffc91b;
}

.loket.active{
  border:3px solid #ffc91b;
  animation:glow 2.5s ease-in-out infinite;
}

/* ===== SOCIAL ===== */
.social{
  background:#020f1f;
  overflow:hidden;
  padding:0px 0;
  height:80px;
  display:flex;
  align-items:center;
}

.track{
  display:flex;
  align-items:center;
  gap:80px;
  width:max-content;
  animation:social 90s linear infinite;
}

.track div{
  display:flex;
  align-items:center;
  gap:15px;
  white-space:nowrap;
  font-size:30px;
}

.track img{
  height:40px;
}

#settingsToggle{
  position:fixed;
  right:20px;
  bottom:20px;
  width:48px;
  height:48px;
  background:#ffc91b;
  color:#000;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  cursor:pointer;
  z-index:9999;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

#settingsPanel{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 260px;

  background: linear-gradient(
    180deg,
    rgba(12,42,70,.96),
    rgba(6,26,47,.96)
  );
  backdrop-filter: blur(8px);

  color:#fff;
  padding:16px 16px 14px;
  border-radius:14px;

  box-shadow:
    0 20px 40px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.08);

  opacity: 0;
  transform: translateY(18px) scale(.96);
  pointer-events: none;

  transition:
    opacity .35s ease,
    transform .45s cubic-bezier(.22,1,.36,1);

  z-index:9999;
}

#settingsPanel.show{
  opacity:1;
  transform: translateY(0) scale(1);
  pointer-events:auto;
}




#settingsPanel h4{
  margin:0 0 14px;
  text-align:center;
  font-size:15px;
  font-weight:700;
  letter-spacing:.5px;
  color:#ffc91b;
}


#settingsPanel label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:13px;
  margin-bottom:12px;
  color:#e5edf5;
}

#settingsPanel label span{
  display:flex;
  align-items:center;
  gap:8px;
  opacity:.9;
}

#settingsPanel input[type=range]{
  -webkit-appearance:none;
  height:6px;
  border-radius:6px;
  background:rgba(255,255,255,.25);
}

#settingsPanel input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#ffc91b;
  box-shadow:0 0 0 4px rgba(255,201,27,.25);
  cursor:pointer;
}

#settingsPanel input[type=text]{
  padding:7px 10px;
  border-radius:8px;
  border:none;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:13px;
}

#settingsPanel input::placeholder{
  color:rgba(255,255,255,.5);
}

#settingsPanel button{
  margin-top:8px;
  width:100%;
  padding:9px;
  background:linear-gradient(180deg,#ffd84d,#ffc91b);
  border:none;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  color:#000;
  cursor:pointer;
}

#settingsPanel button:hover{
  filter:brightness(0.75);
}

/* HOT AREA TAK TERLIHAT */
#settingsHotzone{
  position: fixed;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 120px;
  z-index: 9998;
  cursor: default;
}

/* ===== ANIMATION ===== */
@keyframes social{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

@keyframes glow{
  0%{
    box-shadow:
      0 0 10px rgba(255,201,27,.6),
      0 0 20px rgba(255,201,27,.4);
  }
  50%{
    box-shadow:
      0 0 20px rgba(255,201,27,.9),
      0 0 40px rgba(255,201,27,.7),
      0 0 60px rgba(255,201,27,.4);
  }
  100%{
    box-shadow:
      0 0 10px rgba(255,201,27,.6),
      0 0 20px rgba(255,201,27,.4);
  }
}