/* Reset and base */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #050f1d;
  color: #aefeff;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: #0a0a0a;
  color: #00f0ff;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: inset 0 0 20px #00f0ff22;
}

.brand {
  text-align: center;
  margin-bottom: 20px;
}

.sidebar .logo {
  font-size: 40px;
  color: #00f0ff;
}

.sidebar .company {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 30px;
}

.menu ul {
  list-style: none;
  padding: 0;
}

.menu li {
  margin: 15px 0;
}

.menu a {
  color: #aefeff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.menu a:hover {
  background: #003344;
}

/* Card */
.card {
  background: rgba(0, 255, 255, 0.08);
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
}

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

.card .big-number {
  font-size: 36px;
  color: #00f0ff;
}

.card .sub-data {
  margin-top: 10px;
}

.card .sub-data .count {
  color: #00ffaa;
}

/* Main content */
.main-content {
  flex: 1;
  padding: 20px;
  background: url('globe.png') center/cover no-repeat;
  background-attachment: fixed;
  z-index: 1;
}

/* Top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-form input {
  padding: 8px;
  border-radius: 4px;
  border: none;
}

.book-btn {
  background: #00f0ff;
  color: #000;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Table */
.shipment-table-wrapper {
  overflow-x: auto;
  margin-bottom: 30px;
}

.shipment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background-color: rgba(0, 255, 255, 0.02);
  border: 1px solid #00f0ff22;
  backdrop-filter: blur(10px);
}

.shipment-table th,
.shipment-table td {
  padding: 6px 8px;
  border: 1px solid #00f0ff33;
  max-width: 160px;
  overflow: hidden;
  white-space: normal;
  vertical-align: top;
  text-align: left;
}

.shipment-table th {
  background-color: #081f2d;
  color: #00f0ff;
}

/* Upload UI */
.upload-form input[type="file"] {
  margin-right: 5px;
}

.upload-btn {
  background: #00f0ff;
  color: #000;
  padding: 4px 8px;
  font-size: 9px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  margin-top: 4px;
  white-space: nowrap;
}

/* Icons and status row */
.doc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-icon {
  font-size: 18px;
  color: green;
}

.action-icon {
  font-size: 18px;
  text-decoration: none;
}

.inline-form {
  display: inline;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  margin: 0 2px;
  padding: 2px;
  transition: transform 0.2s;
}

.icon-btn:hover {
  transform: scale(1.2);
}

.icon-btn.danger {
  color: red;
}

/* Edit button styling for shipment and scheduler pages */
.edit-btn {
  background-color: #004466;
  color: #aefeff;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  margin-left: 4px;
}

.edit-btn:hover {
  background-color: #006688;
}

/* Uploaded Label */
.uploaded {
  font-weight: bold;
  color: green;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 5px;
}
.dashboard-box canvas {
  display: block;
  width: 100%;
  height: 60px !important;
  margin-top: 10px;
  max-width: 100%;
}

/* Dashboard boxes */
.dashboard-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 30px;
}


.dashboard-box {
  width: 320px;
  background: rgb(0 206 255 / 8%);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00f0ff33;
  border: 1px solid #00f0ff33;
  color: #aefeff;
  backdrop-filter: blur(5px);
}

.percent {
  font-size: 32px;
  color: #00ffaa;
  margin-top: 10px;
}

.subtext {
  font-size: 14px;
  color: #66ffcc;
  margin-bottom: 10px;
}
.status {
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  text-align: center;
}

.status.uploaded {
  color: #00ffaa;
  background-color: rgba(0, 255, 170, 0.1);
}

.status.pending {
  color: #ffaa00;
  background-color: rgba(255, 170, 0, 0.1);
}

.status.na {
  /* Updated Not Applicable colour to #1ff1e9 per user request. */
  color: #1ff1e9;
  background-color: rgba(31, 241, 233, 0.1);
}
.client-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: #0a0a0a;
  color: #aefeff;
  box-shadow: -2px 0 10px rgba(0,255,255,0.2);
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.client-panel:not(.hidden) {
  transform: translateX(0);
}

.client-card h2 {
  margin-bottom: 10px;
  color: #00f0ff;
}
.client-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}

.client-panel.active {
  transform: translateX(0);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.hidden {
  transform: translateX(100%) !important;
}
canvas#waterCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
  width: 100vw;
  height: 100vh;
  display: block;
  background: #000; /* Optional */
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}
.hidden {
  transform: translateX(100%) !important;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1005;
  background: rgba(0, 0, 0, 0.7);
  inset: 0;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
}

.popup-window {
  background: #111;
  border-radius: 10px;
  padding: 20px;
  width: 600px;
  max-width: 95%;
  box-shadow: 0 0 20px #00f0ff88;
}

.popup-table {
  display: flex;
  flex-direction: column;
}

.popup-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 8px 0;
  border-bottom: 1px solid #444;
}

.popup-label {
  color: #66ffff;
  font-weight: bold;
}

.popup-value {
  color: #fff;
  padding-left: 10px;
}
  .tracking-form {
  background: #0a0a0a;
  border: 1px solid #00f0ff;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
}

.tracking-form input,
.tracking-form button {
  margin: 0.5rem;
  padding: 0.5rem;
}

.hidden {
  display: none;
}
