/* -------------------------------------------------
   NAVIG Global Styles – info button + modal overlay
-------------------------------------------------*/
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg-light: #f0f9ff;
}

/* ────────────────────────────────────────────────
   Floating “info” button
────────────────────────────────────────────────── */
.info-button {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 1500;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.info-button .fas { font-size: 18px; }

/* ────────────────────────────────────────────────
   Modal overlay (shared)
────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}
.modal.modal-open {
  animation: fadeInScale 0.25s ease-out forwards;
}
@keyframes fadeInScale {
  0%   { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1);   }
}

/* -------------------------------------------------
   INFO-MODAL core wrapper & header
-------------------------------------------------*/
.info-modal-wrapper {
  background: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
  color: #333;
}

.info-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--primary);
  color: #fff;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.info-modal-title { 
  margin: 0; 
  font-size: 1.2em; 
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}
.info-modal-title:hover { 
  opacity: 0.8; 
  text-decoration-color: rgba(255, 255, 255, 1);
}
.info-modal-close { font-size: 1.4em; cursor: pointer; }

/* -------------------------------------------------
   Section titles & copy
-------------------------------------------------*/
.info-modal-section-title {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 16px 16px 8px;
  font-size: 1em;
  color: var(--primary);
}

.info-modal-text {
  margin: 0 16px 8px;
  font-size: 0.85em;
  line-height: 1.5;
}

.custom-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.custom-link:hover { text-decoration: underline; }

/* -------------------------------------------------
   Project grid & cards (covers Bus Tracking + Dashboard)
-------------------------------------------------*/
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-light);
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.project-card h4 {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 0.9em;
  color: var(--primary);
}
.project-card p {
  margin: 0;
  font-size: 0.8em;
  color: #666;
  flex-grow: 1;
  margin-left: 8px;
}

.project-link {
  padding: 4px 8px;
  background: var(--primary);
  color: #fff;
  border-radius: 3px;
  font-size: 0.75em;
  text-decoration: none;
  transition: background 0.2s ease;
}
.project-link:hover { background: var(--primary-dark); }
.project-actions {
  display: flex;
  gap: 6px;
}
.project-link.secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.project-link.secondary:hover {
  background: var(--bg-light);
}

/* -------------------------------------------------
   Footer
-------------------------------------------------*/
.info-modal-footer {
  padding: 12px 16px;
  background: #f0f9ff;
  border-top: 1px solid #bfdbfe;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  text-align: center;
  font-size: 0.8em;
  color: #64748b;
}
