/* 🌙 Base Style */
body {
  background-color: #0e1a2b;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  padding: 20px;
  margin: 0;
  text-align: center;
}

/* 🌐 Responsive Containers */
input, button {
  padding: 10px;
  font-size: 16px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  width: 100%;
  box-sizing: border-box;
}

input {
  background: #1c2d3b;
  color: white;
  border: 1px solid #2d3f58;
}

button {
  background-color: #00cba9;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
button:hover {
  background-color: #00b395;
  transform: scale(1.03);
}

/* 📊 Data Tables */
.data-table {
  margin-top: 20px;
  width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
}
.data-table th, .data-table td {
  padding: 10px;
  border: 1px solid #2d3f58;
  color: #d1d1d1;
  text-align: left;
  word-break: break-word;
}
.data-table th {
  background-color: #1c2d45;
}

#result {
  overflow-x: auto;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 100px; /* Ensure last dropdown isn't cut off */
}

/* 📦 Summary Cards */
.summary-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.summary-card {
  background: linear-gradient(145deg, #1a3a55, #1e4566);
  border-radius: 12px;
  padding: 20px;
  font-size: 18px;
  font-weight: bold;
  min-width: 140px;
  box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

/* 🟢 Badge Styling */
.badge-wrapper {
  position: relative;
  display: inline-block;
  padding-right: 10px;
}
.notif-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  color: white;
  background-color: red;
  border-radius: 50%;
  font-size: 10px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.badge-top { background-color: #2ecc71; }
.badge-medium { background-color: #f1c40f; }
.badge-low { background-color: #e74c3c; }

/* 🔍 Search Bar */
.search-bar {
  padding: 8px;
  margin: 15px 0;
  background: #1c2d3b;
  border: 1px solid #2d3f58;
  color: #fff;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

/* 🎨 Login Section */
#loginSection {
  background: #162330;
  padding: 25px;
  border-radius: 12px;
  max-width: 350px;
  margin: 80px auto 30px;
  box-shadow: 0 0 10px #00cba9;
}

#clientProfileCard {
  background-color: #1a2e3f;
  padding: 12px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: left;
}

/* 📉 Charts */
canvas {
  display: block;
  margin: 40px auto;
  max-width: 900px;
  max-height: 500px;
  width: 100%;
  height: auto !important;
}

/* 📱 Export buttons */
.export-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

/* 🧠 Utility Classes */
.hidden {
  display: none !important;
}
#errorMsg {
  color: red;
  font-weight: bold;
}
#successAlert {
  background-color: #2ecc71;
  padding: 10px;
  border-radius: 6px;
  margin: 10px auto;
  font-weight: bold;
  max-width: 300px;
}
.top-buttons {
  flex-direction: row;
  justify-content: space-between;
  padding: 0 10px;
}
.export-buttons {
  bottom: 15px;
  right: 15px;
}

/* 🖨️ Print Mode */
@media print {
  .top-buttons, .export-buttons, #logoutSection, #successAlert, #clientProfileCard, input, button {
    display: none !important;
  }
}

/* ✅ Mobile Optimizations */
@media (max-width: 600px) {
  .summary-card {
    font-size: 16px;
    padding: 18px;
  }

  .data-table th, .data-table td {
    font-size: 14px;
    padding: 6px;
  }

  #loginSection {
    width: 90%;
    margin-top: 60px;
  }

  .export-buttons {
    right: 10px;
    bottom: 10px;
  }

  canvas {
    height: 300px !important;
  }
}

/* 📱 Client and Admin Container */
#dashboardContainer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  margin-top: 20px;
  align-items: center;
}

/* 🎛️ Toggle Dropdown Animation */
.client-info {
  display: none;
  background: #1c2d3b;
  margin-top: 10px;
  padding: 10px;
  border-left: 2px solid #00cba9;
  border-radius: 6px;
}
.client-info.show {
  display: block;
}



