.login-card {
  max-width: 400px;
  margin: 80px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  text-align: center;
}

.login-card header {
  margin-bottom: 20px;
}

.login-card .logo-img {
  height: 50px;
  margin-bottom: 10px;
}

.login-card h2 {
  font-size: 24px;
  font-weight: 600;
  color: #002b5c; /* Dark blue brand color */
  margin-bottom: 20px;
}

.login-card .filter-group {
  margin-bottom: 16px;
  text-align: left;
}

.login-card input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-card button {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
}


.logout-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-right: 20px;
}

/* Logout button */
.btn-logout {
  background-color: #f3f4f6;
  color: #1f2933;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #e5e7eb;
}

/* User icon */
.user-icon {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ------------------------------
   Inventory numeric fields
------------------------------ */
.compact-input {
  width: 70px;
  box-sizing: border-box;
  padding: 2px 4px;
  font-size: 0.85rem;
}

/* Vault Navbar */

/* Left cluster: hamburger + welcome + avatar + logout */
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px; /* spacing between items */
}

/* Logout wrapper keeps welcome, avatar, and button aligned */
.logout-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Welcome text styling */
.welcome-text {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  line-height: 1; /* keeps baseline consistent */
}

/* Avatar circle with initials */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #ffd700; /* Gold background */
  color: #002b5c;            /* Dark blue text */
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

/* Logout button styling */
.btn-logout {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-logout:hover {
  background-color: rgba(255,255,255,0.12);
  border-color: #ffd700; /* gold accent on hover */
}

/* Ensure nav links stay horizontal on the right */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Protected links flow inline without breaking layout */
#protected-links {
  display: contents;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .nav-left {
    gap: 10px;
  }

  .logout-wrapper {
    gap: 8px;
  }

  .welcome-text {
    font-size: 14px;
  }

  .btn-logout {
    padding: 5px 10px;
    font-size: 13px;
  }
}

.vault-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background-color: #002b5c; /* Deep dark blue */
  color: white;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 500;

  /* Four distinct borders matching card colors */
  border-top: 4px solid #add8e6;   /* Light Blue - Orders */
  border-right: 4px solid #ffb6c1; /* Light Pink - Shipping */
  border-bottom: 4px solid #90ee90;/* Light Green - Stock */
  border-left: 4px solid #fffacd;  /* Light Yellow - Sales */

  /* Subtle depth */
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for navbar */
.vault-navbar:hover {
  background-color: #003b7a; /* Slightly lighter dark blue */
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Logo */
.vault-navbar .nav-logo img {
  height: 40px;
  width: auto;
}

/* Desktop nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-links li a:hover {
  color: #ffd700; /* Gold hover for premium feel */
  border-bottom: 2px solid #ffd700;
}

/* Hamburger icon (desktop hidden) */
.nav-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
}

/* ---------- Mobile dropdown menu ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;  /* show hamburger on mobile */
  }

  .nav-links {
    display: none;   /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 16px;
    background-color: #002b5c; /* Match navbar */
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 1000;

    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active {
    display: flex;   /* shown when JS toggles 'active' */
    transform: translateX(0);
    opacity: 1;
  }

  .nav-links li a {
    padding: 10px 0;
    color: white;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .nav-links li a:hover {
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
  }
}

/* Center the logo between toggle and links */
.nav-logo {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Control logo size (finger-tip-ish; tweak as you like) */
.vault-navbar .nav-logo img {
  height: 28px;   /* you can change this */
  width: auto;
}

/* ------------------------------
   Unified Table Styling (Inventory Look & Feel)
   Applies to all tables, including .summary-table
------------------------------ */
table,
.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  table-layout: fixed; /* ✅ Prevents column stretching */
}

/* Table cells */
table th, table td,
.summary-table th, .summary-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  white-space: normal;
  word-wrap: break-word;
  font-size: 0.9rem;
}

/* Table header */
table thead,
.summary-table thead {
  position: sticky;
  top: 0;
  background-color: #007bff;
  color: #fff;
  z-index: 2;
  font-weight: 600;
}

/* Zebra striping + hover */
table tbody tr:nth-of-type(odd),
.summary-table tbody tr:nth-of-type(odd) {
  background-color: #f9fbff;
}
table tbody tr:nth-of-type(even),
.summary-table tbody tr:nth-of-type(even) {
  background-color: #f3f4f7;
}

@media (hover: hover) {
  table tbody tr:hover,
  .summary-table tbody tr:hover {
    background-color: #e6f2ff;
  }
}


/* ------------------------------
   Mobile Responsive Tables
------------------------------ */
@media (max-width: 768px) {
  table,
  table thead,
  table tbody,
  table th,
  table td,
  table tr,
  .summary-table,
  .summary-table thead,
  .summary-table tbody,
  .summary-table th,
  .summary-table td,
  .summary-table tr {
    display: block;
  }

  table tr,
  .summary-table tr {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px;
  }

  table td,
  .summary-table td {
    display: flex;
    justify-content: space-between;
    text-align: left;
  }

  table th,
  .summary-table th {
    text-align: left;
  }
}


