body{font-family:Arial,sans-serif;background:#f5f5f5;margin:0;padding:20px}

/* ===== COLOR PALETTE ===== */
:root {
  --primary-dark: #1C2D45;    /* Dark Blue */
  --primary-olive: #99A989;   /* Olive Green */
  --primary-light-blue: #6D92A6; /* Light Blue */
  --danger-red: #e74c3c;      /* Red (Close button) */
}

h1{text-align:center;color:#333;margin-bottom:30px}
.kota-title{background:#2c3e50;color:white;padding:12px;border-radius:8px;text-align:center;margin:30px 0 15px;font-size:18px;font-weight:bold}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 20px;
  background: #ddd;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: #bbb;
}

.tab-btn.active {
  background: var(--primary-olive);
  color: white;
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* BOX TRAINER - NAVY MENTERENG */
.trainer{
  background:#1a365d;
  border-radius:10px;
  padding:18px;
  margin:15px 0;
  box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.trainer h2{
  margin-top:0;
  color:white;
  border-bottom:2px solid #4a90e2;
  padding-bottom:10px;
  font-size:20px;
  font-weight:bold;
  letter-spacing:0.5px;
}

/* BOX SUBFOLDER - GREY TERANG TIPIS */
.event-toggle{
  margin:12px 0;
  padding:12px;
  background:#f8f9fa;
  border-left:4px solid #a0aec0;
  border-radius:6px;
  border:1px solid #e2e8f0;
}

.event-toggle summary{
  cursor:pointer;
  list-style:none;
  font-weight:bold;
  color:#2d3748;
  display:flex;
  align-items:center;gap:8px;
  font-size:13px;
  font-family:monospace;
  position:relative;
  padding-left:20px;
}

.event-toggle summary::-webkit-details-marker{display:none}
.event-toggle summary::marker{display:none}
.event-toggle summary::before{
  content:"▶";
  position:absolute;
  left:0;
  transition:transform 0.2s;
  font-size:12px;
  color:#4a5568
}

.event-toggle[open] summary::before{transform:rotate(90deg)}

.event-links{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.event-links a{
  display:block;
  color:#2b6cb0;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  font-family:Arial,sans-serif;
  padding:6px 8px;
  background:white;
  border-radius:4px;
  border-left:3px solid #4299e1;
}

.event-links a:hover{
  background:#ebf8ff;
  border-left:3px solid #3182ce;
}

/* ===== FLOATING ACTION BUTTON (SPEED DIAL) ===== */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 9999;
  width: 56px;  /* Sama dengan button width */
  height: 56px; /* Sama dengan button height */
}

.fab-main {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-olive);
  color: white;
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 100;
}

.fab-main:hover { background: #7d8869; }
.fab-main.open { transform: rotate(45deg); background: var(--danger-red); }

/* ===== SUB BUTTONS (POSITIONED ABOVE MAIN BUTTON) ===== */
.fab-item {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  scale: 0;
  transition: opacity 0.3s ease, scale 0.3s ease;
  pointer-events: none;
  transform-origin: bottom right;
  z-index: 99;
}

/* Posisi setiap sub button di atas main button */
.fab-item:nth-child(1) {
  bottom: calc(56px + 12px);  /* Main button height + gap */
}

.fab-item:nth-child(2) {
  bottom: calc((56px + 12px) * 2);  /* 2x main button height + gap */
}

.fab-item:nth-child(3) {
  bottom: calc((56px + 12px) * 3);  /* 3x main button height + gap */
}

.fab-item.visible {
  opacity: 1;
  scale: 1;
  pointer-events: all;
}

.fab-sub {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary-light-blue);
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: background 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.fab-sub:hover { background: #5a7d91; }

.fab-sub i {
  color: white !important;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-label {
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .fab-container { bottom: 20px; right: 20px; }
  .fab-main { width: 50px; height: 50px; font-size: 20px; }
  .fab-sub { width: 42px; height: 42px; font-size: 16px; }
}
