:root {
  --primary-red: #d62828;
  --dark-text: #1f2b3e;
  --light-bg: #f8f9fb;
  --white: #ffffff;
  --gray-border: #ddd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
}

/* ==================== NAVBAR ==================== */
.navbar {
  background-color: var(--dark-text);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.navbar h1 {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 1.6rem;
}

.profile-menu {
  position: relative;
}

.profile-btn {
  background: var(--primary-red);
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.profile-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--white);
  color: var(--dark-text);
  min-width: 180px;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown a {
  display: block;
  padding: 0.4rem 0;
  text-decoration: none;
  color: var(--dark-text);
}

.profile-dropdown a:hover {
  color: var(--primary-red);
}

.sign-out {
  color: var(--primary-red);
}

/* ==================== CONTAINER ==================== */
.inventory-section {
  background: white;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.full-width {
  max-width: 95%;
  width: 100%;
}

/* .header-actions {
  display: flow-root; */
  /* display: flex; */
  /* justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
} */

.header-actions {
    display: flex;
    /* display: flex; */
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 1rem;
    gap: 20px;
}

.actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.actions button {
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  color: white;
  transition: 0.2s ease;
}

.update-qty-btn { background-color: var(--primary-red); }
.upload-btn { background-color: #6c63ff; }
.add-btn { background-color: #4caf50; }
.add-btn-shipment{ background-color: #4caf50;}
.add-btn-shipment a { text-decoration: none; color: white;}
.delete-btn { background-color: #e63946; }

.actions button:hover {
  opacity: 0.9;
}

/* ==================== TABLE ==================== */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

table th {
  background-color: var(--dark-text);
  color: white;
  padding: 0.8rem;
  text-align: left;
  white-space: nowrap;
}

table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--gray-border);
  vertical-align: middle;
}

.th-content {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sort-arrow {
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  position: relative;
  top: 1px;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ==================== MODALS ==================== */
.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.modal-box {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.edit-form label {
  display: block;
  text-align: left;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-text);
}

.edit-form input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--gray-border);
  border-radius: 5px;
  font-size: 0.9rem;
}

.edit-form input:focus {
  outline: 2px solid var(--primary-red);
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.confirm-btn {
  background-color: var(--primary-red);
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cancel-btn {
  background-color: #e63946;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease;
}

.confirm-btn:hover,
.cancel-btn:hover {
  opacity: 0.9;
}

/* ==================== LOGIN PAGE ==================== */
.login-body {
  background-color: var(--light-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-container {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-text);
  margin-bottom: 1rem;
}

.login-logo span {
  color: var(--primary-red);
}

.login-container h2 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.login-container input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.95rem;
}

.password-wrapper {
  position: relative;
}

.show-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--primary-red);
  cursor: pointer;
  user-select: none;
}

.remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  justify-content: flex-start;
}

.remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary-red);
}

.remember label {
  cursor: pointer;
}

.login-btn {
  background-color: var(--primary-red);
  color: white;
  border: none;
  padding: 0.7rem;
  width: 100%;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.login-btn:hover {
  opacity: 0.9;
}

@media (max-width: 480px) {
  .login-container {
    padding: 1.5rem;
    width: 90%;
  }

  .login-logo {
    font-size: 1.5rem;
  }
}
/* =========================
   SETTINGS PAGE STYLES
========================= */
.settings-container {
  max-width: 600px;
  background: #fff;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.settings-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Avatar polish */
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff6b6b, #d62828);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 20px rgba(214, 40, 40, 0.25);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}


.profile-info p {
  margin: 0.3rem 0;
  line-height: 1.5;
}

.profile-info strong {
  display: inline-block;
  min-width: 130px;
  color: var(--dark-text);
}

.edit-btn {
  background: var(--primary-red);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 2rem auto 0;
  font-weight: 600;
}

.edit-btn:hover {
  background: #b91d1d;
}


/* Fix for checkbox alignment */
th:first-child, td:first-child {
  width: 50px;
  text-align: center;
}
td .doc-link {
  color: #4c63ff;
  cursor: pointer;
  text-decoration: underline;
}
td .doc-link:hover {
  color: #2a47d0;
}

.btn-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #007bff; /* Button color */
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-link:hover {
    background-color: #0056b3; /* Darker shade on hover */
}

th.table-a a {
    color: #fff !important;
    text-decoration: none !important;
} 

/* =========================
   SETTINGS PAGE - REFINED UI
========================= */
.settings-full {
  padding: 3rem 6rem;
  color: #1f2b3e;
  background: #f8f9fb;
  min-height: 100vh;
}

.settings-top {
  text-align: center;
  margin-bottom: 2rem;
}

.settings-grid {
  display: flex;
  gap: 2rem;
}

.info-block {
  height: 100%;
  display: flex;
  flex-direction: column;
}
/* Make columns equal height reliably with CSS Grid */
/* .settings-grid { */
  /* display: grid; */
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  /* gap: 2rem; */
  /* align-items: stretch; ensures equal card heights in each row */
/* } */

/* Profile card (left section) */
.profile-card {
  border-left: 4px solid #d62828;
  padding: 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

  /* 🔸 Height Control */
  min-height: 600px;   /* increase from 400 → 600 */
  max-height: 800px;   /* allow more room before scrolling */
  overflow-y: auto;    /* scroll if content grows beyond max-height */
}


/* Make rows look like neat key–value stripes */
.profile-card p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #e6e8ee;
  margin: 0; /* remove default paragraph margin */
}

.profile-card p:last-child {
  border-bottom: none;
}

/* Labels (left) */
.profile-card p > strong {
  font-weight: 700;
  color: #3a475e;
  min-width: 160px; /* keeps labels aligned */
}

/* Values (right) */
.profile-card p > span,
.profile-card p > a {
  color: #1f2b3e;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

/* Link styling for "Forgot Password?" */
.profile-card .forgot-link {
  color: #d62828;
  text-decoration: none;
  font-weight: 600;
}
.profile-card .forgot-link:hover {
  text-decoration: underline;
}

.same-height > .info-block {
  flex: 1;
  height: 100%;
}

.info-block {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Headline spacing */
.info-block h3 {
  margin-bottom: 1.25rem;
}

/* Subtext tone */
.subtext {
  color: #5b6780;
}

/* .info-block h3 {
  font-weight: 700;
  color: #d62828;
  margin-bottom: 1rem;
} */

.edit-form label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.8rem;
  display: block;
}

.edit-form input,
.edit-form textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 0.3rem;
  outline: none;
  transition: 0.3s;
}

.edit-form input:focus,
.edit-form textarea:focus {
  border-color: #d62828;
  box-shadow: 0 0 4px rgba(214, 40, 40, 0.3);
}

.keyword-input {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 0.5rem;
}

.add-field-btn {
  background: #d62828;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  padding: 0.2rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.add-field-btn:hover {
  background: #b91d1d;
}


.keyword-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.keyword-box {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.setting-delete-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.2rem;
  transition: 0.2s;
}

.setting-delete-btn:hover {
  transform: scale(1.2);
  color: #d62828;
}

.setting-confirm-btn {
  background: #d62828;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
  transition: 0.3s;
}

.setting-confirm-btn:hover {
  background: #b91d1d;
  transform: translateY(-2px);
}

/* Clickable headers */
/* .clickable-col {
  cursor: pointer;
  color: #e63946;
  transition: 0.2s;
}
.clickable-col:hover {
  color: #b91d1d;
  text-decoration: underline;
} */


/* Back Button */
.back-btn {
  background: #d62828;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.back-btn:hover {
  background: #b91d1d;
  transform: translateY(-2px);
}

/* Table buttons */
/* .sent-edit-btn, .save-btn {
  background: #d62828;
  color: white;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.3s;
}

.sent-edit-btn:hover, .save-btn:hover {
  background: #b91d1d;
  transform: scale(1.05);
} */

.replacement-select {
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.replacement-select:focus {
  border-color: #d62828;
  box-shadow: 0 0 3px rgba(214, 40, 40, 0.3);
}


/* Right card form spacing tweaks so both cards remain visually balanced */
.edit-form label { margin-top: 0.9rem; }
.setting-confirm-btn { margin-top: 1.25rem; }

/* Input hover/active niceties */
.edit-form input,
.edit-form textarea,
.keyword-box,
.replacement-select {
  background: #fcfdff;
}
.edit-form input:hover,
.edit-form textarea:hover,
.keyword-box:hover,
.replacement-select:hover {
  border-color: #bfc7d6;
}


.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }

  .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
  }

  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }

  input:checked + .slider {
    background-color: #4CAF50;
  }

  input:checked + .slider:before {
    transform: translateX(26px);
  }

  .sent-btn{
    cursor: pointer;
  }

  .sent-btn {
  background: none;
  border: none;
  color: #212b36;
  cursor: pointer;
  font-size: 16px;
  transition: 0.2s;
}
.sent-btn:hover {
  color: #469bf5;
}