/* 📌 More Info Button + Arrow */
.more-info-btn {
  background-color: #00cba9;
  color: white;
  border: none;
  padding: 10px;
  width: 100%;
  max-width: 200px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.more-info-btn:hover {
  background-color: #00b395;
  transform: scale(1.05);
}

.more-info-btn .arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}
.more-info-btn .arrow.rotated {
  transform: rotate(90deg);
}

/* 📍 Top Buttons */
.top-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}
.top-buttons button {
  width: auto;
  padding: 10px 16px;
  font-size: 14px;
}

@media (min-width: 768px) {
  .top-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    justify-content: space-between;
  }

  .top-buttons button {
    width: auto;
  }
}

.arrow {
  transition: transform 0.3s ease;
}
.arrow.rotated {
  transform: rotate(180deg);
}
.badge-alert {
  background: #e74c3c;
  color: white;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: bold;
}
.spinner {
  font-size: 16px;
  font-weight: bold;
  color: #00cba9;
}

.clear-button {
  background-color: #00cba9;
  color: white;
  border: none;
  padding: 6px 12px;
  margin-left: 10px;
  border-radius: 6px;
  cursor: pointer;
}
.clear-button:hover {
  background-color: #019b85;
}
.highlight-order {
  background-color: #fffae6 !important; /* Light yellow */
  border-left: 4px solid #f1c40f; /* Gold border */
}
.pagination-controls {
  margin-top: 15px;
  text-align: right;
}

.pagination-controls button {
  margin: 2px;
  padding: 5px 10px;
  border: none;
  background-color: #444;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

.pagination-controls button.active {
  background-color: #00cba9;
}
.chart-wrapper {
  margin: 40px auto;
  max-width: 900px;
  background: #0f2236;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 203, 169, 0.2);
}
canvas {
  width: 100% !important;
  height: auto !important;
}
@media (max-width: 600px) {
  .chart-wrapper {
    padding: 15px;
  }
  canvas {
    max-height: 300px;
  }
}
.data-table td {
  vertical-align: top;
  line-height: 1.6;
  word-break: break-word;
  max-width: 350px;
}
.data-table {
  table-layout: auto;
}
.arrow.rotated {
  transform: rotate(180deg);
}
.pagination-container {
  margin-top: 15px;
  text-align: center;
}

.pagination-btn {
  background-color: #00cba9;
  color: white;
  padding: 6px 10px;
  margin: 3px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.pagination-btn:hover {
  background-color: #008c7d;
}

.pagination-btn.active {
  background-color: #004d40;
}
/* Common Pagination Button */
.pagination-btn {
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  border: none;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition: 0.3s;
}

/* Specific styles for Prev and Next */
.prev-btn {
  background-color: #f1a500; /* Orange */
}

.prev-btn:hover {
  background-color: #e18e00;
}

.next-btn {
  background-color: #00cba9; /* Green */
}

.next-btn:hover {
  background-color: #00b395;
}

/* Make pagination container look better */
.pagination-container {
  margin-top: 20px;
}
.refresh-buttons {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.top-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 1000;
}

.top-buttons button, .refresh-buttons button {
  background-color: #00cba9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.top-buttons button:hover, .refresh-buttons button:hover {
  background-color: #00b395;
}
.top-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.left-buttons {
  display: flex;
  gap: 15px;
}

.left-buttons button, #notificationButton {
  background-color: #00cba9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.left-buttons button:hover, #notificationButton:hover {
  background-color: #00b395;
}
#dashboardContainer {
  display: none;
}
#loginSection {
  display: block;
}
#successAlert {
  background-color: #2ecc71;
  padding: 10px;
  border-radius: 6px;
  margin: 10px auto;
  font-weight: bold;
  max-width: 300px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s ease;
}
#successAlert.show {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-buttons-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.dashboard-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.dashboard-buttons button {
  background: #00cba9;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.dashboard-buttons button:hover {
  background: #00b395;
}
.dashboard-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}
.dashboard-buttons button {
  background: #00cba9;
  color: white;
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.dashboard-buttons button:hover {
  background: #00b395;
}

/* 🆕 Top Buttons Styling */
.top-bar {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.left-buttons {
  display: flex;
  gap: 10px;
}

.right-buttons {
  display: flex;
  gap: 10px;
}

.left-buttons button, .right-buttons button {
  background-color: #00cba9;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.left-buttons button:hover, .right-buttons button:hover {
  background-color: #00b395;
}

/* 🆕 Bottom Right Export Buttons */
.export-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.export-buttons button {
  background-color: #00cba9;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
.export-buttons button:hover {
  background-color: #00b395;
}
/* 🛠 Fix More Info Dropdown Tables */
.client-info table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  table-layout: fixed; /* 💥 Force equal column distribution */
}

.client-info th, .client-info td {
  border: 1px solid #2d3f58;
  padding: 10px;
  text-align: center; /* Center text properly */
  vertical-align: middle;
  color: #d1d1d1;
  word-break: break-word;
  font-size: 14px;
}

.client-info th {
  background-color: #1c2d45;
  font-weight: bold;
}

.client-info td {
  background-color: #162330;
}
/* 📋 Management Info Styling */
.management-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #162330;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,203,169,0.2);
}

.management-info-table th, .management-info-table td {
  padding: 12px;
  text-align: center;
  border: 1px solid #2d3f58;
  font-size: 14px;
  color: #d1d1d1;
}

.management-info-table th {
  background-color: #1c2d45;
  font-weight: bold;
}

.management-info-table td {
  background-color: #0f1b2b;
}

.management-info-wrapper {
  margin: 40px auto;
  max-width: 1200px;
}
.track-cn-wrapper {
  margin-top: 20px;
  text-align: center;
}
#trackCnInput {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #2d3f58;
  width: 220px;
  margin-right: 10px;
}
.track-cn-wrapper button {
  background-color: #00cba9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.track-cn-wrapper button:hover {
  background-color: #00b395;
}
.profile-button-wrapper {
  margin-left: 10px;
}

