/* LOGIN PAGE */

.login-body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
}

.login-container {
  display: flex;
  height: 100vh;
}

.login-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-left img {
  width: 350px;
}

.login-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
}

.login-right h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.login-right input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 2px solid #c7c7ff;
}

.password-box {
  position: relative;
}

.password-box span {
  position: absolute;
  right: 15px;
  top: 14px;
  cursor: pointer;
}

.login-right button {
  padding: 14px;
  font-size: 16px;
  background: #a7a7f9;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.login-right button:hover {
  background: #8d8df0;
}

.login-footer {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 14px;
}














/* RESULTS PAGE */
.results-header {
  text-align: center;
  padding: 60px 20px 30px;
  background: #f5f5f5;
}

.results-header h1 {
  font-size: 36px;
}

.results-header span {
  color: #777;
}

.cards-container {
  max-width: 900px;
  margin: 30px auto;
}

.case-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-date {
  display: inline-block;
  background: #e8f2ef;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.case-card h2 {
  margin: 10px 0;
}

.case-card p {
  color: #666;
}

.card-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.qr-btn,
.more-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
}

.qr-btn {
  background: #4f7df3;
}

.more-btn {
  background: #4f7df3;
}

/* FOOTER */
.footer {
  background: black;
  color: white;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
}

.footer a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
}











/* ===== SEARCH RESULTS ===== */
.results-section {
  width: 100%;
  padding: 40px 20px;
  background: #f7f7f7;
}

.results-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

#resultsContainer {
  max-width: 900px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CASE CARD */
.case-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.case-left h3 {
  margin: 0;
  font-size: 20px;
}

.case-left p {
  margin: 5px 0 0;
  color: #666;
}

.case-actions button {
  padding: 10px 16px;
  margin-left: 10px;
  background: #4f7df3;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}











/* =========================
   DATA ENTRY PAGE
========================= */

/* PAGE CONTENT WRAPPER */
.page-content {
  padding-top: 60px;   /* 🔥 THIS pushes everything down */
}


/* Station Title */
.station-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: 600;
}

/* Black Case Header */
.case-header {
  background: black;
  color: white;
  padding: 14px 28px;
  width: 85%;
  margin: 0 auto 0px;   /* 🔥 reduced gap */
  border-radius: 12px;
  font-size: 20px;
}

/* Main Form Container */
.data-form {
  width: 85%;
  margin: 0 auto;

  background: #e6e6e6;
  padding: 30px;             /* 🔧 slightly more breathing space */
  border-radius: 12px;
}

/* Grid Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Inputs */
.form-col input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;

  border-radius: 8px;
  border: none;
  background: #fff;

  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Section Labels */
.section-label {
  font-weight: 600;
  margin: 12px 0;
  display: block;
}

