/* 🌙 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; }
/* Eye-catching styles */
.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
}

.badge.neutral { background-color: #e0e0e0; }

.phone-link {
  color: #1e90ff;
  font-weight: bold;
  text-decoration: none;
}

select {
  padding: 4px;
  font-weight: bold;
  border-radius: 5px;
}

/* Dynamic Dropdown Highlights */
select option[value="Pending"] {
  background-color: orange;
  color: #fff;
}
select option[value="Done"] {
  background-color: green;
  color: #fff;
}
select option[value="Yes"] {
  background-color: #4CAF50;
  color: #fff;
}
select option[value="No"] {
  background-color: #f44336;
  color: #fff;
}
select option[value="Could Be"] {
  background-color: #9e9e9e;
  color: #fff;
}
select option[value="Not Converted"] {
  background-color: #e53935;
  color: #fff;
}
/* Table cell content wrap */
td {
  white-space: normal;
  word-wrap: break-word;
  max-width: 160px;
  vertical-align: top;
  padding: 6px 8px;
}

/* Highlight for budget */
.badge.budget {
  background-color: #7e57c2;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
  max-width: 100px;
  overflow-wrap: break-word;
  word-break: break-all;
  white-space: normal;
}


/* Phone link style */
.phone-link {
  color: #1976d2;
  font-weight: bold;
  word-break: break-all;
  display: inline-block;
  max-width: 120px;
}

/* Input field alignment */
input[type="text"], select {
  width: 100%;
  max-width: 140px;
  box-sizing: border-box;
  padding: 4px;
  font-weight: bold;
}
/* 💡 Budget Badges */
#leadDashboard .badge.budget {
  background-color: #7e57c2;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: bold;
  display: inline-block;
  max-width: 100px;
  overflow-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.budget-low {
  background-color: #ef5350 !important;
}
.budget-mid {
  background-color: #ffa726 !important;
}
.budget-high {
  background-color: #66bb6a !important;
}

/* 🧾 Dropdowns */
#leadDashboard select {
  background-color: #121c2a;
  color: white;
  border: 1px solid #444;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 500;
}
#leadDashboard select option {
  background-color: #1f2d3d;
  color: white;
}

/* 🖱️ Row Hover */
#leadDashboard table tr:hover {
  background-color: #222c3a;
}

/* ✅ Wrap Long Text */
#leadDashboard td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 150px;
}

/* 📊 Optional: Summary Card */
.summary-cards {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: white;
}
.summary-cards .card {
  background-color: #1e293b;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 0 5px #000;
}
.badge.budget-low {
  background-color: #dc3545;
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

.badge.budget-medium {
  background-color: #ffc107;
  color: #000;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

.badge.budget-high {
  background-color: #28a745;
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}

.badge.budget-unknown {
  background-color: #6c757d;
  color: #fff;
  padding: 6px 12px;
  border-radius: 14px;
  font-weight: bold;
  display: inline-block;
  white-space: nowrap;
}
.lead-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}

.lead-header .badge {
  font-size: 13px;
  padding: 5px 10px;
}

.lead-details {
  background: #2b2b2b;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  color: #eee;
}

.lead-details p {
  margin: 6px 0;
}

.lead-row {
  background: #1a1a1a;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.lead-row:hover {
  background: #333;
}

@media (max-width: 768px) {
  .mobile-lead-card {
    background: #1e293b;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 203, 169, 0.1);
    transition: all 0.3s ease;
  }

  .mobile-lead-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    margin-bottom: 8px;
    color: #e2e8f0;
  }

  .mobile-lead-sub {
    font-size: 13px;
    color: #94a3b8;
  }

  .mobile-lead-card.open .mobile-lead-hidden {
    display: block;
  }

  .mobile-lead-card select {
    width: 100%;
    margin: 5px 0;
    padding: 6px 8px;
    border-radius: 6px;
    border: none;
    background: #0f172a;
    color: white;
  }
}
@media (max-width: 768px) {
  /* Fix parent grid/flex layouts */
  #orderTable,
  #orderTable table,
  #orderTable tbody,
  .lead-row,
  .lead-details-row {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  #orderTable td,
  .lead-row td,
  .lead-details-row td,
  .client-card,  /* If your card container has class */
  .card-container, 
  .data-row {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
    box-sizing: border-box;
    display: block;
  }

  body,
  html {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100vw !important;
  }
}
.followup-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  gap: 10px;
  margin-top: 5px;
  color: #cbd5e1;
}
.followup-line span {
  background-color: #1f2d3d;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 500;
  flex: 1;
  text-align: center;
}
.lead-details p {
  margin: 8px 0;
  font-size: 14px;
  color: #e2e8f0;
}
.lead-details select {
  background-color: #1e293b;
  color: white;
  padding: 4px 8px;
  border: 1px solid #444;
  border-radius: 6px;
  font-size: 13px;
  width: 100%;
}
.mobile-lead-card {
  background: #1e293b;
  color: white;
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.mobile-lead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.client-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #2563eb;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.5px;
}

.followup-line {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  background: #1a2538;
  padding: 8px;
  border-radius: 8px;
}