#profileButtonContainer {
  position: fixed;
  top: 100px;
  left: 20px;
  z-index: 999;
}

#profileButton {
  position: fixed;
  top: 130px; /* Previously 100px */
  left: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border: 2px solid #00bcd4;
  border-radius: 50%;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 0 15px #00bcd4;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 600px) {
  #profileButton {
    top: 140px; /* Adjusted for smaller screen */
    left: 15px;
  }
}


#profileAvatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background-color: transparent;
  box-shadow: 0 0 12px #00e5ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

#profileAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ✅ Ensures it fills without distortion */
  border-radius: 50%;
  display: block;
}


/* 🔥 Upgraded Profile Section */
/* 🌟 Enhanced Profile Card Styling */
/* 🌈 Gradient Glass Card */
#profileSection {
  position: fixed;
  top: 100px;
  left: 100px;
  width: 340px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
  padding: 25px 20px;
  box-shadow: 0 12px 40px rgba(0, 203, 169, 0.3);
  font-family: 'Poppins', sans-serif;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.35s ease;

  /* 🆕 ADD THESE LINES */
  max-height: 80vh;
  overflow-y: auto;
  padding-right: 10px;
}


#profileSection.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 👤 Avatar */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1e2a38;
  border-radius: 10px;
  padding: 20px;
  color: white;
}

.profile-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00ffe7;
  margin-bottom: 15px;
}


/* 🏷️ Heading */
#profileCard h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #00e5ff;
}

/* 🪪 Rows */
.profileRow {
  display: flex;
  align-items: center;
  margin: 12px 0;
  gap: 10px;
}

.profileRow .label {
  font-weight: 600;
  color: #cccccc;
  min-width: 70px;
}

.profileRow .value {
  flex: 1;
  word-break: break-word;
  font-weight: 500;
  color: #ffffff;
}

/* 🌐 Website link */
#profileCard a {
  color: #00e5ff;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease-in-out;
}
#profileCard a:hover {
  text-decoration: underline;
  color: #00ffd5;
}

/* 🌀 Glow effect on hover */
#profileSection:hover {
  box-shadow: 0 16px 50px rgba(0, 203, 169, 0.5);
}