/* Toast */

.checkmark-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #4da3ff;
  margin: 0 auto;
  position: relative;
  animation: circleAnim 0.5s ease forwards;
}

.checkmark-check {
  width: 20px;
  height: 10px;
  border-left: 3px solid #4da3ff;
  border-bottom: 3px solid #4da3ff;
  transform: rotate(-45deg);
  margin: 10px auto;
  animation: checkAnim 0.5s ease forwards;
}

@keyframes circleAnim {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes checkAnim {
  from { opacity: 0; transform: scale(0) rotate(-45deg); }
  to { opacity: 1; transform: scale(1) rotate(-45deg); }
}

/* Brand name styling */

.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

/* Brand name styling */

.brand-title {
  font-size: 48px;
  font-weight: bold;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.logo-replace {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin: 0 4px;
}

.logo-replace img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  vertical-align: middle;
  animation: rotateLogo 3s linear infinite;
}

@keyframes rotateLogo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-name {
  font-family: "Montserrat", "Poppins", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.5rem;
  margin: 0;
  color: #333;
}

.brand-letter {
  font-weight: bold;
  color: #0066cc; /* bold blue */
}

/* Logo image */
.logo-img {
  width: auto;
  height: 40px;
}

/* History Container */
.history-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow-x: auto; /* ✅ Enables horizontal scroll if needed */
}

/* Page Title */
.page-title {
  text-align: center;
  margin-bottom: 20px;
}