.mobile-lead-hidden {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.mobile-lead-card.open .mobile-lead-hidden {
  display: flex;
}

.dropdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.status-badge {
  position: relative;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 0 10px #00000033;
  background-color: #1e7533543212;
  color: white;
  cursor: default;
}

.status-badge:hover .incentive-tooltip {
  display: block;
}

.incentive-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 8px;
  border-radius: 6px;
  margin-top: 5px;
  width: 220px;
  box-shadow: 0 0 10px #00000055;
}
.vendor-toast {
  position: fixed;
  bottom: 30px;
  right: -400px; /* hidden off screen initially */
  background-color: #0e5073;
  color: #ffffff;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 50px;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: right 0.5s ease, opacity 0.3s ease;
  opacity: 0;
}

.vendor-toast.show {
  right: 30px;     /* visible position */
  opacity: 1;
}
.converted-transfer-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transfer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.transfer-tools select {
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.transfer-tools button {
  padding: 5px 8px;
  background-color: #00cba9;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.toast-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1abc9c;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  z-index: 9999;
}
.toast-message.show {
  display: block;
  animation: slideInRight 0.5s ease;
}


@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; display: none; }
}
.lead-name-with-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  position: relative;
}

.new-lead-pill {
  background-color: #00cba9;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: bold;
  position: relative;
}

.new-lead-pill::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 15px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #00cba9;
}
/* 🧱 Center all cell content */
#orderTable td,
#orderTable th {
  text-align: center;
  vertical-align: middle;
}

/* 🔽 Converted column wrapper – vertical stack */
#orderTable td > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 🔁 Align dropdown + button inside a row */
#orderTable td > div > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 🔘 Button + dropdown styling */
#orderTable select,
#orderTable button {
  height: 30px;
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 4px;
}

#orderTable button {
  background-color: #00cba9;
  color: white;
  border: none;
  cursor: pointer;
}
.status-textarea {
  width: 100%;
  min-width: 80px;
  max-width: 180px;
  resize: none;
  height: 28px;
  padding: 4px 6px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ccc;
  overflow: hidden;
  transition: all 0.2s ease;
  background: #fff;
}

.status-textarea:focus {
  height: 70px;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.4);
  z-index: 100;
}
.primary-btn {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
}

.primary-btn-small {
  background: #0284c7;
  color: white;
  border: none;
  padding: 5px 10px;
  font-size: 13px;
  border-radius: 4px;
  cursor: pointer;
}

.filter-dropdown {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-weight: 500;
}

.summary-table-header {
  display: grid;
  grid-template-columns: repeat(10, 1fr);  /* ✅ Adjusted */
  font-weight: bold;
  background: #1e293b;
  color: white;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.summary-user-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);  /* ✅ Fixed for 10 columns */
  padding: 12px;
  border-bottom: 1px solid #374151;
  color: white;
  background-color: #1f2937;
}

.session-log-container {
  display: none;
  background: #111827;
  color: #d1d5db;
  padding: 10px 20px;
  font-size: 13px;
}
.summary-table-row {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  padding: 10px;
  background: #1f2937;
  color: white;
  border-bottom: 1px solid #444;
}
.session-log-box {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 16px;
  margin-top: 10px;
  color: white;
  border-radius: 8px;
  width: 100%;
}

.admin-log-row {
  background: #1e293b;
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 10px;
  width: 100%;
}

.log-date-summary {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 10px;
  background: #334155;
  overflow: hidden;
}

.log-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #3c4b63;
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  flex-wrap: nowrap; /* ✅ Prevent wrapping to new row */
  gap: 20px;
  overflow-x: auto; /* ✅ Scroll if needed */
}


.log-date-header span {
  white-space: nowrap;
  min-width: fit-content;
  flex: 1;
  text-align: center;
}

.log-date-details {
  background: #1e293b;
  padding: 10px 15px;
  display: none;
  width: 100%;
}

.log-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2f3b52;
  padding: 8px 12px;
  margin-top: 4px;
  border-radius: 4px;
  width: 100%;
}

.log-entry span {
  flex: 1;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-user-row {
  background-color: #1e293b;
  transition: 0.2s ease;
}
.summary-user-row:hover {
  background-color: #2a374b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.admin-table-wrapper {
  max-height: 600px; /* Set desired max height */
  overflow-y: auto;
  position: relative;
}

.summary-table-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #1e293b; /* Must match table background */
  display: grid;
  grid-template-columns: repeat(10, 1fr); /* adjust column count if needed */
  font-weight: bold;
  padding: 12px;
  border-radius: 6px 6px 0 0;
  color: white;
}
.sidebar-btn {
  display: block;
  background: #1e293b;
  color: white;
  border: none;
  padding: 10px 14px;
  margin-bottom: 10px;
  text-align: left;
  width: 100%;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.sidebar-btn:hover {
  background: #334155;
}
/* Caller Summary Panel Layout */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.chart-card,
.summary-card {
  background-color: #1e293b;
  padding: 20px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.chart-card h3,
.summary-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
#adminSidebar button {
  background: #00e1c0;
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
#adminSidebar button:hover {
  background: #00f7e5;
}