@media (max-width: 600px) {
  /* Move profile button down on mobile */
#profileButton {
  width: 70px;  /* Adjust as needed */
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

  #profileAvatar {
    width: 100px;
    height: 100px;
  }

  /* Make profile card fully responsive */
  #profileSection {
    left: 50%;
    top: 160px;
    transform: translateX(-50%) scale(1);
    width: 90vw;
    max-width: 350px;
    padding: 20px 15px;
  }

  #profileCard h2 {
    font-size: 18px;
  }

  .profileRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .profileRow .label {
    font-size: 14px;
    min-width: auto;
  }

  .profileRow .value {
    font-size: 14px;
    word-break: break-word;
  }
}
.data-table th, .data-table td {
  word-break: break-word;
  white-space: normal;
}
@media (max-width: 600px) {
  #profileSection {
    position: fixed;
    top: 140px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92vw !important;
    max-width: 360px;
    padding: 20px 15px;
    z-index: 9999;
    box-sizing: border-box;
  }

  .profileRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .profileRow .label,
  .profileRow .value {
    font-size: 14px;
    word-break: break-word;
    line-height: 1.4;
  }

  #profileCard h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
}
/* 🔧 Fix table header and cell wrapping on mobile */
/* ✅ Mobile Table Fix */
@media (max-width: 768px) {
  .data-table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
  }

  .data-table th,
  .data-table td {
    font-size: 13px !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;     /* ❗ Prevent line breaks */
    word-break: normal !important;      /* ❗ No breaking words */
    text-align: center;
  }

  .data-table thead {
    display: table-header-group;        /* Keeps header visible */
  }

  .data-table tbody {
    display: table-row-group;
  }
}
/* 📱 Force table scroll and prevent breakage */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 600px;  /* Ensures layout doesn't shrink weirdly on mobile */
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 10px;
  font-size: 14px;
  white-space: nowrap;      /* ✅ Prevents breaking lines */
  word-break: keep-all;     /* ✅ No forced word breaking */
  text-align: center;
}

@media (max-width: 600px) {
  .data-table th, .data-table td {
    font-size: 12px;
    padding: 8px;
  }

  .table-wrapper {
    margin-bottom: 20px;
  }
}
.see-plans {
  color: #00e5ff;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
  text-align: center;
  transition: color 0.3s;
}

.see-plans:hover {
  color: #00ffd5;
}

.availablePlans {
  margin-top: 15px;
  text-align: left;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.availablePlans h4 {
  font-size: 16px;
  color: #00e5ff;
  margin-bottom: 10px;
}
.availablePlans ul {
  padding-left: 20px;
  list-style-type: disc;
}
.availablePlans li {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}
#profileSection {
  max-height: 80vh; /* 🔥 Max 80% of screen height */
  overflow-y: auto; /* 🔥 Enable scrolling inside card */
  padding-right: 10px; /* 🔥 Small right padding to avoid scroll cutting */
}
.upload-btn {
  background-color: #00cba9;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
.upload-btn:hover 
  background-color: #00b395;
}
.profile-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}
.hidden {
  display: none;
}
object-fit: cover;
border-radius: 50%;
width: 100%;
height: 100%;
.profile-top {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-left: 10px;
  margin-bottom: 20px;
  margin-left: -7cm; /* Move image 2cm left */
}

.profile-img-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #1d2b3a, #203143);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px #00e0d0;
  flex-shrink: 0;
}

.profile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.profile-name-block h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #00e0d0;
}
#profileSection {
  position: fixed;
  top: 100px; /* Opens below the profile button */
  left: 80px; /* Opens to the right of the button */
  z-index: 999;
  background: #ffffff;
  color: #000;
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  width: 85vw;
  display: none;
}

#profileSection.show {
  display: block;
}

#profileCard {
  width: 100%;
}

.profile-img-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: #f0f0f0;
  margin: 0 auto 10px;
}

.profile-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

#profileName {
  text-align: center;
  color: #00cba9;
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.profileRow {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
}

.profileRow .label {
  font-weight: 600;
  color: #333;
}

.profileRow .value {
  text-align: right;
  color: #111;
  word-break: break-word;
}