/* Dropdown container */
.edit-form, .form-row, .inventory-section select {
    margin-bottom: 15px;
}

/* Label */
label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
    color: #333;
}

/* CUSTOM DROPDOWN STYLES */
  /* Custom Dropdown Container */
  .custom-select-wrapper {
      position: relative;
      display: inline-block;
      width: 260px;
  }

  .custom-select-trigger {
      width: 100%;
      padding: 10px 12px;
      font-size: 14px;
      border: 1px solid #d0d0d0;
      border-radius: 8px;
      background-color: #ffffff;
      color: #333;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
      background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
      padding-right: 36px;
  }

  .custom-select-trigger:hover {
      border-color: #888;
      background-color: #fafafa;
  }

  .custom-select-trigger:focus,
  .custom-select-trigger.active {
      outline: none;
      border-color: #2C7BE5;
      box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.2);
      background-color: #ffffff;
  }

  .custom-select-trigger.active {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      border-color: #2C7BE5;
  }

  .trigger-text {
      flex: 1;
      text-align: left;
  }

  .trigger-text.placeholder {
      color: #999;
  }

  /* Dropdown Container */
  .custom-select-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: #ffffff;
      border: 1px solid #2C7BE5;
      border-top: none;
      border-bottom-left-radius: 8px;
      border-bottom-right-radius: 8px;
      z-index: 1000;
      box-shadow: 0 8px 24px rgba(44, 123, 229, 0.15);
      display: none;
  }

