/* ===== Custom Styles for Bus Schedule ===== */

/* Tab buttons */
.tab-btn {
  color: rgba(255,255,255,0.6);
  background: transparent;
  border: none;
  cursor: pointer;
}
.tab-btn:hover {
  color: rgba(255,255,255,0.85);
}
.tab-btn.active {
  color: #1e40af;
  background: #f9fafb;
}

.tab-content.hidden {
  display: none;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Schedule table row hover */
#schedule-table-body tr {
  transition: background-color 0.15s ease;
}
#schedule-table-body tr:hover {
  background-color: #f0f7ff;
}

/* Direction arrow pulse */
@keyframes pulse-arrow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.direction-arrow {
  animation: pulse-arrow 2s ease-in-out infinite;
}

/* Card entrance animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-card {
  animation: fadeInUp 0.4s ease forwards;
}

/* Stagger card animation delays */
.schedule-card:nth-child(1) { animation-delay: 0.00s; }
.schedule-card:nth-child(2) { animation-delay: 0.05s; }
.schedule-card:nth-child(3) { animation-delay: 0.10s; }
.schedule-card:nth-child(4) { animation-delay: 0.15s; }
.schedule-card:nth-child(5) { animation-delay: 0.20s; }
.schedule-card:nth-child(6) { animation-delay: 0.25s; }
.schedule-card:nth-child(7) { animation-delay: 0.30s; }
.schedule-card:nth-child(8) { animation-delay: 0.35s; }
.schedule-card:nth-child(9) { animation-delay: 0.40s; }
.schedule-card:nth-child(10) { animation-delay: 0.45s; }

/* Active tab-like indicator for today's schedules */
.current-time-indicator {
  position: relative;
}
.current-time-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #3b82f6;
  border-radius: 0 4px 4px 0;
}

/* Print styles - hide shadows and colors for printing */
@media print {
  body {
    background: white;
  }
  header {
    background: #1e40af !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .shadow-md, .shadow-lg {
    box-shadow: none !important;
  }
  section {
    break-inside: avoid;
  }
}

/* Touch-friendly tap targets */
@media (max-width: 767px) {
  a, button {
    min-height: 44px;
  }
}

/* ===== Floating Contact Button ===== */

#floating-contact {
  /* static, no animation */
}

/* ===== QR Modal ===== */

#qr-modal {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#qr-modal.show {
  display: flex;
  opacity: 1;
}

#qr-modal img {
  max-height: 70vh;
  object-fit: contain;
}

/* Custom scrollbar for PC */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: #f1f5f9;
  }
  ::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
  }
}