.see-plans {
  display: inline-block;
  margin: 14px 0 10px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background-color: #1976d2;
  padding: 8px 16px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
}

.see-plans:hover {
  background-color: #0d47a1;
}
.see-plans {
  display: block;
  text-align: center;
  margin: 14px auto 10px;
}


.availablePlans {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  color: #000 !important;   /* ✅ Force black text */
  font-size: 13.5px;
}

.availablePlans h4 {
  font-size: 15px;
  color: #1976d2;
  margin-bottom: 8px;
}

.availablePlans ul {
  padding-left: 18px;
  margin: 0;
  color: #000 !important;    /* ✅ Ensure black list text */
}

.availablePlans li {
  color: #000 !important;    /* ✅ Ensure black text for list items */
  margin-bottom: 6px;
  line-height: 1.5;
}
.refresh-wrapper {
  position: relative;
  display: inline-block;
}
#truckAnimation {
  position: fixed;
  top: 0;
  left: 0;
  transform: scale(0);
  z-index: 9999;
  pointer-events: none;
}

#truckAnimation img {
  width: 80px;
  transition: transform 0.5s ease;
}

/* 🎬 Animation Keyframes */
@keyframes truckMove {
  0% {
    top: var(--start-top);
    left: var(--start-left);
    transform: scale(0.4) rotate(0deg);
  }
  30% {
    transform: scale(1.2) rotate(20deg);
  }
  50% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2) rotate(360deg);
  }
  80% {
    transform: scale(1.2) rotate(380deg);
  }
  100% {
    top: var(--start-top);
    left: var(--start-left);
    transform: scale(0.4) rotate(0deg);
  }
}

.truck-run {
  animation: truckMove 2.5s ease-in-out forwards;
}
/* Hidden by default */

button {
  padding: 10px 20px;
  background: linear-gradient(to right, #00cba9, #0ea5e9);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
button:hover {
  transform: scale(1.05);
}

#profileCircle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #00cba9, #00c3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2.5s infinite ease-in-out;
  box-shadow: 0 0 12px rgba(0, 203, 169, 0.7);
  position: relative;
  overflow: hidden;
}

#profileCircle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
#profileButton {
  position: fixed;
  top: 70px;
  left: 15px;
  z-index: 9999;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

#profileAvatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 203, 169, 0.6);
}

#profileAvatar lottie-player {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

@media (max-width: 768px) {
  #profileButton {
    top: 70px;
    left: 25px;
    width: 60px;
    height: 60px;
  }
}

.sci-fi-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.05), rgba(0, 0, 50, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}

.glow-text {
  font-size: 2rem;
  color: cyan;
  text-shadow: 0 0 15px cyan;
  animation: flicker 1s infinite;
  margin-top: 20px;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.status-badge-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.status-badge {
  background: linear-gradient(135deg, #00ffe7 0%, #00bfff 100%);
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 40px;
  box-shadow: 0 0 15px #00eaff;
  animation: glowPulse 2s infinite ease-in-out;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.status-count {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 6px #fff;
}

@keyframes glowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}



.status-badge:hover {
  transform: scale(1.05);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px #0ff;
  }
  50% {
    box-shadow: 0 0 25px #0ff;
  }
}


#loginSuccessAnimation {
  display: none !important;
}


/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a;
  color: #fff;
  padding: 20px;
}

/* LOGIN BOX */
#login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}
.login-box {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #555;
  background: #0f172a;
  color: #fff;
}
.login-box button {
  background: #3b82f6;
  color: #fff;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.login-box button:hover {
  background: #2563eb;
}

/* HEADER */
#dashboard header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
#dashboard h1 {
  font-size: 24px;
}
#dashboard button {
  background: #ef4444;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}
#dashboard button:hover {
  background: #dc2626;
}

/* FILTERS */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.filters input,
.filters select,
.filters button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #555;
  background: #1e293b;
  color: #fff;
}
.clear-button {
  background: #3b82f6;
  color: white;
  font-weight: bold;
}
.clear-button:hover {
  background: #2563eb;
}