.custom-select-dropdown.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

  /* Search Input Container */
  .custom-select-search {
      position: relative;
      padding: 10px;
      border-bottom: 1px solid #e8e8e8;
      background: #f9fbfd;
  }

  .search-icon {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      pointer-events: none;
  }

  .search-input {
      width: 100%;
      padding: 10px 32px 10px 36px;
      font-size: 14px;
      border: 1px solid #d0d0d0;
      border-radius: 6px;
      outline: none;
      transition: all 0.2s ease;
      background: #fff;
  }

  .search-input:focus {
      border-color: #2C7BE5;
      box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
  }

  .search-input::placeholder {
      color: #aaa;
  }

  .search-clear {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      width: 20px;
      height: 20px;
      font-size: 18px;
      color: #999;
      cursor: pointer;
      display: none;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.15s ease;
  }

  .search-clear:hover {
      background: #e8e8e8;
      color: #666;
  }

  .search-clear.visible {
      display: flex;
  }

  /* Dropdown List */
  .custom-select-list {
      max-height: 220px;
      overflow-y: auto;
      overflow-x: hidden;
      list-style: none;
      margin: 0;
      padding: 0;
  }

  /* No Results Message */
  .no-results {
      display: none;
      padding: 16px;
      text-align: center;
      color: #999;
      font-size: 14px;
  }

  .no-results.visible {
      display: block;
  }

  @keyframes slideDown {
      from {
          opacity: 0;
          transform: translateY(-8px);
      }
      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  .custom-select-item {
      padding: 12px 14px;
      font-size: 14px;
      color: #333;
      cursor: pointer;
      transition: all 0.15s ease-in-out;
      border-left: 3px solid transparent;
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .custom-select-item:hover {
      background-color: #e9f2ff;
      border-left-color: #2C7BE5;
      color: #1a5bc0;
      font-weight: 500;
  }

  .custom-select-item.selected {
      background-color: #dce9ff;
      border-left-color: #2C7BE5;
      color: #0d47a1;
      font-weight: 600;
  }

  .custom-select-item.selected::before {
      content: '✓';
      display: inline-block;
      width: 16px;
      height: 16px;
      background: linear-gradient(135deg, #2C7BE5 0%, #1e5cb8 100%);
      color: white;
      border-radius: 3px;
      text-align: center;
      line-height: 16px;
      font-size: 12px;
      font-weight: bold;
      flex-shrink: 0;
  }

  .custom-select-item.selected .item-text {
      flex: 1;
  }

  .item-text {
      flex: 1;
  }

  /* Scrollbar styling */
  .custom-select-list::-webkit-scrollbar {
      width: 8px;
  }

  .custom-select-list::-webkit-scrollbar-track {
      background: transparent;
  }

  .custom-select-list::-webkit-scrollbar-thumb {
      background: #d0d0d0;
      border-radius: 4px;
      transition: background 0.2s;
  }

  .custom-select-list::-webkit-scrollbar-thumb:hover {
      background: #b4b4b4;
  }

  /* Hidden select for form submission */
  .custom-select-wrapper select {
      display: none;
  }
/* end drop down----------------------------------------- */


.category-row:hover {
    background-color: #e8f4ff;
}
.subcategory-row {
  background-color: #fcfcfc;
}


.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* full filment modla css */
/* full filment modal css */
/* .modal { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.5); 
    justify-content: center; 
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 20px;
    width: 440px;  
    max-width: 95%;
    max-height: 85vh;   
    border-radius: 10px;
    overflow-y: auto;     
}

.scroll-box {
    max-height: 300px;  
    overflow-y: auto;
    padding-right: 10px;
}

.file-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.download-btn {
    background: #007bff;
    padding: 9px 8px;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.modal-actions {
    text-align: right;
    margin-top: 15px;
} */


/* Header bar like screenshot */
.modal-header {
    color: black;
    padding: 12px 20px;
    margin: -20px -20px 20px -20px;   /* stretch full width */
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Input section */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
}

/* Action buttons */
.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.confirm-btn,
.cancel-btn {
    background: #d9534f;
    color: white;
    padding: 8px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.cancel-btn {
    background: #dc3545;
}

.confirm-btn:hover,
.cancel-btn:hover {
    opacity: 0.8;
}



/* Full Page Layout */
.page-wrapper {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

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

/* Back Button */
.back-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}
.back-btn:hover {
    background: #555;
}

/* Table Styling */
.file-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 15px;
}

.file-table th, .file-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.file-table th {
    background: #333;
    font-weight: 600;
}

.file-table tr:hover {
    background: #f9f9f9;
}

/* Download Button */
.download-btn {
    background: #007bff;
    padding: 7px 12px;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}
.download-btn:hover {
    background: #45a049;
}


/*  ============ Wrapper =============== */
/* --- Search Box Styling --- */
.inv-search-box-wrapper {
    position: relative;
    width: 255px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* INPUT with more left padding */
.inv-search-box-wrapper input {
    width: 100%;
    padding: 10px 45px 10px 50px;  /* increased left padding */
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
}

/* SEARCH ICON with better spacing */
.inv-search-icon {
    position: absolute;
    left: 16px;   /* moved slightly right */
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    cursor: pointer;
    opacity: 0.7;

    z-index: 10;
    pointer-events: auto !important;
}


.inv-search-icon:hover {
    opacity: 1;
}

/* Clear Icon */
.inv-clear-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    cursor: pointer;
    opacity: 0.75;
    display: none;
}
.inv-clear-icon:hover {
    opacity: 1;
}


.toggle-container {
    display: flex;
    background: #e8e8e8;
    border-radius: 8px;
    margin-right: 120px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-btn {
    padding: 10px 28px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-btn.active {
    background: #2c3e50;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.3);
}

.toggle-btn:hover:not(.active) {
    background: #d0d0d0;
}


.inventory-wrapper {
    width: 100%;
    margin: 0 auto;
}

.inventory-header {
    background: #192536; /* dark navy */
    padding: 15px 25px;
}

.inventory-header h2 {
    color: red;
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.inventory-table-container {
    width: 100%;
    margin-top: 0;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.inventory-table thead tr {
    background: #192536;  /* same dark navy bar */
    color: white;
}

.inventory-table th,
.inventory-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.inventory-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.inventory-table tbody tr:hover {
    background: #eef2ff;
}

.progress-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    min-width: 400px;
}

.progress-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

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

.progress-header h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.progress-status {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.progress {
    width: 100%;
    height: 22px;
    background: linear-gradient(to bottom, #f5f5f5, #e8e8e8);
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
    box-shadow: 
        inset 0 1px 2px rgba(0,0,0,0.1),
        0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    border: 1px solid #d0d0d0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to bottom, #5dade2, #3498db, #2980b9) !important;
    transition: width 0.3s ease;
    position: relative;
    min-width: 0%;
    box-shadow: 
        inset 0 1px 0 rgba(255,255,255,0.3),
        inset 0 -1px 0 rgba(0,0,0,0.1);
}

.progress-bar-striped {
    background-image: 
        linear-gradient(to bottom, #5dade2, #3498db, #2980b9),
        linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent
        ) !important;
    background-size: auto, 20px 20px;
    animation: progress-bar-stripes 1s linear infinite;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% {
        background-position: 0 0, 20px 0;
    }
    100% {
        background-position: 0 0, 0 0;
    }
}

/* Percentage text positioning - outside the bar */
.progress-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 12px;
    color: #555;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.print-details {
    display: none; /* Hide file list completely */
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
}

.print-item {
    padding: 8px 10px;
    margin: 5px 0;
    font-size: 13px;
    border-radius: 4px;
    background: white;
    border-left: 3px solid transparent;
}

.print-item.success {
    color: #27ae60;
    border-left-color: #27ae60;
    background: #f0fff4;
}

.print-item.failed {
    color: #e74c3c;
    border-left-color: #e74c3c;
    background: #fff5f5;
}

.print-item.processing {
    color: #3498db;
    border-left-color: #3498db;
    background: #f0f8ff;
}

.close-btn {
    display: none;
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.close-btn:hover {
    background: #1976D2;
}