/* Link cells */
.link-cell a {
  color: #0077cc;
  text-decoration: none;
}
.link-cell a:hover { text-decoration: underline; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.pagination button {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
  border-radius: 4px;
}
.pagination button.active {
  background: #0077cc;
  color: #fff;
  font-weight: bold;
}
.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Tooltip (global reusable) */
.hint-icon {
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
  color: #0077cc;
  font-size: 14px;
  position: relative;
}
.hint-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hint-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #222 transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hint-icon:hover::after,
.hint-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Special input states */
.input-readonly-error { background-color: #ffe6e6; }
.input-readonly { background-color: #f0f0f0; }
.input-highlight { background-color: #c7e4ee; }
.textarea-large { height: 80px; }

/* Header alignment */
.form-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ------------------------------
   Global Reset & Typography
------------------------------ */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
  line-height: 1.5;
  padding: 10px;
}

/* ------------------------------
   Dashboard Setup 2x2
------------------------------ */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo {
  height: 32px;
  width: auto;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   Card Color Themes
------------------------------ */
.inbound-card { background: #e3f2fd; }   /* light blue */
.outbound-card { background: #fce4ec; }  /* light pink */
.stock-card { background: #e8f5e9; }     /* light green */
.audit-card { background: #fff3e0; }     /* light orange */

/* ------------------------------
   Header & Footer
------------------------------ */
header {
  background: #0066cc;
  color: #fff;
  padding: 20px;
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  border-radius: 8px;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
  font-size: 15px;
}

/* ------------------------------
   Form Container
------------------------------ */
.form-container {
  max-width: 720px;          /* wider on desktop */
  margin: 32px auto;         /* a bit more breathing space */
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  padding: 32px 40px;        /* slightly more padding */
  box-shadow: 0 0 0 2px rgba(160, 196, 255, 0.4);
  border-image: linear-gradient(to right, #a0c4ff, #bde0fe);
  border-image-slice: 1;
}

.form-container form {
  max-width: 480px;
  margin: 0 auto;
}

.form-container form input,
.form-container form select,
.form-container form textarea {
  width: 100%;
  box-sizing: border-box;
}

/* ------------------------------
   Global Inputs
------------------------------ */
input,
select,
textarea {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-bottom: 16px;
  background-color: #fff;
}

select option[hidden] {
  color: #888;
}

/* ------------------------------
   Global Buttons
------------------------------ */
button {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.btn-primary {
  background-color: #007bff;
  color: #fff;
}
button.btn-primary:hover { background-color: #0056b3; }

button.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}
button.btn-secondary:hover { background-color: #5a6268; }

button.btn-orange {
  background-color: #FFA500;
  color: #000;
}
button.btn-orange:hover { background-color: #e69500; }

button.btn-clear {
  background-color: #ffcc00;
  color: #000;
}
button.btn-clear:hover { background-color: #e6b800; }

/* ------------------------------
   Form Actions (Global)
------------------------------ */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.form-actions button { min-width: 120px; }

/* ------------------------------
   Filter Bar (Global)
------------------------------ */
/* Filter + Button Row */
/* Filter + Button Row */
.filter-bar {
  display: flex;
  flex-wrap: nowrap;          /* keep in one row on larger screens */
  gap: 12px;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: 20px;
}

/* Each filter group (label + control) */
.filter-group {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

/* Labels */
.filter-bar label {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

/* Inputs / selects */
.filter-bar input[type="text"],
.filter-bar input[type="date"],
.filter-bar select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #f9f9f9;
  width: 180px;
  box-sizing: border-box;
}

/* Action buttons */
.filter-bar button {
  padding: 8px 16px;
  background-color: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;        /* keeps button text on one line */
  transition: background 0.2s ease;
}
.filter-bar button:hover {
  background-color: #004999;
}

/* Mobile: allow wrapping so nothing overflows */
@media (max-width: 768px) {
  .filter-bar {
    flex-wrap: wrap;
    align-items: flex-start;
  }
}

/* ------------------------------
   Breadcrumb Navigation
------------------------------ */
.breadcrumb-nav {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 24px;
  font-size: 0.9rem;
  overflow-x: auto;
  padding: 0 12px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  margin: 0 4px;
  color: #999;
}

.breadcrumb-item a {
  color: #0066cc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
  color: #004999;
}

.breadcrumb-item.active a {
  font-weight: 600;
  color: #ff5722 !important;
  border-bottom: 2px solid #ff5722;
  padding-bottom: 2px;
}

/* ------------------------------
   Landing Page Cards
------------------------------ */
.card-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  flex-wrap: wrap;
  max-width: 1200px;
}

.card {
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 220px;
  max-width: 100%;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card h2 { margin: 15px 0 10px; font-size: 1.2em; }
.card p { font-size: 0.9em; color: #666; }
.emoji { font-size: 2em; }

/* ------------------------------
   Success Popup
------------------------------ */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.popup.hidden { display: none; }

.popup-content {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  width: 100%;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.popup-content h3 { margin-bottom: 10px; color: #0066cc; }
.popup-content button {
  margin-top: 20px;
  padding: 10px 20px;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.popup-content button:hover { background: #005bb5; }

/* ------------------------------
   Toast Messages (continued)
------------------------------ */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9999;
  font-size: 14px;
}
.toast.visible { opacity: 1; }

/* ------------------------------
   Master Form Blocks
------------------------------ */
.form-block { margin-bottom: 24px; }

.input-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 6px;
  background-color: var(--input-bg, #fff);
  color: var(--text-color, #000);
  font-size: 14px;
}

.input-row button {
  padding: 10px 16px;
  background-color: var(--accent-color, #007bff);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 120px;
}

.input-row .emoji {
  font-size: 1.4em;
  margin-right: 6px;
}

.input-row input::placeholder {
  color: var(--placeholder-color, #888);
  font-style: italic;
}

.input-row button:hover {
  background-color: var(--accent-hover, #0056b3);
}

.list-display li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg, #f9f9f9);
  padding: 10px 14px;
  margin-bottom: 6px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-color, #000);
}

.list-display button {
  background: none;
  border: none;
  color: var(--danger-color, #d9534f);
  font-size: 18px;
  cursor: pointer;
  padding: 0 6px;
}

/* ------------------------------
   Footer with Logo
------------------------------ */
.footer-with-logo {
  margin-top: 40px;
  font-size: 0.85em;
  color: #888;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  height: 32px;
  width: auto;
}

/* ------------------------------
   Dashboard Layout
------------------------------ */
.dashboard-container {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.filters select {
  width: 210px;
  height: 40px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ------------------------------
   Modal Overlay
------------------------------ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 320px;
  width: 90%;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-around;
}

.modal-actions button {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
}

#confirmYesBtn {
  background-color: #d9534f;
  color: white;
}

#confirmCancelBtn {
  background-color: #ccc;
}

/* ------------------------------
   Tab Container + Buttons
------------------------------ */

.tab-container {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Tab Buttons */
.tab-btn {
  padding: 10px 18px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background-color: #e0e0e0;
}

.tab-btn.active {
  background-color: #0066cc;
  color: #fff;
  border-color: #0066cc;
}

/* Tooltip on hover */
.tab-btn[title] {
  position: relative;
}

/* Optional icon spacing */
.tab-btn::before {
  margin-right: 6px;
}

/* Responsive stacking */
@media (max-width: 600px) {
  .tab-container {
    flex-direction: column;
    gap: 10px;
  }
  .tab-btn {
    width: 100%;
    text-align: center;
  }
}

/* ------------------------------
   Tab Content Fade-In Animation
------------------------------ */

.tab-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 480px;
  width: 90%;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.modal-table th,
.modal-table td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

.modal-actions {
  margin-top: 16px;
}

.modal-actions button {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #0066cc;
  color: white;
}

.hidden {
  display: none;
}

.help-icon {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 12px;
}