/* TABLE */
.table-wrapper {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #1e293b;
}
.data-table th, .data-table td {
  border: 1px solid #334155;
  padding: 10px;
  font-size: 14px;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 200px;
}

.data-table th {
  background: #3b82f6;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}
.data-table tr:nth-child(even) {
  background: #0f172a;
}

/* BADGES */
.status-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 15px;
}
.status-badge {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: bold;
  display: inline-block;
  font-size: 14px;
}
.badge-confirm {
  background: #2563eb;
  color: white;
}
.badge-cancel {
  background: #dc2626;
  color: white;
}
.badge-pending {
  background: #facc15;
  color: #1e293b;
}
.badge-nopick {
  background: #9ca3af;
  color: #000;
}

/* EXPORT BUTTONS */
.export-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.export-buttons button {
  background: #10b981;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.export-buttons button:hover {
  background: #059669;
}

/* PAGINATION */
.pagination-container {
  margin-top: 15px;
  text-align: center;
}
.pagination-container button {
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 6px;
  background: #3b82f6;
  border: none;
  color: white;
  font-weight: bold;
  cursor: pointer;
}
.pagination-container button:disabled {
  background: #64748b;
  cursor: not-allowed;
}
/* Fix Save button inside table */
.data-table button {
  padding: 6px 12px;
  border-radius: 6px;
  background-color: #ef4444;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
  width: auto; /* ✅ Don't stretch full width */
  display: inline-block;
  white-space: nowrap;
}

.data-table button:hover {
  background-color: #dc2626;
}
/* General button styling */
button {
  padding: 10px 20px;
  background-color: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block; /* ✅ Prevent full row stretch */
  width: auto;           /* ✅ Only take needed space */
  white-space: nowrap;
}

button:hover {
  background-color: #2563eb;
}
.dropdown-container {
  position: relative;
  display: inline-block;
  margin-right: 10px;
}

.dropdown-btn {
  background-color: #dc2626;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #1e293b;
  color: white;
  min-width: 200px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 10px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.dropdown-content label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.dropdown-content input[type="checkbox"] {
  margin-right: 6px;
}

.clear-channel {
  background: none;
  color: #93c5fd;
  border: none;
  margin-top: 8px;
  font-size: 13px;
  cursor: pointer;
}
.hidden-row {
  background-color: #0f172a;
}

.dropdown-content-box {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  padding: 10px;
  border-top: 1px solid #334155;
}
.hidden-row {
  background-color: #0f172a;
}

.dropdown-content-box {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  padding: 10px;
  border-top: 1px solid #334155;
}

.more-btn {
  background-color: #dc2626;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}
.hidden-row {
  background-color: #0f172a;
}

.dropdown-content-box {
  font-size: 13px;
  padding: 10px;
  color: #cbd5e1;
  line-height: 1.5;
}

.more-btn {
  background-color: #dc2626;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}
/* Style the hidden row transition */
.hidden-row {
  transition: all 0.3s ease;
  background-color: #1e1e2f;
}

.hidden-row td {
  padding: 10px;
  font-size: 14px;
  color: #fff;
  line-height: 1.5;
}

.dropdown-content-box {
  padding: 10px;
  border-left: 4px solid #1abc9c;
  background-color: #2c2c3e;
  border-radius: 6px;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#orderTable tbody tr:hover {
  background-color: #2a2a40;
  transition: background-color 0.3s ease;
}
button {
  transition: all 0.3s ease;
}

button:hover {
  box-shadow: 0 0 10px #00ffff88;
  transform: scale(1.03);
}
tbody tr {
  animation: slideUp 0.4s ease both;
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.status-badge small {
  font-size: 11px;
  display: block;
  margin-top: 2px;
  color: #ccc;
}
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select,
.filter-bar button {
  padding: 6px 10px;
  font-size: 14px;
}
.summary-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.summary-cards .card {
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  min-width: 150px;
}

.card-confirm { background-color: #28a745; }
.card-cancel { background-color: #dc3545; }
.card-pending { background-color: #ffc107; color: #000; }
.card-nopick { background-color: #6c757d; }

