/* Custom Styling & Polish for PT Mashen Logistic Indonesia */

:root {
  --brand-orange: #FF7A00;
  --brand-orange-dark: #E06500;
  --brand-navy: #0B1528;
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth transitions */
a, button {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image zoom effect on documentation cards */
.doc-card img {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.doc-card:hover img {
  transform: scale(1.06);
}

/* Pulse animation for live indicators */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2.5s infinite ease-in-out;
}

/* Subtle badge animations */
.glow-badge {
  box-shadow: 0 0 15px rgba(255, 122, 0, 0.35);
}

/* Glassmorphism helpers */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-panel-dark {
  background: rgba(11, 21, 40, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Modal animation */
#route-modal.flex, #news-modal.flex, #lightbox-modal.flex, #location-modal.flex, #mini-chat-box.flex {
  animation: fadeIn 0.25s ease-out forwards;
}

/* Chat bubble styling enhancement */
#mini-chat-messages::-webkit-scrollbar {
  width: 6px;
}
#mini-chat-messages::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}


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

/* Print styles */
@media print {
  header, footer, #wa-popup-menu, button {
    display: none !important;
  }
}

/* Top Bar Contacts & Horizontal Alignment Guarantee */
.top-bar-contact {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Mobile Touch & Smooth Scroll Optimizations for Modal Pop-ups */
.modal-scroll {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* Custom scrollbar styling for .modal-scroll containers */
.modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}

/* Floating Action Button Active Feedback */
.floating-btn-tap:active {
  transform: scale(0.93) !important;
}

/* Header Text Navigation Links with Subtle Underline Effect */
.nav-text-link {
  position: relative;
  transition: color 0.2s ease-in-out;
}

.nav-text-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FF7A00;
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-text-link:hover::after {
  width: 100%;
}


