body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #eef2f3;
  color: #333;
}

header {
  background: linear-gradient(90deg, #007acc, #005f99);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

.container {
  width: 90%;
  margin: 0 auto;
  background: white;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
  padding: 1.5rem;
}

.dropdown-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: auto;
}

.select-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 100px;
}

label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

input[type="text"],
select {
  padding: 3px !important;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background-color: #fff;
}

select {
  padding: 10px 12px;
  /* Added right padding to accommodate the dropdown arrow */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1.5;
  background-color: #fff;
  appearance: none;
  /* Removes the default browser styles for dropdowns */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

@media (max-width: 768px) {
  .dropdown-container {
    flex-direction: column;
    gap: 15px;
  }

  .select-wrapper {
    width: 100%;
  }
}

option {
  padding: 10px;
}

option:hover {
  background-color: #f1f1f1;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

table th,
table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background-color: #005f99;
  color: white;
  text-transform: uppercase;
}

table tr:hover {
  background-color: #f9f9f9;
  cursor: pointer;
}

table tr:last-child td {
  border-bottom: none;
}

table td {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0.5rem;
  }

  table th,
  table td {
    padding: 0.75rem;
    font-size: 0.8rem;
  }

  header h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 1rem 0;
  }

  table th,
  table td {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  header h1 {
    font-size: 1.2rem;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #005f99;
  padding: 10px 20px;
  color: white;
}

.navbar-brand {
  font-size: 1.5em;
}

.menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  margin: 0 10px;
  position: relative;
}

.menu-item a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
}

.menu-item a:hover {
  background-color: #444;
  border-radius: 5px;
}

.dropdownsk {
  display: none;
  position: absolute;
  top: 40px;
  right: -15px;
  background-color: #444;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  border-radius: 10px;
}

.dropdownsk a {
  display: block;
  padding: 10px 20px;
  white-space: nowrap;
  color: white;
  text-decoration: none;
}

.dropdownsk a:hover {
  background-color: #555;
}

.menu-item.active .dropdownsk {
  display: block;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px 0;
}

@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background-color: #333;
    width: 100%;
    position: absolute;
    top: 55px;
    left: 0;
    padding: 0 0;
  }

  .menu.active {
    display: flex;
  }

  .menu-item {
    margin: 10px 0;
    text-align: center;
  }

  .dropdownsk {
    position: absolute;
    top: 0;
  }

  .hamburger {
    display: block;
  }

  .menu {
    z-index: 1000;
  }

  .dropdownsk {
    margin-top: 40px;
    margin-right: -10px;
  }

  .value svg {
    width: 16px;
    margin-top: 0px;
  }
}

.value {
  background-color: transparent;
  border: none;
  padding: 10px;
  color: white;
  display: flex;
  position: relative;
  gap: 5px;
  cursor: pointer;
  border-radius: 4px;
}

.value:not(:active):hover,
.value:focus {
  background-color: #21262c;
}

.value:focus,
.value:active {
  background-color: #1a1f24;
  outline: none;
}

.value::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -10px;
  width: 5px;
  height: 80%;
  background-color: #2f81f7;
  border-radius: 5px;
  opacity: 0;
}

.value:focus::before,
.value:active::before {
  opacity: 1;
}

.value svg {
  width: 16px;
  margin-top: 3px;
}

@media print {
  body {
    display: none;
  }
}

.notifications-dropdown {
  display: none;
  position: absolute;
  top: 68px;
  right: 0;
  left: -88px;
  background-color: #555;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  border-radius: 10px;
  width: 300px;
  max-height: 400px;
  overflow-y: auto;
  color: white;
  padding: 10px;
}

.notifications-dropdown p {
  margin: 0;
  padding: 10px;
  font-size: 14px;
  text-align: left;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.notifications-dropdown a {
  display: block;
  padding: 10px;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid #555;
}

.notifications-dropdown a:hover {
  background-color: #555;
}

.notifications-dropdown .loading {
  text-align: center;
}

.notification-item {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.notification-item p {
  margin: 0;
  font-size: 14px;
}

.notification-item a {
  font-size: 12px;
  color: white;
  text-decoration: underline;
}

.notification-item a:hover {
  color: darkblue;
}

/* ////////////////////////// */

/* Container */
.tracking-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
  font-family: sans-serif;
}

/* Card */
.tracking-card {
  width: 95%;
  max-width: 550px;
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Title */
.tracking-title {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.6rem;
  font-weight: 600;
}

/* Input + Button */
.tracking-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 35px;
}

.tracking-label {
  font-weight: bold;
}

.tracking-input {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.tracking-btn {
  padding: 12px;
  background: #28a745;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tracking-btn:hover {
  background: #218838;
  transform: translateY(-2px);
}

.progress-tracker-wrapper {
  overflow-x: auto; /* scroll horizontally on small screens */
  padding-bottom: 10px; /* space for scrollbar */
}

.progress-tracker {
  display: flex;
  justify-content: space-between;
  min-width: 500px; /* ensures all steps fit without squishing */
  position: relative;
  margin-top: 40px;
}

.progress-bar {
  position: absolute;
  top: 25px; /* center with circles */
  left: 0;
  height: 4px;
  width: 0;
  background: #28a745;
  z-index: 1;
  border-radius: 2px;
  transition: width 0.5s ease;
}

/* Background bar */
.progress-tracker::before {
  content: "";
  position: absolute;
  top: 25px; /* aligns with circle center */
  left: 0;
  width: 100%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  z-index: 0;
}

/* Foreground bar */
/* .progress-tracker::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 0;
  width: 0%;
  height: 4px;
  background: #28a745;
  border-radius: 2px;
  z-index: 1;
  transition: width 0.5s ease;
} */

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0; /* prevents shrinking on mobile */
  position: relative;
  z-index: 2;
  min-width: 80px; /* ensure steps don’t collapse */
}

.circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
  transition: 0.3s;
}

.step.active .circle {
  background: #28a745;
  color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(40, 167, 69, 0.6);
}

.step p {
  font-size: 0.75rem;
  text-align: center;
  margin: 0;
  max-width: 80px;
  word-break: break-word;
}

/* Responsive */
@media (max-width: 480px) {
  .tracking-card {
    min-width: 400px;
  }
  .progress-tracker {
    min-width: 400px;
  }
  .circle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .step p {
    font-size: 0.65rem;
  }

  .progress-bar {
    top: 20px;
  }
  .progress-tracker::before {
    top: 20px;
  }
}



#iframe-container {
    width: 100%;
    height: calc(100vh - 60px); /* adjust for navbar height */
    overflow: hidden;
}

iframe[name="contentFrame"] {
    width: 100%;
    height: 100%;
    border: none;
}