/* Toggle Buttons */
.toggle-group {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.toggle {
  flex: 1;
  padding: 12px;

  border-radius: 8px;
  border: none;
  cursor: pointer;

  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.toggle.active {
  background: #ddd;
  font-weight: bold;
}

/* Submit Row */
.submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 35px;          /* 🔧 slightly more space */
}

.submit-btn {
  background: black;
  color: white;

  padding: 12px 35px;
  border-radius: 8px;
  border: none;

  font-size: 16px;
  cursor: pointer;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

  .form-grid {
    grid-template-columns: 1fr;
  }

  .case-header,
  .data-form {
    width: 95%;
  }

  .station-title {
    margin-top: 40px;
    font-size: 26px;
  }
}






/* 🔹 CENTER PAGE CONTENT */
.command-page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

/* 🔹 MAIN BLOCK */
.command-center {
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

/* 🔹 TITLE */
.center-title {
  margin-bottom: 60px;
  font-size: 26px;
  font-weight: 700;
}

/* 🔹 STATION GRID */
.station-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* 🔹 STATION CARDS */
.station-card {
  height: 90px;
  border: 3px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.station-card:hover {
  background: #f1f1f1;
}

.station-card.active {
  background: #e6e6e6;
}

/* 🔹 NEXT BUTTON */
.next-container {
  margin-top: 70px;
  display: flex;
  justify-content: center;
}

.next-btn {
  background: black;
  color: white;
  border: none;
  padding: 14px 45px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  min-width: 140px;
}

.next-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 🔹 FOOTER */
.footer {
  background: black;
  color: white;
  padding: 25px 40px;
  display: flex;
  justify-content: space-between;
}

.footer a {
  color: white;
  margin-left: 20px;
  font-size: 14px;
}








.table-container {
  padding: 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

th {
  background: #f0f0f0;
}

.download-actions {
  text-align: center;
  margin: 30px;
}

.download-actions button {
  padding: 12px 25px;
  margin: 10px;
  background: black;
  color: white;
  border: none;
  cursor: pointer;
}









/* ===== UNIVERSAL PAGE LAYOUT ===== */
html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Wrapper for all page content */
.app-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Footer */
.footer {
  background: #000;
  color: #aaa;
  font-size: 13px;
  padding: 18px;
  text-align: center;
}

.footer a {
  color: #aaa;
  text-decoration: none;
  margin-left: 12px;
}












/* GLOBAL */
html, body {
  min-height: 100%;
  margin: 0;
}

/* PAGE LAYOUT */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;                 /* 🔥 pushes footer down */
}

/* TITLE */
.page-title {
  text-align: center;      /* 🔥 center title */
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 50px;
}

/* TABLE CONTAINER */
.table-container {
  width: 95%;
  margin: auto;
  overflow-x: auto;        /* important for wide table */
}

/* DOWNLOAD BUTTON */
.download-actions {
  display: flex;
  justify-content: center;
  margin: 40px 0 60px;
}

.download-actions button {
  background: black;
  color: white;
  border: none;
  padding: 14px 40px;
  font-size: 15px;
  border-radius: 6px;
  cursor: pointer;
}

/* FOOTER */
.footer {
  background: black;
  color: white;
  padding: 20px 40px;
}





/* 🔥 FIX TOGGLE CLICK ISSUE */
.toggle-group {
  position: relative;
  z-index: 10;
}

.toggle {
  pointer-events: auto !important;
  z-index: 11;
}





/* ================= STATION RUNNING TICKER ================= */
#stationTicker {
  width: 100%;
  background: #0a157a;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  border-top: 2px solid #000;
}

#tickerTrack {
  display: inline-block;
  padding-left: 100%;
  animation: tickerMove 75s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  margin-right: 50px;
  font-size: 14px;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  background: #00ffcc;
  border-radius: 50%;
  margin-right: 8px;
}

/* Pause on hover */
#stationTicker:hover #tickerTrack {
  animation-play-state: paused;
}

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


.ticker-meta {
  text-align: right;
  font-size: 12px;
  color: #aaa;
  padding: 4px 12px;
  background: #000;
  font-family: monospace;
}





/* DAILY UPDATE TICKER – ORANGE */
.daily-ticker {
  width: 100%;
  background: #E65100; /* Deep Orange */
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;              /* spacing top-bottom */
  border-bottom: 1px solid #BF360C;
}

.daily-ticker-content {
  display: inline-block;
  padding-left: 100%;
  padding-right: 40px;
  animation: dailyScroll 45s linear infinite; /* readable speed */
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

/* animation */
@keyframes dailyScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}





.hero {
  padding-bottom: 10px;
}












/* RESET */
* {
  box-sizing: border-box;
}

/* NAVBAR */
.navbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 40px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
  position: absolute;
  left: 40px;
  height: 42px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  padding-bottom: 4px;
}

.nav-links a.active {
  color: #4f46e5;
  border-bottom: 2px solid #4f46e5;
}

/* SLIDER */
.home-slider {
  width: 100%;
  height: 340px;
  position: relative;
  overflow: hidden;
}

.home-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.home-slider img.active {
  display: block;
}

/* HERO CENTER */
.hero {
  margin-top: -120px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111;
}

/* SEARCH BAR */
.search-box {
  width: 420px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  width: 56px;
  border: none;
  background: #111827;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .search-box {
    width: 90%;
  }

  .nav-links {
    gap: 16px;
    font-size: 14px;
  }
}
