/* -------------------------------------------------- */
/* Feedback Button & Modal Styles                    */
/* -------------------------------------------------- */

.feedback-button {
  position: fixed;
  right: 20px;
  top: 33%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.95);
  border: 2px solid #666;
  border-radius: 50px;
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9998;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.feedback-button:hover {
  background: rgba(40, 40, 40, 0.98);
  border-color: #888;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.feedback-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.feedback-text {
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Honeypot field - anti-spam measure */
.feedback-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

/* Feedback Modal */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feedback-modal.hidden {
  display: none;
}

.feedback-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.feedback-modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.feedback-modal-header {
  padding: 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-modal-header h2 {
  margin: 0;
  color: #f0f0f0;
  font-size: 24px;
}

.feedback-modal-close {
  background: none;
  border: none;
  color: #999;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.feedback-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Feedback Form */
.feedback-form {
  padding: 20px;
}

.feedback-form-group {
  margin-bottom: 20px;
}

.feedback-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #d0d0d0;
  font-weight: 500;
}

.feedback-form-group input,
.feedback-form-group textarea {
  width: 100%;
  padding: 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.feedback-form-group input:focus,
.feedback-form-group textarea:focus {
  outline: none;
  border-color: #666;
  background: #333;
}

.feedback-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Feedback Type Buttons */
.feedback-type-buttons {
  display: flex;
  gap: 12px;
}

.feedback-type-btn {
  flex: 1;
  padding: 12px 16px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  color: #999;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.feedback-type-btn:hover {
  background: #333;
  border-color: #555;
}

.feedback-type-btn.active[data-type="problem"] {
  background: rgba(239, 68, 68, 0.1);
  border-color: #dc2626;
  color: #f87171;
}

.feedback-type-btn.active[data-type="suggestion"] {
  background: rgba(34, 197, 94, 0.1);
  border-color: #16a34a;
  color: #86efac;
}

.feedback-type-icon {
  font-size: 18px;
}

/* Bug-specific fields */
.feedback-bug-fields {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.feedback-bug-fields.hidden {
  display: none;
}

/* Form Actions */
.feedback-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.feedback-cancel {
  background: #444;
  color: #ccc;
}

.feedback-cancel:hover {
  background: #555;
  color: #fff;
}

.feedback-submit {
  background: #3b82f6;
  color: #fff;
}

.feedback-submit:hover {
  background: #2563eb;
}

.feedback-submit:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

/* -------------------------------------------------- */
/* Help Button & Modal Styles                        */
/* -------------------------------------------------- */

/* Help Button in Navigation */
.btn-help {
  background: transparent;
  border: 2px solid #666;
  color: #999;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 4px;
}

.btn-help:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #888;
  color: #fff;
  transform: scale(1.1);
}

/* Help Modal */
.help-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-modal.hidden {
  display: none;
}

.help-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.help-modal-content {
  position: relative;
  background: #1a1a1a;
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.help-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.help-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.help-modal-close {
  background: transparent;
  border: none;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.help-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.help-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.help-loading {
  text-align: center;
  padding: 40px;
  color: #999;
}

.help-content {
  color: #e5e5e5;  /* Lightened from #ccc for better readability */
  line-height: 1.6;
}

.help-content.hidden {
  display: none;
}

/* Help Content Sections */
.help-section {
  margin-bottom: 32px;
}

.help-section h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
}

.help-section h4 {
  color: #3b82f6;
  font-size: 16px;
  margin: 16px 0 8px 0;
}

.help-section p {
  margin-bottom: 12px;
  color: #e5e5e5;  /* Ensure paragraphs are readable */
}

.help-section ul {
  margin: 12px 0;
  padding-left: 24px;
  color: #e5e5e5;  /* Ensure lists are readable */
}

.help-section li {
  margin-bottom: 8px;
  color: #e5e5e5;  /* Ensure list items are readable */
}

.help-section code {
  background: rgba(59, 130, 246, 0.1);
  color: #93bbfc;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 14px;
}

.help-tip {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #16a34a;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  color: #e5e5e5;  /* Ensure tip text is readable */
}

.help-warning {
  background: rgba(251, 146, 60, 0.1);
  border-left: 3px solid #f97316;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
  color: #e5e5e5;  /* Ensure warning text is readable */
}

/* Navigation tabs for help content */
.help-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid #333;
  padding-bottom: 0;
}

.help-nav-tab {
  background: transparent;
  border: none;
  color: #999;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.help-nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.help-nav-tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
}

.help-tab-content {
  display: none;
}

.help-tab-content.active {
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on mobile */
  body {
    overflow-x: hidden;
  }
  
  .main-container,
  .admin-content {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .feedback-button {
    right: 10px;
    padding: 6px 10px;
  }
  
  .feedback-text {
    display: none;
  }
  
  .feedback-modal-content {
    width: 95%;
    max-height: 95vh;
  }
  
  .feedback-type-buttons {
    flex-direction: column;
  }
}

/* -------------------------------------------------- */
/* Base Theme & Reset                                */
/* -------------------------------------------------- */

/* Utility classes for JavaScript (CSP-compliant) */
.hidden { display: none !important; }
.show { display: block !important; }
.flex { display: flex !important; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #f0f0f0;
  box-sizing: border-box;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Center login views only */
.centered-login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 20px;
  font-weight: bold;
  color: #fff;
}

h1 {
  font-size: 4em;
  text-align: center;
}

/* -------------------------------------------------- */
/* Links                                              */
/* -------------------------------------------------- */

a:link,
a:visited,
a:hover,
a:active {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------- */
/* Layout                                             */
/* -------------------------------------------------- */

.layout-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex-grow: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title,
h2.section-title,
section > h2 {
  font-size: 2.2rem;
  color: #d0d5d1;
  text-align: center;
  margin: 80px auto 30px;
}

.subsection-title {
  font-size: 1.4rem;
  color: #4CAF50;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.form-hint {
  color: #999;
  font-size: 0.9em;
  margin-top: 5px;
  margin-bottom: 15px;
  font-style: italic;
}

footer {
  flex-shrink: 0;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
}

/* Footer styling */
.shared-footer {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #333;
  background-color: #121212;
}

h2, .sort-title {
  text-align: center;
  color: #b4edbf;
  font-size: 1.4rem;
  margin: 30px auto 20px;
}

.centered {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.actions-col {
  width: 120px;
  text-align: center;
  white-space: nowrap;
}

/* -------------------------------------------------- */
/* Inline Form Fix for Delete Button                 */
/* -------------------------------------------------- */

.inline-form {
  display: inline;
  padding: 0;
  margin: 0;
  background: none;
}

/* -------------------------------------------------- */
/* Optional Label Start Input Wrapping               */
/* -------------------------------------------------- */

.label-start {
  max-width: 300px;
  margin: 20px auto;
  text-align: center;
}

.label-start input {
  width: 100%;
}

/* -------------------------------------------------- */
/* Navigation                                         */
/* -------------------------------------------------- */

header h1,
header h2 {
  text-align: center;  
  margin-bottom: 40px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s;
  color: #fff;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  margin: 0;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 9999;
}

@media (max-width: 768px) {
  .hamburger {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 8px;
    position: fixed;
    top: 70px;
    right: 10px;
    width: 80%;
    max-width: 300px;
    z-index: 9998;
  }

  .nav-links.active {
    display: flex;
  }
}

/* -------------------------------------------------- */
/* Buttons                                            */
/* -------------------------------------------------- */
.add-btn {
  background-color: #1e88e5; /* Blue */
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.add-btn:hover:not(:disabled) {
  background-color: #00489b; /* Darker blue on hover */
}

.add-btn:disabled {
  background-color: #666; /* Gray for disabled */
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

#reprint-selected,
#bulk-action-form button.btn-red {
  font-size: 0.9rem;
  padding: 8px 16px;
  min-width: 140px;
}

.btn {
  display: inline-block;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.btn-blue   { background-color: #007bff; color: #fff; }
.btn-green  { background-color: #28a745; color: #fff; }
.btn-red    { background-color: #dc3545; color: #fff; }
.btn-purple { background-color: #6f42c1; color: #fff; }
.btn-print  { background-color: #08f055; color: #000; }
.btn-delete { background-color: #ff0000; color: #ffffff; }
.btn-gray   { background-color: #6c757d; color: #fff; }
.btn-orange { background-color: #ff6b35; color: #fff; }
.btn-yellow { background-color: #ffc107; color: #212529; }
.btn-bold   { font-weight: bold !important; }
.btn-success { background-color: #28a745; color: #fff; }

/* Button group for PDF/Image download options */
.btn-group {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.btn-group .btn,
.btn-group .btn-blue,
.btn-group .btn-green {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s;
  color: white;
  font-weight: 500;
}

.btn-group .btn-blue:hover {
  background-color: #0056b3;
}

.btn-group .btn-green:hover {
  background-color: #218838;
}

/* Small button variant */
.btn-sm {
  font-size: 0.875rem;
  padding: 5px 10px;
}

/* Compact button variant */
.btn-compact {
  padding: 4px 8px;
}

/* Narrow action cell for tables */
.action-cell-narrow {
  width: 1%;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px auto;
  flex-wrap: wrap;
}

.tab-buttons button {
  margin-bottom: 10px;
}

#your-inks .form-controls .btn {
  font-size: 0.9rem;
  padding: 6px 10px;           /* Reduced vertical padding */
  line-height: 1.2;            /* Prevent extra height */
  height: 40px;                /* Match input height exactly */
  min-width: 120px;
  box-sizing: border-box;
}

.view-pdf-btn {
  background-color: #facc15; /* Amber/Yellow */
  color: #000;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.view-pdf-btn:hover {
  background-color: #ffeeb6; /* Lighter yellow */
  text-decoration: underline;
}

/* -------------------------------------------------- */
/* Forms                                              */
/* -------------------------------------------------- */

form {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  max-width: 650px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
}

form input,
form select,
form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #2c2c2c;
  border: 1px solid #555;
  color: #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
}

/* Error state for input fields */
form input.error {
  border: 2px solid #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* ✅ Override global form rule ONLY for the Your Inks form */
#your-inks form {
  max-width: none !important;
  width: 100%;
  padding: 0;
  margin: 0;
  background: transparent;
}

#your-inks .form-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  align-items: flex-end;
}

/* Password input with toggle visibility */
.password-wrapper {
  position: relative;
  display: block;
  width: 100%;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  padding-right: 45px;
  width: 100%;
}

.settings-form .password-wrapper {
  margin-bottom: 0;
}

.toggle-visibility {
  position: absolute;
  top: 8px;
  right: 10px;
  cursor: pointer;
  font-size: 1.2em;
  color: #999;
  user-select: none;
  z-index: 1;
  padding: 5px;
  line-height: 1;
  height: calc(100% - 16px);
  display: flex;
  align-items: center;
}

.toggle-visibility:hover {
  color: #3399ff;
}

.login-container {
  background-color: #1e1e1e;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 450px;
  text-align: center;
}

.login-container h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.login-container .links {
  margin-top: 20px;
}

.login-container .links a {
  display: inline-block;
  font-size: 0.95rem;
  margin: 0 10px;
}

.login-container .links a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------- */
/* Cards                                              */
/* -------------------------------------------------- */

.card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  color: #fff;
}

.card.valid          { border-left: 4px solid #ffffff; }
.card.expiring-soon  { border-left: 4px solid #ffe07a; }
.card.expired        { border-left: 4px solid #ff7e7e; }

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card-grid .card {
  flex: 1 1 300px;
  max-width: 400px;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* ✅ Stack cards vertically on mobile */
@media (max-width: 768px) {
  .card-grid {
    flex-direction: column;
    align-items: center;
  }

  .card-grid .card {
    max-width: 90%;
    width: 100%;
    flex: none; /* prevent flex-grow */
    min-height: unset; /* remove any inherited height */
    padding: 20px 16px;
  }
  
  /* Pagination mobile styles */
  .pagination-wrapper {
    margin-top: 1.5rem;
    padding: 0.75rem 0;
  }
  
  .pagination {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .page-numbers {
    order: 2;
    justify-content: center;
    width: 100%;
  }
  
  .page-link {
    padding: 10px 14px;
    font-size: 0.95rem;
  }
  
  .pagination > a:first-child {
    order: 1;
    align-self: flex-start;
  }
  
  .pagination > a:last-child {
    order: 3;
    align-self: flex-end;
  }
  
  .pagination-info {
    font-size: 0.85rem;
    padding: 0 1rem;
  }
}

@media (max-width: 768px) {
  .admin-table {
    display: none; /* Hide standard table */
  }

  .mobile-admin-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }

  .admin-card {
    background-color: #2a2a2a; /* Updated background */
    border-left: 6px solid #3399ff;
    border-radius: 10px;
    padding: 16px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    width: 100%;
  }

  .admin-card .row {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .admin-card .actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
  }

  .admin-card .btn {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 5px;
  }

  .admin-card .btn-blue {
    background-color: #3399ff;
    color: white;
  }

  .admin-card .btn-red {
    background-color: #e63946;
    color: white;
  }
}

/* -------------------------------------------------- */
/* Tables                                             */
/* -------------------------------------------------- */
/* 🌐 Generic table wrapper */
.table-wrapper {
  overflow-x: auto;
  padding: 0 20px;
  margin: 40px auto;
  background-color: transparent;
}

/* ✅ Forcefully reset form wrapper and center the table */
#your-inks form#bulk-action-form {
  background: transparent;
  padding: 0;
  margin: 0 auto;
  border: none;
  max-width: none;
  width: 100%;
  display: block;
  text-align: center;
}

#your-inks .table-wrapper {
  text-align: center;
  width: 100%;
}

#your-inks .ink-table {
  min-width: 1200px;
  width: auto;
  margin: 0;
  border-collapse: collapse;
  background-color: #1e1e1e;
  color: #fff;
}

.centered-table {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-collapse: collapse;
}

/* 🧱 Session Inks Table */
#session-inks-table {
  width: 100%;
  min-width: 1000px;
  table-layout: fixed;
  border-collapse: collapse;
  background-color: #1e1e1e;
  color: #fff;
}

/* 💠 Shared table cell styling */
.ink-table th,
.ink-table td,
#session-inks-table th,
#session-inks-table td {
  padding: 8px 10px;
  border: 1px solid #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

/* ==========================================
   EXPIRED INK WARNING STYLES - SESSION TABLE
   ========================================== */
/* Expired ink row in session table */
#session-inks-body tr.expired-ink-row {
  background-color: rgba(255, 68, 68, 0.15) !important;
  border-left: 3px solid #ff4444;
}

#session-inks-body tr.expired-ink-row td {
  color: #ffaaaa;
}

#session-inks-body tr.expired-ink-row td.expired-date {
  color: #ff4444;
  font-weight: bold;
}

/* Expired ink card for mobile session view */
.mobile-session-wrapper .session-ink-card.expired-ink-card {
  background-color: rgba(255, 68, 68, 0.15);
  border: 2px solid #ff4444;
  position: relative;
}

.mobile-session-wrapper .session-ink-card.expired-ink-card::before {
  content: "EXPIRED";
  position: absolute;
  top: 5px;
  right: 5px;
  background: #ff4444;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

.mobile-session-wrapper .session-ink-card.expired-ink-card .expired-date {
  color: #ff4444;
  font-weight: bold;
}

/* Modal styles for expired ink warning */
#expired-inks-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

#expired-inks-modal .modal-content {
  background-color: #1e1e1e;
  border: 2px solid #ff4444;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

#expired-inks-modal h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.expired-modal-title {
  color: #ff4444;
}

#expired-inks-list,
.expired-inks-list {
  max-height: 300px;
  overflow-y: auto;
  margin: 20px 0;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 4px;
}

.expired-ink-item {
  padding: 5px 0;
  border-bottom: 1px solid #444;
}

.expired-ink-item:last-child {
  border-bottom: none;
}

.expired-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

/* Visual indicator for session table warning */
.session-expired-warning {
  background: #ff4444;
  color: white;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

/* 🔲 Prevent wrappers from restricting layout */
.artist-dashboard-wrapper,
#your-inks {
  width: 100%;
  max-width: 1200px;  /* Match session table width */
  margin: 0 auto;
  overflow-x: visible;
}

#your-inks .ink-table-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

#your-inks .ink-table {
  min-width: 1100px !important;
}

#your-inks .start-label-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

#your-inks .start-label-wrapper input {
  width: 120px !important;         /* Match button width */
  max-width: 100%;
  padding: 6px 10px;
  font-size: 0.9rem;
  text-align: center;
  background-color: #2c2c2c;
  border: 1px solid #555;
  color: #e0e0e0;
  border-radius: 5px;
  box-sizing: border-box;
}

#your-inks form#bulk-action-form #start_label {
  width: 60px !important;
  padding: 6px 8px;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 8px;
}

/* 🧠 Form layout inside ink tables */
.ink-table .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.ink-table input {
  flex: 1 1 48%;
}

.ink-table .btn {
  flex: 1 1 48%;
  max-width: 200px;
}

.styled-table.session-table tbody tr:nth-child(odd) {
  background-color: #737373;
}
.styled-table.session-table tbody tr:nth-child(even) {
  background-color: #2a2a2a;
}

  /* Only affects the sessions table */
  .sessions-table {
    width: 100%;
    max-width: none;  /* Remove max-width restriction to match filter container */
    margin: 0 auto;
  }

  /* Optional: Make cells more spacious */
  .sessions-table th,
  .sessions-table td {
    padding: 12px 16px;
    text-align: left;
  }

  /* Admin Dashboard specific styles for filter form and table alignment */
  .welcome-text {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 500;
  }

  .sort-filter-form {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
  }

  .sort-filter-form .form-inline-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  /* Group containers for desktop layout */
  .sort-filter-form .sort-order-group,
  .sort-filter-form .button-group {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .sort-filter-form select,
  .sort-filter-form input[type="text"] {
    flex: 1 1 200px;
    min-width: 150px;
    padding: 8px 12px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 5px;
  }

  .sort-filter-form button,
  .sort-filter-form a.btn {
    padding: 8px 20px;
    min-width: 80px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
  }
  
  /* Reset button specific styles */
  .reset-filters-btn {
    text-decoration: none !important;
    display: inline-block;
    margin-left: 10px;
  }
  
  /* ==========================================
     INLINE FILTER TOOLBAR - ULTRA COMPACT
     ========================================== */
  .inline-filters {
    margin-bottom: 12px;
  }
  
  .filter-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    background-color: #2c2c2c;
    padding: 8px 12px;
    border-radius: 4px;
    flex-wrap: wrap;
  }
  
  /* Mini controls for inline toolbar */
  .mini-select,
  .mini-input,
  .mini-date {
    padding: 4px 8px;
    font-size: 12px;
    height: 26px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 3px;
  }
  
  .mini-select {
    min-width: 80px;
    max-width: 130px;
  }
  
  .mini-input {
    width: 120px;
  }
  
  .mini-date {
    width: 110px;
  }
  
  .mini-btn {
    padding: 4px 12px;
    font-size: 12px;
    height: 26px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: none;
  }
  
  .mini-btn.btn-blue {
    background-color: #4a9eff;
    color: white;
  }
  
  .mini-btn.btn-gray {
    background-color: #666;
    color: white;
  }
  
  .filter-count {
    color: #a0a0a0;
    font-size: 11px;
    margin-left: auto;
    white-space: nowrap;
  }
  
  /* Keep old enhanced-filters for backward compatibility but simplified */
  .enhanced-filters {
    background-color: #2c2c2c;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
  }
  
  .enhanced-filters .filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    align-items: flex-end;
  }
  
  .enhanced-filters .filter-group {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .enhanced-filters .filter-group.custom-date-group {
    flex: 2;
    min-width: 240px;
  }
  
  .enhanced-filters label {
    color: #a0a0a0;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
  }
  
  .enhanced-filters .filter-select,
  .enhanced-filters .filter-input {
    padding: 6px 10px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
    height: 32px;
  }
  
  .enhanced-filters .filter-select:hover,
  .enhanced-filters .filter-input:hover {
    border-color: #666;
    background-color: #222;
  }
  
  .enhanced-filters .filter-select:focus,
  .enhanced-filters .filter-input:focus {
    outline: none;
    border-color: #4a9eff;
    background-color: #222;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.1);
  }
  
  .enhanced-filters .date-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  
  .enhanced-filters .date-inputs input[type="date"] {
    flex: 1;
    padding: 6px 10px;
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 13px;
    height: 32px;
  }
  
  .enhanced-filters .date-separator {
    color: #666;
    font-weight: 500;
    white-space: nowrap;
  }
  
  /* Custom dates visibility */
  #custom-dates {
    display: inline;
  }
  
  #custom-dates.hidden {
    display: none !important;
  }
  
  .date-separator-text {
    color: #666;
  }
  
  /* Clear button for input fields */
  .input-with-clear {
    position: relative;
  }
  
  .clear-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 20px;
    line-height: 1;
  }
  
  .clear-input:hover {
    color: #666;
  }
  
  /* Active Filters Display */
  .enhanced-filters .active-filters {
    padding: 8px 10px;
    background-color: #1a1a1a;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .enhanced-filters .filter-label {
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
  }
  
  .enhanced-filters .filter-tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #4a9eff;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
  }
  
  /* Filter Actions */
  .enhanced-filters .filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #444;
    margin-top: 8px;
  }
  
  .enhanced-filters .results-count {
    margin-left: auto;
    color: #a0a0a0;
    font-size: 12px;
    font-weight: 500;
  }
  
  /* Responsive adjustments for enhanced filters */
  @media (max-width: 768px) {
    .enhanced-filters .filter-row {
      flex-direction: column;
    }
    
    .enhanced-filters .filter-group {
      width: 100%;
    }
    
    .enhanced-filters .date-inputs {
      flex-direction: column;
      gap: 8px;
    }
    
    .enhanced-filters .filter-actions {
      flex-direction: column;
      align-items: stretch;
    }
    
    .enhanced-filters .filter-actions .btn {
      width: 100%;
      text-align: center;
    }
    
    .enhanced-filters .results-count {
      margin: 8px 0 0 0;
      text-align: center;
    }
  }
  
  /* Active filter count indicator */
  .active-filter-count {
    color: #ff6b35;
    font-size: 0.8em;
    margin-left: 10px;
  }

  /* Make the sessions table wrapper match the filter form width */
  #session-table-wrapper {
    width: 100%;
    background-color: #2c2c2c;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    box-sizing: border-box;
  }

  #session-table-wrapper .sessions-table {
    background-color: #1a1a1a;
  }

  /* Ensure proper spacing for undownloaded rows */
  .sessions-table tr.undownloaded {
    background-color: rgba(157, 209, 255, 0.1);
  }

  .sessions-table .badge {
    background-color: #ff6b6b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    display: inline-block;
  }

  .sessions-table .no-pdf {
    color: #666;
  }

  /* Mobile view for sessions */
  .mobile-sessions-wrapper {
    display: none;
  }

  @media (max-width: 768px) {
    #session-table-wrapper {
      display: none;
    }

    .mobile-sessions-wrapper {
      display: block;
      padding: 10px;
    }

    .mobile-session-card {
      background-color: #2c2c2c;
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 15px;
    }

    .mobile-session-card .row {
      margin-bottom: 8px;
      color: #fff;
    }

    .mobile-session-card .row strong {
      color: #9dd1ff;
      margin-right: 8px;
    }

    .mobile-session-card .btn-blue {
      display: inline-block;
      margin-top: 5px;
    }

    .mobile-session-card .badge {
      background-color: #ff6b6b;
      color: #fff;
      padding: 2px 8px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: bold;
      margin-left: 10px;
    }
  }
  
  /* Mobile button spacing fixes for admin pages */
  @media (max-width: 768px) {
    /* Ensure proper spacing between print and delete buttons on mobile */
    #print-form button[type="submit"] {
      margin: 10px;
      padding: 15px 20px;
      min-height: 50px;
      font-size: 16px;
    }
    
    /* Prevent overlapping touch areas */
    .delete-ink-form button,
    .btn-delete {
      margin: 10px;
      min-height: 44px;
    }
    
    /* Add clear visual separation between action buttons */
    .btn-green, .btn-red, .btn-blue {
      border: 2px solid currentColor;
      touch-action: manipulation; /* Prevent zoom on double-tap */
    }
    
    /* Ensure forms don't overlap on mobile */
    #print-form, .delete-ink-form {
      position: relative;
      z-index: auto;
    }
    
    /* Prevent mis-clicks between nearby buttons */
    .ink-table td {
      padding: 10px 5px;
    }
    
    /* Make touch targets larger on mobile */
    .ink-table input[type="checkbox"] {
      width: 20px;
      height: 20px;
      margin: 5px;
    }
  }

/* ==========================================
   INK INVENTORY STYLES
   ========================================== */
/* Admin ink table specific styles */
.admin-ink-table-wrapper {
  overflow-x: auto;
  padding: 0;
  margin: 40px 0;
}

.admin-ink-form {
  max-width: 1400px;
}

.admin-ink-table {
  min-width: unset;
  max-width: none;
}

.admin-checkbox-label {
  margin: 0 auto !important;
  padding: 0;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: fit-content !important;
  height: 100%;
}

.admin-checkbox-input {
  margin: 0 auto !important;
  display: block !important;
  width: auto !important;
  position: relative !important;
}

/* Center the Select column header */
.ink-table th.select-column {
  text-align: center !important;
}

/* Desktop table row coloring for ink status */
.ink-table tr.expired td {
  background-color: #ff7e7e !important;
  color: #000000;
}

.ink-table tr.expiring-soon td {
  background-color: #ffe07a !important;
  color: #000000;
}

.ink-table tr.valid td {
  background-color: #ffffff !important;
  color: #000000;
}

/* ==========================================
   QUANTITY CONTROLS 
   ========================================== */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-count {
  min-width: 30px;
  text-align: center;
  font-weight: 500;
}

.qty-btn {
  background-color: #ff4444;
  color: white;
  border: none;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  padding: 0;
  line-height: 1;
}

.qty-btn:hover {
  background-color: #cc0000;
}

.qty-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.qty-btn.decrement {
  background-color: #e74c3c;
}

.qty-btn.decrement:hover {
  background-color: #c0392b;
}

/* ==========================================
   INK MANAGEMENT PAGE STYLES
   ========================================== */
.ink-management .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 20px 20px;
}

.ink-management .card {
  background: #2d2d2d;
  padding: 40px;
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  flex: 1 1 300px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ink-management .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.ink-management .card h3 {
  margin-top: 0;
  font-size: 1.4em;
}

.ink-management .card p {
  margin-bottom: 16px;
}

/* Checkbox cell styling to prevent list styling */
.checkbox-cell {
  list-style-type: none !important;
  position: relative;
  padding: 8px !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Ensure checkbox cells in ink table are centered (override general td rule) */
.ink-table td.checkbox-cell {
  text-align: center !important;
}

.checkbox-cell::before,
.checkbox-cell::after {
  display: none !important;
  content: none !important;
}

/* ==========================================
   MANAGE ADMINS STYLES
   ========================================== */
.desktop-only { 
  display: block; 
}

.mobile-only { 
  display: none; 
}

@media (max-width: 768px) {
  .desktop-only { 
    display: none; 
  }
  
  .mobile-only { 
    display: block; 
  }

  .mobile-admin-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }

  .admin-card {
    background-color: #2a2a2a;
    border-left: 6px solid #3399ff;
    border-radius: 10px;
    padding: 16px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  }

  .admin-card .row { 
    margin-bottom: 8px; 
    font-size: 15px; 
  }
}

/* Password section styles for edit admin */
.password-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #3a3a3a;
}

.password-section h3 {
  color: #3399ff;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.form-help-text {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-style: italic;
}

.error-message {
  color: #ff4444;
  background-color: rgba(255, 68, 68, 0.1);
  border: 1px solid #ff4444;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Hide error messages when they have no content or have the hidden class */
.error-message:empty,
.error-message.hidden {
  display: none;
}
  .admin-card .actions { 
    margin-top: 10px; 
    display: flex; 
    gap: 8px; 
  }

  .admin-card .btn-blue { 
    background-color: #3399ff; 
    color: white; 
  }
  
  .admin-card .btn-red { 
    background-color: #e63946; 
    color: white; 
  }
}

/* Password strength message styling */
.password-strength-msg {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
}

.password-strength-msg.strength-weak,
.strength-weak {
  color: #f44336;  /* red */
}

.password-strength-msg.strength-moderate,
.strength-moderate {
  color: #ff9800;  /* orange */
}

.password-strength-msg.strength-strong,
.strength-strong {
  color: #4caf50;  /* green */
}

  .sessions-table td a.btn {
    padding: 6px 10px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
  }

  .sessions-table td .btn-blue {
    background-color: #3399ff;
    color: #fff;
    font-weight: bold;
  }

  .sessions-table td .btn-blue:hover {
    background-color: #2288ee;
  }

/* 📝 PIN note styling */
.pin-note {
  text-align: center;
  font-size: 1.1rem;
  color: #7bc0ff;
  margin-top: -5px;
  margin-bottom: 25px;
}

/* 👤 Artist Card Styles */
.artist-card-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.artist-card {
  background: #181818;
  padding: 20px 20px 10px;
  border-radius: 10px;
  width: 100%;
  max-width: 600px;
  border: 1px solid #333;
  margin-bottom: 10px;
}

.artist-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
  justify-content: center;
}

.artist-card .btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 0;
}

.artist-card input[type="text"],
.artist-card input[type="email"],
.artist-card input[type="password"] {
  font-size: 0.95rem;
  padding: 8px 12px;
}

.artist-card .btn {
  padding: 8px 16px;
  font-size: 0.95rem;
}

.artist-card form:last-child {
  margin-bottom: 0;
}

/* 🎨 Table row color status */
tr.expired         { background-color: #ff7e7e; color: #000; }
tr.expiring-soon   { background-color: #ffe07a; color: #000; }
tr.valid           { background-color: #ffffff; color: #000; }
tr.undownloaded    { font-weight: bold; }

.mobile-inks-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
}

/* Ensure mobile-inks-wrapper and its controls are visible on mobile */
@media (max-width: 768px) {
  .mobile-inks-wrapper {
    display: flex !important;
  }
  
  .mobile-inks-wrapper .mobile-form-controls {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.ink-card {
  position: relative;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 12px;
}

/* Left + Right edge indicators */
.ink-card::before,
.ink-card::after {
  content: "";
  position: absolute;
  top: 0;
  width: 6px;
  height: 100%;
}

.ink-card::before {
  left: 0;
}

.ink-card::after {
  right: 0;
}

.ink-card.expired::before,
.ink-card.expired::after {
  background-color: #ff7e7e;
}

.ink-card.expiring-soon::before,
.ink-card.expiring-soon::after {
  background-color: #ffe07a;
}

.ink-card.valid::before,
.ink-card.valid::after {
  background-color: #ffffff;
}

/* Card content layout */
.ink-info {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 10px;
}

.ink-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Yellow Add button */
.ink-actions .add-btn {
  background-color: #f2c500;
  color: #000;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.ink-actions .add-btn:hover {
  background-color: #ffd000;
}

.ink-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ink-actions .add-btn {
  background-color: #00489b;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  width: 100%; /* optional: make it stretch full width */
  max-width: 140px; /* or control the width manually */
}

.ink-actions .add-btn:hover {
  background-color: #00489b;
}

/* -------------------------------------------------- */
/* History sessions                                   */
/* -------------------------------------------------- */
.session-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  margin: 15px 0;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  color: #fff;
}

.session-meta {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #ccc;
}

.session-client {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.session-actions {
  text-align: center;
}

/* -------------------------------------------------- */
/* Pagination                                         */
/* -------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.pagination a {
  color: #fff;
  background-color: #222;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid #444;
  transition: background-color 0.2s;
}

.pagination a:hover {
  background-color: #333;
}

.pagination a.active,
.pagination span.active {
  background-color: #456afc; /* Highlight color for active page */
  color: #000;
  font-weight: bold;
  pointer-events: none;
}

.pagination span.page-link {
  color: #fff;
  background-color: #222;
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid #444;
  display: inline-block;
}

.pagination {
  display: flex;
  justify-content: center; /* already in your base */
  gap: 10px;
  margin: 40px auto;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .pagination.mobile-only {
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}



@media (max-width: 768px) {
  .pagination.mobile-only {
    justify-content: center;
  }
}



/* -------------------------------------------------- */
/* Alerts, Toasts, Utilities                          */
/* -------------------------------------------------- */

.alert {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.alert-red    { background-color: #dc3545; color: #fff; }
.alert-green  { background-color: #28a745; color: #fff; }
.alert-yellow { background-color: #ffc107; color: #000; }

/* Standalone toast-message divs (not the spans inside toast containers) */
div.toast-message.standalone {
  position: fixed;
  top: 20vh;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;           /* prevent overflowing screen */
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
  white-space: normal;       /* wrap long lines */
  word-wrap: break-word;
  text-align: center;        /* optional: center-align for readability */
}

div.toast-message.standalone.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

.alert.alert-red {
  font-size: 2em;            /* Double the base size */
  animation: blink 2s ease-in-out infinite; /* Slow blinking */
}

/* 🔁 Keyframes for blink animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Color Key */
.color-key {
  text-align: center;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.color-key span {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 6px;
  border-radius: 5px;
  color: #000;
  font-weight: bold;
}

.color-key .expired { background-color: #ff7e7e; }
.color-key .expiring-soon { background-color: #ffe07a; }
.color-key .valid { background-color: #ffffff; }

/* Ink Filters */
.ink-filters {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-left: 20px;
  padding: 8px 12px;
  background-color: rgba(0, 123, 255, 0.1);
  border: 2px solid #007bff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.ink-filter-input {
  width: 140px;
  padding: 6px 10px;
  font-size: 0.9rem;
  border: 2px solid #555;
  border-radius: 4px;
  background-color: #1e1e1e;
  color: #fff;
  transition: all 0.3s ease;
}

.ink-filter-input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #2a2a2a;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.ink-filter-input::placeholder {
  color: #aaa;
  font-style: italic;
}

.ink-filters .btn-sm {
  font-size: 0.9rem;
  padding: 6px 12px;
  background-color: #6c757d;
  transition: background-color 0.3s ease;
}

.ink-filters .btn-sm:hover {
  background-color: #5a6268;
}

.filter-icon {
  font-size: 1.1rem;
  margin-right: 5px;
}

.filter-label {
  color: #007bff;
  font-weight: bold;
  margin-right: 5px;
}

.filter-indicator {
  background-color: #28a745;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-left: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

@media (max-width: 444px) {
  .color-key {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* adds spacing between rows */
  }

  .color-key-title {
    margin-bottom: 4px;
  }

  .color-key span {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
  }

  .ink-filters {
    width: 100%;
    margin-left: 0;
    margin-top: 10px;
    flex-direction: column;
  }

  .ink-filter-input {
    width: 100%;
  }
}

/* ==========================================
   INK INVENTORY MOBILE FILTERS
   ========================================== */
@media (max-width: 768px) {
  /* Make the filter form more compact on mobile */
  .sort-filter-form {
    padding: 12px;
    margin-bottom: 12px;
  }
  
  .sort-filter-form .form-inline-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* Hide labels on mobile to save space */
  .sort-filter-form label {
    display: none;
  }
  
  /* Full width inputs and selects on mobile */
  .sort-filter-form select,
  .sort-filter-form input[type="text"] {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
    padding: 10px 12px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  /* Group Sort and Order together on same row */
  .sort-order-group {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  
  .sort-order-group select {
    flex: 1;
  }
  
  /* Buttons side by side on mobile */
  .button-group {
    display: flex;
    gap: 8px;
    width: 100%;
  }
  
  .sort-filter-form button,
  .sort-filter-form a.btn {
    flex: 1;
    padding: 10px 16px;
    min-width: auto;
    width: auto;
    font-size: 14px;
  }
  
  /* Compact sort title on mobile */
  .sort-title {
    font-size: 1.1rem;
    margin: 15px auto 10px;
  }
  
  /* Smaller section title */
  .section-title.large-title {
    font-size: 1.8rem;
    margin: 30px auto 15px;
  }
  
  /* Compact color key on mobile */
  .color-key {
    font-size: 0.85rem;
    padding: 8px;
    margin-bottom: 10px;
  }
  
  /* Active filter count badge */
  .active-filter-count {
    font-size: 0.85rem;
  }
}

/* -------------------------------------------------- */
/* Badges                                             */
/* -------------------------------------------------- */

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: bold;
  background-color: #f0f001;
  color: #000000;
  border-radius: 12px;
  text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-wrapper input[type="password"],
  .input-wrapper input[type="text"] {
    width: 100%;
    padding-right: 40px; /* Space for the eye icon */
  }

  .input-wrapper .toggle-visibility {
    position: absolute;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    user-select: none;
  }

/* -------------------------------------------------- */
/* Utilities & Responsive Helpers                     */
/* -------------------------------------------------- */

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }

.hidden { display: none !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }

/* Toast module utility classes */
.toast-content-flex { flex: 1 !important; }
.toast-icon { margin-right: 8px !important; font-size: 16px !important; }
.toast-close-hover { opacity: 1 !important; }
.toast-close-normal { opacity: 0.7 !important; }

/* Toast progress bar animation */
.toast-progress {
  transition: width linear !important;
}
.toast-progress.toast-progress-zero { 
  width: 0% !important; 
}

/* Toast animation classes - ensure they work on the toast container */
.toast.toast-visible { 
  opacity: 1 !important; 
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.toast.toast-hidden { 
  opacity: 0 !important; 
  transform: translateY(-20px) !important;
  pointer-events: none !important;
}

/* Fix for toast message text visibility - CRITICAL FIX */
.toast .toast-message,
.toast-content .toast-message,
span.toast-message,
.toast span:not(.toast-icon):not(.toast-close) {
  color: inherit !important;
  font-size: 14px !important;
  display: inline-block !important;
  position: static !important;
  transform: none !important;
  background: transparent !important;
  padding: 0 4px !important;
  margin: 0 !important;
  line-height: normal !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-indent: 0 !important;
  white-space: normal !important;
  overflow: visible !important;
  width: auto !important;
  height: auto !important;
  flex: 1 !important;
}

/* Force visibility for all toast types */
.toast-success .toast-message,
.toast-error .toast-message,
.toast-warning .toast-message,
.toast-info .toast-message,
.toast-success span:not(.toast-icon),
.toast-error span:not(.toast-icon),
.toast-warning span:not(.toast-icon),
.toast-info span:not(.toast-icon) {
  color: #ffffff !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure toast content is visible */
.toast-content {
  display: flex !important;
  align-items: center !important;
  color: white !important;
  gap: 8px !important;
  width: 100% !important;
}

/* Toast container base styles */
.toast-container-style {
  position: fixed !important;
  z-index: 9999 !important;
  pointer-events: none !important; /* Don't block clicks on page */
  max-width: 90vw !important;
  width: auto !important;
  /* Hide container when empty */
  min-height: 0 !important;
  background: transparent !important;
  border: none !important;
}

/* Ensure individual toasts can be clicked */
.toast-container-style .toast {
  pointer-events: auto !important; /* Allow clicks on toasts themselves */
}

/* Ensure toast container is invisible when empty */
#toast-container:empty,
.toast-container:empty,
#toast-container:not(:has(.toast)),
.toast-container:not(:has(.toast)) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* Hide toast elements with hidden class or empty content */
.toast.hidden,
.toast-hidden,
[id^="toast_"].hidden,
[id*="toast"].hidden,
[id^="toast_"]:empty,
.toast:empty,
.toast-visible:empty {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  pointer-events: none !important;
}

/* Override toast-visible if toast is empty */
.toast.toast-visible:not(:has(*)):not(:has(text)) {
  display: none !important;
}

/* Toast container position classes */
.toast-position-top-left {
  top: 20px !important;
  left: 20px !important;
}

.toast-position-top-center {
  top: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.toast-position-top-right {
  top: 20px !important;
  right: 20px !important;
}

.toast-position-bottom-left {
  bottom: 20px !important;
  left: 20px !important;
}

.toast-position-bottom-center {
  bottom: 20px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.toast-position-bottom-right {
  bottom: 20px !important;
  right: 20px !important;
}

.toast-position-center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Scanner module utility classes */
.scanner-overlay-style {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 250px !important;
  height: 250px !important;
  border: 2px dashed rgba(255, 0, 0, 0.8) !important;
  background: transparent !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.scanner-corner {
  position: absolute !important;
  width: 20px !important;
  height: 20px !important;
  border: 3px solid #ff0000 !important;
}

.scanner-corner-tl {
  top: -2px !important;
  left: -2px !important;
  border-right: none !important;
  border-bottom: none !important;
}

.scanner-corner-tr {
  top: -2px !important;
  right: -2px !important;
  border-left: none !important;
  border-bottom: none !important;
}

.scanner-corner-bl {
  bottom: -2px !important;
  left: -2px !important;
  border-right: none !important;
  border-top: none !important;
}

.scanner-corner-br {
  bottom: -2px !important;
  right: -2px !important;
  border-left: none !important;
  border-top: none !important;
}

.scanner-title {
  position: absolute !important;
  top: -30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  color: #ff0000 !important;
  font-weight: bold !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

.scanner-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }
.visible { display: block !important; }

.mobile-only { display: none; }
.desktop-only { display: block; }

@media (max-width: 768px) {
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}
/* -------------------------------------------------- */
/* Tooltip Styling (Enhanced + Mobile Support)        */
/* -------------------------------------------------- */

.tooltip-icon {
  position: relative;
  display: inline-block;
  cursor: help;
  font-weight: bold;
}

/* Tooltip content using ::after */
.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background-color: #fff;
  color: #000;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, transform 0.2s ease;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Show tooltip on hover */
.tooltip-icon:hover::after,
.tooltip-icon:focus::after,
.tooltip-icon.tooltip-active::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Touch support — toggle with JS class */
@media (hover: none) and (pointer: coarse) {
  .tooltip-icon::after {
    bottom: auto;
    top: 125%;
  }
}
/* -------------------------------------------------- */
/* Flash Messages      
/* -------------------------------------------------- */
.flash-container {
  position: relative;
  top: 20vh; /* Pushes it down to roughly the top third of viewport */
  z-index: 1000; /* Keeps it above other elements */
  transition: opacity 0.5s ease;
}

.flash-container.fade-out {
  opacity: 0;
}

.flash-messages {
  list-style: none;
  padding: 0;
  margin: 1em 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.flash-messages li.flash {
  background: white;
  color: black;
  border-left: 4px solid #888; /* default gray */
  padding: 0.75em 1em;
  margin-bottom: 0.5em;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  font-size: 0.95em;
}

/* Optional color enhancements by category */
.flash.success {
  border-left-color: #28a745; /* green */
}

.flash.error {
  border-left-color: #dc3545; /* red */
}

.flash.warning {
  border-left-color: #ffc107; /* yellow */
}

.flash.info {
  border-left-color: #17a2b8; /* blue */
}

/* Page header with back button */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header .section-title {
  margin: 0;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #5a6268;
  color: white;
}

/* Flash message for admin pages */
.flash-message {
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 0.95rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Close button for flash messages */
.close-flash {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  padding: 0;
  margin-left: 15px;
  transition: opacity 0.2s;
}

.close-flash:hover {
  opacity: 1;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}
/* -------------------------------------------------- */
/* print   
/* -------------------------------------------------- */
.print-section {
  max-width: 100%;
  margin: 40px auto;
  padding: 30px 20px;
  background-color: #111; /* Optional subtle contrast */
  border-radius: 10px;
  display: flex;
  justify-content: center;
}

#print-form {
  width: 100%;
  max-width: 1000px;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.styled-table th,
.styled-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #444;
  white-space: nowrap;
}

#print-form input[type="number"] {
  width: 80px;
  padding: 6px;
  background-color: #2c2c2c;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
}

.print-controls {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

/* -------------------------------------------------- */
/* For ink table   
/* -------------------------------------------------- */
/* Mobile Responsive Table View */

@media (max-width: 768px) {
  /* Hide table headers on small screens */
  .ink-table thead,
  table thead {
    display: none;
  }

  /* Stack rows and cells vertically */
  .ink-table,
  .ink-table tbody,
  .ink-table tr,
  .ink-table td,
  table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }

  /* Card styling per row */
  .ink-table tr,
table tr {
  margin-bottom: 20px;
  border: 1px solid #666;         /* Makes each card row outlined */
  border-left: 4px solid #999;    /* Optional: thicker left line */
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 5px #222 inset; /* Adds subtle inner edge */
}

  /* Cell styling */
  .ink-table td,
  table td {
    padding: 12px 10px;
    text-align: left;
    border: none;
    position: relative;
    background-color: #858080;
  }

  /* Label titles above values */
  .ink-table td::before,
  table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #9f9e9e;
    margin-bottom: 4px;
    font-size: 0.9em;
  }

  /* Inline form & delete button styling */
  .inline-form {
    display: inline-block;
    width: 100%;
  }

  .btn-delete {
    width: 100%;
    margin-top: 10px;
    text-align: center;
  }

  .checkbox-cell {
    text-align: center;
  }

  .ink-table td,
  table td {
    border-bottom: 1px solid #444;  /* Adds row-by-row lines */
  }
}

@media (max-width: 768px) {
  .mobile-only .btn-blue {
    background-color: #f9dc7d !important;
    color: #000 !important;
  }
}

/* ✅ Title Styling */
.app-title {
  font-size: 3rem;
  text-align: center;
  line-height: 1;
  margin: 20px 0;
  color: #fff;
  font-weight: bold;
}

/* Shop Name in Header */
.shop-name-header {
  font-size: 1.2rem;
  color: #00a8ff;
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
  letter-spacing: 0.05em;
}

/* ✅ Force break and line display on mobile */
.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: inline;
  }

  .app-title {
    font-size: 3rem;
    line-height: .5;
    margin: 20px auto;
  }

  .app-title .title-line {
    display: block;
  }
  
  .shop-name-header {
    font-size: 1rem;
    margin-top: 1.5rem;  /* Increased from 0.3rem to provide more spacing */
  }
}

@media (max-width: 768px) {
  .no-results {
    background-color: #2a2a2a;   /* dark theme background */
    color: #ff9999;              /* brighter red for mobile */
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ff9999;
  }
}

@media (max-width: 768px) {
  #print-form .styled-table tr {
    background-color: #d7d7d7; /* 🎯 Replace with your desired mobile row color */
  }

  #print-form .styled-table td {
    background-color: #474941; /* 🎯 Replace with your desired mobile cell color */
  }
}

body.auth-bg::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: -1;
}

#scanner-controls {
  display: flex;
  justify-content: center;
  gap: 10px;               /* space between buttons */
  margin-top: 20px;
}

.qr-overlay-box,
.barcode-overlay-box {
  position: absolute;
  border: 3px dashed red;
  width: 60%;
  height: 60%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  display: none; /* will be toggled visible when scanner starts */
}

.audit-controls {
      margin: 20px;
      display: flex;
      gap: 10px;
      align-items: center;
    }
    .matched-row {
      background-color: #2e7d32 !important;
      color: white;
    }
    .audit-table th, .audit-table td {
      padding: 8px 12px;
    }
    .audit-table {
      width: 100%;
      border-collapse: collapse;
    }
    .audit-table th {
      background: #333;
      color: #fff;
    }
    .audit-table td {
      background: #1e1e1e;
    }
    .audit-table tr:nth-child(even) td {
      background: #2a2a2a;
    }

    .matched-row {
  background-color: #ffe013 !important;
  transition: background-color 0.3s ease;
}

/* ==========================================
   AUDIT SCANNER ENHANCEMENTS
   ========================================== */
   
/* Modal for Multiple Match Selection */
#match-selection-modal {
  display: none;
  position: fixed;
  z-index: 2500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

#match-selection-modal .modal-content {
  background-color: #2a2a2a;
  margin: 10% auto;
  padding: 0;
  border: 1px solid #444;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#match-selection-modal .modal-header {
  padding: 20px;
  background-color: #1e1e1e;
  border-bottom: 1px solid #444;
  border-radius: 8px 8px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#match-selection-modal .modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
}

#match-selection-modal .modal-close {
  font-size: 28px;
  font-weight: bold;
  line-height: 20px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

#match-selection-modal .modal-close:hover {
  color: #fff;
}

#match-selection-modal .modal-body {
  padding: 20px;
  color: #fff;
}

#match-selection-modal .match-list {
  margin: 20px 0;
  max-height: 300px;
  overflow-y: auto;
}

#match-selection-modal .match-item {
  padding: 15px;
  margin: 10px 0;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #1e1e1e;
  transition: background-color 0.2s;
}

#match-selection-modal .match-item:hover {
  background-color: #333;
}

#match-selection-modal .match-item input[type="radio"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

#match-selection-modal .match-item label {
  display: inline-block;
  cursor: pointer;
  color: #fff;
  width: calc(100% - 30px);
}

#match-selection-modal .modal-actions {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Status Indicators for Audit */
.status-matched {
  color: #4caf50;
  font-weight: bold;
  font-size: 1.1em;
}

.status-partial {
  color: #ffc107;
  font-weight: bold;
  font-size: 1.1em;
}

.status-pending {
  color: #999;
  font-size: 1.1em;
}

.partial-match {
  background-color: #3d3400 !important;
  transition: background-color 0.3s ease;
}

/* Override for completed matched rows */
.matched-row.matched-row {
  background-color: #1b5e20 !important;
}

/* Audit page row highlighting */
.row-highlight {
  background-color: #fff3cd;
}

.row-matched {
  background-color: #d4edda;
}

/* Modal visibility states */
.modal.modal-visible {
  display: block;
}

.modal.modal-hidden {
  display: none;
}

/* ==========================================
   UNIFIED ADMIN CARD STYLES
   Used on: Reports, Settings, Artists Landing
   ========================================== */
.admin-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  justify-content: center; /* Center cards horizontally */
}

.admin-card {
  background: #2a2a2a;
  border: 2px solid #404040;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 300px;
  flex: 0 0 auto;
  color: white;
  transition: all 0.3s ease;
  cursor: default;
}

.admin-card:hover {
  border-color: #00a8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.2);
}

.admin-card h3 {
  margin-top: 0;
  font-size: 20px;
  color: white;
  margin-bottom: 12px;
}

.admin-card p {
  margin: 10px 0;
  font-size: 14px;
  color: #ddd;
  line-height: 1.5;
}

.admin-card .btn {
  margin-top: 15px;
  width: 100%;
  text-align: center;
}

/* Icon for admin cards (optional) */
.admin-card .card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00a8ff;
}

/* Legacy selectors for backward compatibility */
.report-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.report-card {
  background: #2a2a2a;
  border: 2px solid #404040;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 300px;
  flex: 0 0 auto;
  color: white;
  transition: all 0.3s ease;
}

.report-card:hover {
  border-color: #00a8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.2);
}

.report-card h3 {
  margin-top: 0;
  font-size: 20px;
  color: white;
}

.report-card p {
  margin: 10px 0;
  font-size: 14px;
  color: #ddd;
}

.report-card .btn {
  margin-top: 10px;
}

.scanner-wrapper {
  position: relative;
  width: 100%;
  height: 400px; /* Increased height for better visibility */
  background: #000;
  overflow: hidden;
}

.scanner-wrapper.d-none {
  display: none !important;
}

#qr-scanner-wrapper, #barcode-wrapper {
  margin-top: 10px;
  border-radius: 8px;
}

#qr-scanner {
  width: 100%;
  height: 100%;
  position: relative;
}

#barcode-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.barcode-overlay-box {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80px;
  border: 2px dashed red;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
}

.audit-schedule-card {
  margin-top: 20px;
  padding: 16px;
  background-color: #1e1e1e;
  border: 1px solid #333;
  max-width: 800px;
}
.audit-schedule-card h3 {
  color: #aef3c0;
  margin-bottom: 10px;
}
.audit-schedule-card ul {
  list-style: disc;
  padding-left: 20px;
}
.audit-schedule-card li {
  margin-bottom: 6px;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  width: 100%;
}

.audit-item {
  padding: 8px 12px;
  background-color: #2a2a2a;
  border-radius: 6px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

.audit-item.done {
  background-color: #1a2f1a;
  border: 1px solid #2a4a2a;
}

.audit-item.no-inventory {
  background-color: #1f1f1f;
  border: 1px solid #333;
  opacity: 0.7;
}

.audit-check {
  color: #4ade80;
  font-weight: bold;
  margin-left: auto;
}

.audit-x {
  color: #ef4444;
  font-weight: bold;
  margin-left: auto;
}

.audit-na {
  color: #666;
  font-weight: bold;
  margin-left: auto;
  font-size: 18px;
}

/* Responsive audit grid - single column on mobile */
@media (max-width: 768px) {
  .audit-schedule-card {
    max-width: 100%;
  }
  
  .audit-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Session History Specific Tweaks */
.session-history-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 20px;
  align-items: flex-end;
}

.filter-form .form-group {
  flex: 1 1 200px;
  min-width: 180px;
}

.filter-form .form-group.full-width {
  flex: 1 1 100%;
}

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

.filter-form input[type="text"],
.filter-form input[type="date"] {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Cleaned admin-table styles */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  border: 1px solid #444;
  padding: 10px;
  text-align: left;
  background-color: #1c1c1c;
  color: #f5f5f5;
}

.admin-table tr:nth-child(even) td {
  background-color: #252525;
}

.admin-table thead {
  background-color: #2c2c2c;
  color: #fff;
}

/.table {
  border-collapse: collapse;
  width: 100%;
}

.table th,
.table td {
  border: 1px solid #444;
  padding: 10px;
  text-align: left;
  background-color: #1c1c1c;
  color: #f5f5f5;
}

.table tr:nth-child(even) td {
  background-color: #252525;
}

.table thead {
  background-color: #2c2c2c;
  color: #fff;
}

/* ==========================================
   PAGINATION STYLES
   ========================================== */
.pagination-wrapper {
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid #333;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.page-numbers {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.page-link {
  background-color: #1a73e8;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-block;
  min-width: 36px;
  text-align: center;
}

.page-link:hover:not(.disabled):not(.active) {
  background-color: #0c5ec4;
  transform: translateY(-1px);
}

.page-link.active {
  background-color: #2563eb;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
  cursor: default;
}

.page-link.disabled {
  background-color: #666;
  opacity: 0.5;
  cursor: not-allowed;
}

.page-ellipsis {
  color: #999;
  padding: 0 8px;
  user-select: none;
}

.pagination-info {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Legacy pagination button styles for backward compatibility */
.pagination-button {
  background-color: #1a73e8;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
}

.pagination-button:hover {
  background-color: #0c5ec4;
}

.pagination-button.active {
  background-color: #2563eb;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #2563eb;
}

.log-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.log-table th,
.log-table td {
  border: 1px solid #ccc;
  padding: 0.6rem;
  text-align: center;
  vertical-align: middle;
}

.log-table th {
  background-color: #000000;
  font-weight: bold;
}

.log-table tr:nth-child(even) {
  background-color: #7f7e7e;
}

.log-table tr:hover {
  background-color: #9dd1ff;
}

.filter-form {
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
  padding: 1rem 1.5rem;
  background-color: #1c1c1c; /* darker background */
  border-radius: 8px;
  box-shadow: none; /* remove shadow */
  color: #fff;
}

.filter-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
}

.filter-form label {
  text-align: right;
  font-weight: 600;
  color: #ccc;
}

.filter-form input,
.filter-form select {
  width: 100%;
  padding: 0.35rem 0.6rem;
  border: 1px solid #444;
  background-color: #2a2a2a;
  color: #fff;
  border-radius: 5px;
  font-size: 0.9rem;
}

.filter-form button {
  grid-column: span 2;
  justify-self: center;
  padding: 0.45rem 1.2rem;
  font-weight: 600;
}


.filter-form button {
  grid-column: span 2;
  justify-self: center;
  padding: 0.5rem 1.2rem;
}

.filter-form-container {
  max-width: 600px;        /* Try shrinking to see the effect */
  margin: 0 auto;          /* Centers it horizontally */
  width: 100%;
}

.filter-form {
  width: 100%;             /* Prevent overflow */
  box-sizing: border-box;
}

.filter-form .form-group {
  flex: 1 1 auto;          /* Let them shrink */
  min-width: 0;            /* Prevent flex-basis override */
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  background-color: #1c1c1c;
  color: #fff;
}

.styled-table th,
.styled-table td {
  border: 1px solid #444;
  padding: 0.6rem 0.9rem;
  text-align: left;
}

.styled-table thead {
  background-color: #333;
  font-weight: 600;
}

.styled-table tbody tr:nth-child(even) {
  background-color: #2a2a2a;
}

.styled-table tbody tr:nth-child(odd) {
  background-color: #1f1f1f;
}

.styled-table a {
  color: #4ea9ff;
  text-decoration: underline;
}

.styled-table tbody tr:hover {
  background-color: #575757;
}

* {
  border: none;
  outline: none;
  box-shadow: none;
}

.checkbox-cell {
  list-style-type: none !important;
  position: relative;
}

.checkbox-cell::before,
.checkbox-cell::marker {
  content: none !important;
  display: none !important;
}

/* -------------------------------------------------- */
/* Artist Dashboard Styles                            */
/* -------------------------------------------------- */

/* Toast message spans inside toast containers - Only target the actual text span */
.toast-content > span.toast-message {
  position: static !important;
  display: inline-block !important;
  color: inherit !important;
  font-size: 14px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  left: auto !important;
  width: auto !important;
  max-width: none !important;
  line-height: normal !important;
  text-align: left !important;
}

/* Toast positioning classes for standalone divs */
div.toast-message.standalone.toast-top {
  top: 20vh !important;
}

div.toast-message.standalone.toast-bottom {
  bottom: 20px !important;
}

/* Toast type variations for standalone divs */
div.toast-message.standalone.toast-success {
  background-color: #4CAF50 !important;
  color: #fff !important;
}

div.toast-message.standalone.toast-error {
  background-color: #f44336 !important;
  color: #fff !important;
}

div.toast-message.standalone.toast-info {
  background-color: #2196F3 !important;
  color: #fff !important;
}

div.toast-message.standalone.toast-warning {
  background-color: #ff9800 !important;
  color: #fff !important;
}

/* Field error messages */
.field-error {
  color: #f44336 !important;
  font-size: 12px !important;
  margin-top: 4px !important;
  display: block !important;
}

/* Manual entry expiration date label */
.manual-exp-label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Warning text for options */
.warning-text {
  color: #ff9800 !important;
}

/* Fade out animation */
.fade-out {
  opacity: 0 !important;
  transition: opacity 0.5s ease !important;
}

/* Scanner video styles */
.scanner-video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Modal styles for scanner */
.match-modal-styled {
  position: fixed !important;
  top: 20% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: white !important;
  border: 2px solid #333 !important;
  padding: 20px !important;
  z-index: 10000 !important;
  max-width: 90% !important;
  box-shadow: 0 0 10px rgba(0,0,0,0.3) !important;
  border-radius: 8px !important;
}

.modal-title {
  margin-bottom: 16px !important;
}

.modal-option-btn {
  display: block !important;
  margin: 8px auto !important;
  width: 100% !important;
}

.modal-cancel-btn {
  margin-top: 10px !important;
  width: 100% !important;
}

/* Flex utility class */
.flex {
  display: flex !important;
}

.manual-modal {
  display: none !important;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.manual-modal.show {
  display: flex !important;
}

.manual-modal-content {
  background: #787b78 !important;
  color: #ffffff;
  padding: 20px;
  width: 90%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.manual-modal-content input {
  width: 100%;
  padding: 8px 10px;
  margin: 10px 0;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: white;
}

.manual-modal-content input::placeholder {
  color: #ffffff;
}

.manual-modal-content .btn {
  margin: 5px 5px 0 0;
}

.barcode-overlay-box {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 30%;
  transform: translate(-50%, -50%);
  border: 3px dashed red;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 9999;
}

.qr-overlay-box {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  border: 3px dashed red;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 9999;
}

.scanner-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scanner-controls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scanner-controls .btn {
  margin: 0 4px;
  min-width: 80px;
}

/* Slider styles */
.scanner-controls input[type="range"] {
  width: 150px;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.scanner-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
}

.scanner-controls input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #007bff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider-label {
  font-weight: 600;
  min-width: 70px;
  text-align: right;
  color: #333;
}

.scanner-controls span {
  min-width: 50px;
  text-align: left;
  font-weight: 500;
  color: #555;
}

.scanner-status-text {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

/* Button states for new controls */
.btn-blue {
  background-color: #007bff !important;
  color: white !important;
}

/* Scanner Help Button and Section */
.btn-help {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background-color: #6c757d !important;
  color: white !important;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #5a6268;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-help:hover {
  background-color: #5a6268 !important;
  transform: scale(1.1);
}

.btn-help.active {
  background-color: #007bff !important;
  border-color: #0056b3;
}

.scanner-help-section {
  margin-top: 15px;
  padding: 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 500px;
    transform: translateY(0);
  }
}

.help-content {
  color: #212529; /* Darker text for better readability */
}

.help-section {
  margin-bottom: 15px;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 5px;
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-list li {
  padding: 5px 0;
  font-size: 12px;
  line-height: 1.5;
  color: #212529; /* Ensure list items are dark and readable */
  border-bottom: 1px dashed #e9ecef;
}

.help-list li:last-child {
  border-bottom: none;
}

.help-list strong {
  color: #000; /* Make bold text even darker for emphasis */
  display: inline-block;
  min-width: 100px;
  font-weight: 600;
}

.help-list.compact li {
  padding: 3px 0;
}

.help-list.compact strong {
  min-width: 70px;
}

/* Mobile responsive help section */
@media (max-width: 768px) {
  .scanner-help-section {
    padding: 10px;
  }
  
  .help-list strong {
    display: block;
    margin-bottom: 2px;
  }
  
  .help-section h4 {
    font-size: 13px;
  }
}

.scanner-status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 10;
}

.scanner-overlay-box {
  display: block !important;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  border: 3px dashed red;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 9999;
}

#scanner-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}

.scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scanner-debug-image {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 200px;
  border: 2px solid white;
  z-index: 9999;
}

/* Mobile bulk actions header - replaces inline style */
.mobile-bulk-header {
  color: #fff;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  text-align: center;
  border-bottom: 1px solid #555;
  padding-bottom: 10px;
}

/* Popup button styles for JavaScript-created elements */
.ink-selection-btn {
  display: block;
  margin-bottom: 10px;
}

/* Add Ink page specific styles */
.add-ink-qr-scanner {
  height: 400px;
}

.add-ink-qr-scanner-inner {
  height: 100%;
}

.add-ink-section-heading {
  margin-top: 100px;
}

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

.modal-content {
  background: #787b78;
  color: #ffffff;
  margin: 10% auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
}

.ink-card {
  background-color: #222;
  color: #fff;
  border-left: 5px solid #ffffff;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.ink-card .ink-info {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ink-card .ink-info .color {
  font-size: 1.2em;
  font-weight: bold;
}

.ink-card .ink-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex: 0 0 100%;
}

.ink-card .btn-red {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 0.9em;
  border-radius: 4px;
}

@media (max-width: 768px) {
  #session-inks {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-session-wrapper {
    display: block;
  }
}

@media (max-width: 768px) {
  #session-inks,
  #session-inks-body,
  #session-inks-body tr {
    display: none !important;
  }
}

.manual-date-wrapper {
  width: 100%;
  cursor: pointer;
}

.manual-date-wrapper input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: white;
  appearance: none;
  -webkit-appearance: none;
}

.ink-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.ink-table-container {
  overflow-x: auto;
}

/* -------------------------------------------------- */
/* Responsive Display Classes                         */
/* -------------------------------------------------- */

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* -------------------------------------------------- */
/* Mobile Form Controls                               */
/* -------------------------------------------------- */

.mobile-form-controls {
  padding: 20px;
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Mobile session card styles */
.mobile-session-wrapper .session-ink-card {
  margin-bottom: 10px;
  padding: 12px;
  background: #2a2a2a;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-session-wrapper .session-ink-card .ink-info {
  flex: 1;
  color: white;
}

.mobile-session-wrapper .session-ink-card .ink-actions {
  margin-left: 10px;
}

/* Ensure mobile remove buttons have adequate touch target size */
.mobile-remove-btn {
  min-width: 80px;
  min-height: 44px;
  padding: 10px 16px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-remove-btn:active {
  background-color: #c82333;
  transform: scale(0.98);
}

.mobile-form-controls .label-start-block {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #fff;
}

.mobile-form-controls .start-label-text {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.mobile-form-controls .start-label-input {
  width: 80px;
  margin-left: 10px;
  padding: 8px;
  border: 1px solid #555;
  border-radius: 4px;
  background-color: #1a1a1a;
  color: #fff;
  font-size: 14px;
}

.mobile-form-controls .btn {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-form-controls .btn.btn-green {
  background-color: #28a745;
  color: #fff;
}

.mobile-form-controls .btn.btn-green:active {
  background-color: #218838;
  transform: scale(0.98);
}

.mobile-form-controls .btn.btn-red {
  background-color: #dc3545;
  color: #fff;
}

.mobile-form-controls .btn.btn-red:active {
  background-color: #c82333;
  transform: scale(0.98);
}

.mobile-form-controls .btn:last-child {
  margin-bottom: 0;
}

/* Utility classes */
.mb-10 { margin-bottom: 10px; }
.w-100 { width: 100%; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

/* -------------------------------------------------- */
/* Mobile Sticky Session Buttons                      */
/* -------------------------------------------------- */

/* Make save and clear session buttons sticky on mobile only */
@media (max-width: 768px) {
  #save-session {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 1000 !important;
    width: auto !important;
    min-width: 140px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(40, 167, 69, 0.3) !important;
    background-color: #28a745 !important;
    color: white !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
  }
  
  #clear-session {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
    width: auto !important;
    min-width: 140px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(220, 53, 69, 0.3) !important;
    background-color: #dc3545 !important;
    color: white !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
  }
  
  #save-session:active,
  #clear-session:active {
    transform: scale(0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Add some bottom padding to the dashboard wrapper to account for the fixed button */
  .dashboard-wrapper {
    padding-bottom: 80px !important;
  }
  
  /* Make form-controls container minimal on mobile but keep visible for the fixed button */
  .dashboard-session-form .form-controls {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
  }
}

/* Ensure form-controls are visible on desktop */
@media (min-width: 769px) {
  .dashboard-session-form .form-controls {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  
  #save-session,
  #clear-session {
    min-width: 140px;
  }
}

/* -------------------------------------------------- */
/* PIN Strength Indicator                             */
/* -------------------------------------------------- */

.strength-bar {
  height: 5px;
  background-color: #ddd;
  border-radius: 3px;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.strength-bar.weak {
  background-color: #ff4444;
  width: 25%;
}

.strength-bar.medium {
  background-color: #ffaa00;
  width: 50%;
}

.strength-bar.strong {
  background-color: #00aa00;
  width: 75%;
}

.strength-bar.very-strong {
  background-color: #008800;
  width: 100%;
}

#pin-strength-text,
.pin-strength-text {
  display: block;
  font-size: 0.85em;
  font-weight: bold;
  margin-bottom: 10px;
}

/* -------------------------------------------------- */
/* Filter Form Styles                                 */
/* -------------------------------------------------- */

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 250px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================
   INK LOG REPORT STYLES
   ========================================== */

/* Modern filter container for ink log report */
.ink-log-filter-container {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 1.75rem;
  background: linear-gradient(135deg, #2d2d2d 0%, #262626 100%);
  border-radius: 12px;
  border: 1px solid #404040;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.ink-log-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ink-log-filter-form .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ink-log-filter-form .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ink-log-filter-form .filter-group label {
  font-weight: 600;
  color: #e0e0e0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.ink-log-filter-form .filter-group input,
.ink-log-filter-form .filter-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid #404040;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.ink-log-filter-form .filter-group input:focus,
.ink-log-filter-form .filter-group select:focus {
  outline: none;
  border-color: #007bff;
  background: #222;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.ink-log-filter-form .filter-group input:hover,
.ink-log-filter-form .filter-group select:hover {
  border-color: #505050;
  background: #1f1f1f;
}

.ink-log-filter-form .filter-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #404040;
}

.ink-log-filter-form .filter-actions .btn {
  padding: 0.625rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.ink-log-filter-form .filter-actions .btn-secondary {
  background: #4a4a4a;
  color: #fff;
  border: 2px solid #4a4a4a;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.ink-log-filter-form .filter-actions .btn-secondary:hover {
  background: #555;
  border-color: #555;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Mobile card layout for ink logs */
.ink-log-mobile {
  display: none;
  padding: 0 0.5rem;
}

.log-card {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.log-card-header {
  background: #1a1a1a;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #444;
}

.log-timestamp {
  color: #3399ff;
  font-weight: 600;
  font-size: 0.9rem;
}

.log-card-body {
  padding: 1rem;
}

.log-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.log-item:last-child {
  border-bottom: none;
}

.log-label {
  color: #999;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.log-value {
  color: #fff;
  text-align: right;
  flex: 1;
  margin-left: 1rem;
}

/* Hide/show elements based on screen size */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .ink-log-filter-form .filter-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .ink-log-filter-container {
    padding: 1rem;
    margin: 0 0.5rem 1.5rem 0.5rem;
    max-width: 100%;
  }
  
  .ink-log-filter-form .filter-actions {
    flex-direction: column;
    padding-top: 1rem;
  }
  
  .ink-log-filter-form .filter-actions .btn {
    width: 100%;
    padding: 0.875rem;
  }
  
  /* Hide desktop table, show mobile cards */
  .desktop-only {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  .ink-log-wrapper {
    display: none;
  }
  
  .ink-log-mobile {
    display: block;
  }
  
  /* Adjust form inputs for better mobile touch */
  .ink-log-filter-form .filter-group input,
  .ink-log-filter-form .filter-group select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.75rem;
  }
  
  /* Pagination adjustments */
  .pagination {
    padding: 1rem 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .pagination a {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
  }
  
  /* Compact title for mobile */
  .section-title.mobile-compact {
    font-size: 1.5rem;
    padding: 1rem 0.5rem;
    text-align: center;
  }
}

/* Wider table wrapper for ink log */
.ink-log-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 0 1rem;
}

.ink-log-wrapper .log-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* ==========================================
   AUDIT REPORT STYLES
   ========================================== */

/* Audit report filter container */
.audit-filter-container {
  max-width: 900px;
  margin: 0 auto 2rem auto;
  padding: 1.75rem;
  background: linear-gradient(135deg, #2d2d2d 0%, #262626 100%);
  border-radius: 12px;
  border: 1px solid #404040;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.audit-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.audit-filter-form .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
}

.audit-filter-form .filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.audit-filter-form .filter-group label {
  font-weight: 600;
  color: #e0e0e0;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.audit-filter-form .filter-group input,
.audit-filter-form .filter-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 2px solid #404040;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.audit-filter-form .filter-group input:focus,
.audit-filter-form .filter-group select:focus {
  outline: none;
  border-color: #007bff;
  background: #222;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.audit-filter-form .filter-group input:hover,
.audit-filter-form .filter-group select:hover {
  border-color: #505050;
  background: #1f1f1f;
}

.audit-filter-form .filter-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #404040;
}

.audit-filter-form .filter-actions .btn {
  padding: 0.625rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.audit-filter-form .filter-actions .btn-secondary {
  background: #4a4a4a;
  color: #fff;
  border: 2px solid #4a4a4a;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.audit-filter-form .filter-actions .btn-secondary:hover {
  background: #555;
  border-color: #555;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Audit table wrapper */
.audit-table-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  padding: 0 1rem;
}

.audit-table-wrapper .styled-table {
  width: 100%;
  min-width: 600px;
}

.audit-table-wrapper .pdf-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.audit-table-wrapper .pdf-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.audit-table-wrapper .no-pdf {
  color: #666;
  font-style: italic;
}

/* Responsive design for audit report */
@media (max-width: 768px) {
  /* Fix page title overflow */
  .section-title {
    font-size: 1.5rem;
    padding: 1rem 0.5rem;
    word-break: break-word;
  }
  
  .audit-filter-form .filter-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .audit-filter-container {
    padding: 1rem;
    margin: 0 0.5rem 1.5rem 0.5rem;
    max-width: calc(100% - 1rem);
    box-sizing: border-box;
  }
  
  .audit-filter-form .filter-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .audit-filter-form .filter-actions .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 44px; /* Touch target size */
  }
  
  /* Make filter inputs more touch-friendly on mobile */
  .audit-filter-form .filter-group input,
  .audit-filter-form .filter-group select {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.75rem;
    min-height: 44px; /* Touch target size */
  }
  
  /* Audit table mobile styles */
  .audit-table-wrapper {
    padding: 0 0.5rem;
    margin: 0 auto 1.5rem auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }
  
  .audit-table-wrapper .styled-table {
    min-width: 450px; /* Force horizontal scroll for table */
    font-size: 0.875rem;
  }
  
  .audit-table-wrapper .styled-table th,
  .audit-table-wrapper .styled-table td {
    padding: 0.5rem;
    white-space: nowrap;
  }
  
  /* Smaller font for PDF links on mobile */
  .audit-table-wrapper .pdf-link,
  .audit-table-wrapper .no-pdf {
    font-size: 0.8rem;
  }
  
  /* Stack pagination for mobile */
  .pagination {
    padding: 1rem 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    text-align: center;
  }
  
  .pagination a {
    min-width: 36px;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }
}

.ink-log-wrapper .log-table th,
.ink-log-wrapper .log-table td {
  border: 1px solid #444;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
}

.ink-log-wrapper .log-table th {
  background-color: #1a1a1a;
  font-weight: bold;
  color: #3399ff;
  text-align: center;
}

.ink-log-wrapper .log-table td {
  background-color: #2a2a2a;
  color: #fff;
}

.ink-log-wrapper .log-table tr:nth-child(even) td {
  background-color: #333;
}

.ink-log-wrapper .log-table tr:hover td {
  background-color: #3a3a3a;
}

.ink-log-wrapper .no-results {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-style: italic;
}

/* ==========================================
   LANDING PAGE STYLES
   ========================================== */

.landing-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.landing-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.shop-name-landing {
  font-size: 1.3rem;
  color: #00a8ff;
  font-weight: 600;
  margin: 0.5rem 0 1rem 0;
  text-align: center;
  letter-spacing: 0.05em;
}

.landing-subtitle {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 3rem;
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  background: #3182ce;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.login-button:hover {
  background: #2c5aa0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.login-button.admin {
  background: #805ad5;
  box-shadow: 0 4px 12px rgba(128, 90, 213, 0.3);
}

.login-button.admin:hover {
  background: #6b46c1;
  box-shadow: 0 6px 20px rgba(128, 90, 213, 0.4);
}

.login-icon {
  font-size: 1.5rem;
  margin-right: 0.75rem;
}

.divider {
  margin: 2rem 0;
  position: relative;
  text-align: center;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.divider-text {
  background: rgba(255, 255, 255, 0.95);
  padding: 0 1rem;
  position: relative;
  color: #718096;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feature-list {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #4a5568;
  font-size: 0.95rem;
}

.feature-icon {
  color: #48bb78;
  margin-right: 0.5rem;
}

/* Landing page responsive styles */
@media (max-width: 600px) {
  .landing-container {
    padding: 2rem 1.5rem;
  }
  
  .landing-title {
    font-size: 2rem;
  }
  
  .landing-subtitle {
    font-size: 1rem;
  }
  
  .login-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* ==========================================
   ERROR PAGE STYLES
   ========================================== */
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 20px;
}

.error-content {
  text-align: center;
  max-width: 500px;
}

.error-code {
  font-size: 72px;
  font-weight: bold;
  color: #dc3545;
  margin: 0;
}

.error-title {
  font-size: 24px;
  margin: 10px 0;
  color: #333;
}

.error-message {
  font-size: 16px;
  color: #666;
  margin: 20px 0;
}

.error-actions {
  margin-top: 30px;
}

.error-actions .btn {
  margin: 0 10px;
}

/* Back button for error pages */
.btn-back {
  cursor: pointer;
}

/* Alert/Success messages */
.alert-success,
.success-message.alert-success {
  background-color: #4CAF50;
  color: white;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* ==========================================
   PDF SETTINGS PAGE STYLES
   ========================================== */

.form-section {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.form-section h3 {
  color: #4CAF50;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.form-help-text {
  color: #999;
  font-size: 0.9em;
  margin-top: 5px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #f0f0f0;
  font-weight: 500;
}

.form-group label.required::after {
  content: ' *';
  color: #dc3545;
}

.form-group .form-control {
  width: 100%;
  padding: 10px;
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #f0f0f0;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group .form-control:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #999;
  font-size: 0.85em;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.checkbox-group label {
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}


/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.form-actions .btn {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-blue {
  background-color: #2196F3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

.btn-loading {
  opacity: 0.7;
  cursor: wait;
  position: relative;
}

.btn-loading:disabled {
  cursor: wait;
}

.btn-success {
  background-color: #28a745 !important;
  color: white !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-secondary {
  background-color: #666;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #555;
}

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

.modal-content {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
  color: #f0f0f0;
}

.modal-content h2 {
  margin-top: 0;
  color: #4CAF50;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-content .close:hover {
  color: #f0f0f0;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.modal-actions .btn {
  flex: 1;
  text-align: center;
}

/* ==========================================
   SESSION HISTORY PAGE STYLES
   ========================================== */

/* Session history section container */
.session-history-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Filter container for wider layout */
.session-filter-container {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  padding: 1.5rem;
  background-color: #1e1e1e;
  border-radius: 8px;
  border: 1px solid #333;
}

/* Session filter form */
.session-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Filter row */
.session-filter-form .filter-row {
  display: flex;
  gap: 1rem;
  width: 100%;
}

/* Date row with side-by-side layout */
.session-filter-form .filter-row.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Filter group */
.session-filter-form .filter-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Client name takes full width */
.session-filter-form .filter-group.client-name-group {
  width: 100%;
}

/* Labels */
.session-filter-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ccc;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Input fields */
.session-filter-form input[type="text"],
.session-filter-form input[type="date"] {
  width: 100%;
  padding: 10px 12px;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.session-filter-form input[type="text"]:focus,
.session-filter-form input[type="date"]:focus {
  outline: none;
  border-color: #4a9eff;
  background-color: #333;
  box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* Filter actions */
.session-filter-form .filter-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.session-filter-form .filter-actions .btn {
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.session-filter-form .filter-actions .btn-primary {
  background-color: #4a9eff;
  color: white;
}

.session-filter-form .filter-actions .btn-primary:hover {
  background-color: #3a8eef;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(74, 158, 255, 0.3);
}

.session-filter-form .filter-actions .btn-secondary {
  background-color: #666;
  color: white;
}

.session-filter-form .filter-actions .btn-secondary:hover {
  background-color: #777;
}

/* Session table wrapper for wider layout */
.session-table-wrapper {
  max-width: 1200px;  /* Increased from 1000px to accommodate Studio Open column */
  margin: 0 auto 2rem auto;
  overflow-x: auto;
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 1rem;
}

/* Session table specific styles */
.session-table-wrapper .session-table {
  width: 100%;
  min-width: 750px;  /* Increased from 600px to accommodate Studio Open column */
}

.session-table-wrapper .session-table th {
  background-color: #2a2a2a;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.session-table-wrapper .session-table td {
  padding: 14px 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .session-filter-form .filter-row.date-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .session-filter-form .filter-actions {
    flex-direction: column;
  }
  
  .session-filter-form .filter-actions .btn {
    width: 100%;
  }
  
  .session-filter-container {
    padding: 1rem;
  }
  
  .session-table-wrapper {
    padding: 0.5rem;
    margin: 0 -10px 2rem -10px;
    border-radius: 0;
  }
}

/* ==========================================
   ARTIST MANAGEMENT LANDING PAGE
   ========================================== */

.artist-selection-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.artist-type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.artist-type-card {
  background: #2a2a2a;
  border: 2px solid #404040;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.artist-type-card:hover {
  border-color: #00a8ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.2);
}

.artist-type-card .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #00a8ff 0%, #0078b8 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.artist-type-card:last-child .card-icon {
  background: linear-gradient(135deg, #44b700 0%, #2d7800 100%);
}

.artist-type-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #fff;
}

.artist-type-card .card-description {
  color: #b0b0b0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.artist-type-card .card-features {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.artist-type-card .card-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.artist-type-card .card-features li {
  padding: 0.5rem 0;
  color: #e0e0e0;
  position: relative;
  padding-left: 1.5rem;
}

.artist-type-card .card-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #44b700;
  font-weight: bold;
}

.artist-type-card .btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  width: 100%;
  max-width: 250px;
  margin-top: auto;
}

.info-section {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
}

.info-section h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-item {
  padding: 1rem;
  background: #2a2a2a;
  border-radius: 6px;
  border-left: 4px solid #00a8ff;
}

.info-item strong {
  color: #00a8ff;
  display: block;
  margin-bottom: 0.5rem;
}

/* Back Navigation */
.back-navigation {
  margin-bottom: 2rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid #404040;
  color: #e0e0e0;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  border-color: #00a8ff;
  color: #00a8ff;
  background: rgba(0, 168, 255, 0.1);
}

/* Guest Artists Management */
.guest-artists-list {
  margin: 2rem 0;
}

.data-table {
  width: 100%;
  background: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead {
  background: #1a1a1a;
}

.data-table th {
  padding: 1rem;
  text-align: left;
  color: #00a8ff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1rem;
  color: #e0e0e0;
  border-top: 1px solid #404040;
}

.data-table tbody tr:hover {
  background: #333;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(68, 183, 0, 0.2);
  color: #44b700;
  border: 1px solid #44b700;
}

.badge-warning {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background: #1a1a1a;
  border-radius: 8px;
  color: #b0b0b0;
}

.empty-state p {
  margin: 0.5rem 0;
}

.expired-section {
  margin-top: 3rem;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
}

.expired-section summary {
  cursor: pointer;
  padding: 0.5rem;
  color: #e0e0e0;
}

.expired-section summary:hover {
  color: #00a8ff;
}

.expired-section summary h3 {
  display: inline;
  margin: 0;
  font-size: 1.25rem;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none; /* Hidden by default, shown via JavaScript */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* When modal is shown, use flex for centering */
.modal.show {
  display: flex;
}

.modal-content {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border: 2px solid #404040;
}

.modal-content h3 {
  margin-bottom: 1.5rem;
  color: #fff;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .artist-type-cards {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .table-responsive {
    overflow-x: auto;
  }
  
  .data-table {
    min-width: 600px;
  }
  
  .action-buttons {
    flex-direction: column;
  }
}

/* ==========================================
   GUEST ARTIST STYLES
   ========================================== */

.guest-setup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 2rem;
}

.setup-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  border: 2px solid #404040;
}

.setup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.setup-header h1 {
  color: #44b700;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

.setup-subtitle {
  color: #b0b0b0;
  font-size: 1.125rem;
}

.setup-header .shop-name {
  color: #00a8ff;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.setup-form .form-group {
  margin-bottom: 1.5rem;
}

.setup-form label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.setup-form input {
  width: 100%;
  padding: 0.875rem;
  background: #1a1a1a;
  border: 2px solid #404040;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 1rem;
}

.setup-form input:focus {
  border-color: #44b700;
  outline: none;
}

.setup-info {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.setup-info h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.feature-list li {
  padding: 0.5rem 0;
  color: #e0e0e0;
}

.expiry-notice {
  color: #ffc107;
  font-size: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid #404040;
}

.expiry-date {
  font-weight: bold;
}

/* Guest Home Styles */
.guest-home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.guest-header {
  text-align: center;
  margin-bottom: 3rem;
}

.guest-header h1 {
  color: #44b700;
  margin-bottom: 0.5rem;
}

.guest-status {
  color: #b0b0b0;
  font-size: 1.125rem;
}

.guest-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.action-card {
  background: #2a2a2a;
  border: 2px solid #404040;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.action-card:hover {
  border-color: #44b700;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(68, 183, 0, 0.2);
}

.action-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #44b700 0%, #2d7800 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.action-card h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.action-card p {
  color: #b0b0b0;
  margin-bottom: 1.5rem;
}

.guest-info {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 2rem;
}

.guest-info h3 {
  color: #44b700;
  margin-bottom: 1rem;
}

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

.guest-info li {
  padding: 0.5rem 0;
  color: #e0e0e0;
  position: relative;
  padding-left: 1.5rem;
}

.guest-info li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #44b700;
}

/* Bookmark tip enhancement */
.guest-info .bookmark-tip {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #333;
}

.guest-info .bookmark-tip strong {
  color: #44b700;
  display: block;
  margin-bottom: 0.5rem;
}

.bookmark-instructions {
  list-style: none !important;
  padding-left: 0 !important;
  margin-top: 0.5rem;
}

.bookmark-instructions li {
  padding: 0.25rem 0 !important;
  font-size: 0.9rem;
  color: #b0b0b0;
}

.bookmark-instructions li:before {
  content: "→" !important;
  color: #666;
  margin-right: 0.5rem;
}

.bookmark-instructions kbd {
  background: #2a2a2a;
  border: 1px solid #444;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #e0e0e0;
}

/* Guest Inks Management */
.guest-inks-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  color: #fff;
  margin-top: 1rem;
}

.add-ink-section {
  margin-bottom: 2rem;
  text-align: right;
}

.inks-list {
  margin-top: 2rem;
}

/* Guest Add Ink */
.guest-add-ink-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
}

.add-ink-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 2rem;
  border: 2px solid #404040;
}

.ink-form .form-group {
  margin-bottom: 1.5rem;
}

.ink-form label {
  display: block;
  color: #e0e0e0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.ink-form input {
  width: 100%;
  padding: 0.875rem;
  background: #1a1a1a;
  border: 2px solid #404040;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 1rem;
}

.ink-form input:focus {
  border-color: #44b700;
  outline: none;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #404040;
}

/* ==========================================
   GUEST SESSION STYLES
   ========================================== */

.guest-session-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.session-form-card {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.session-form .form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.session-form .form-section:last-of-type {
  border-bottom: none;
}

.session-form h3 {
  color: #00a8ff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.ink-checkbox-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background: #121212;
  border-radius: 4px;
}

.ink-checkbox-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #2a2a2a;
}

.ink-checkbox-item:last-child {
  border-bottom: none;
}

.ink-checkbox-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.ink-checkbox-item input[type="checkbox"] {
  margin-right: 0.75rem;
}

.ink-label {
  flex-grow: 1;
}

.ink-expiry {
  color: #999;
  font-size: 0.9rem;
  margin-left: 1rem;
}

/* New improved ink selection design for guest pages */
.ink-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding: 1rem;
  background: #121212;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
}

.ink-checkbox-card {
  position: relative;
  background: #1a1a1a;
  border: 2px solid #2a2a2a;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ink-checkbox-card:hover {
  border-color: #00bcd4;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 188, 212, 0.2);
}

.ink-checkbox-card input[type="checkbox"] {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.ink-checkbox-card input[type="checkbox"]:checked + label {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(0, 188, 212, 0.05));
}

.ink-checkbox-card input[type="checkbox"]:checked + label .ink-info {
  opacity: 1;
}

.ink-checkbox-card label {
  display: block;
  padding: 1rem 1rem 1rem 3rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.ink-checkbox-card .ink-info {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.ink-checkbox-card .ink-primary {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.ink-checkbox-card .ink-manufacturer {
  font-weight: 600;
  color: #00bcd4;
  font-size: 0.95rem;
}

.ink-checkbox-card .ink-color {
  font-weight: 500;
  color: #fff;
  font-size: 1.1rem;
  margin-left: 0.5rem;
}

.ink-checkbox-card .ink-secondary {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  font-size: 0.85rem;
  color: #999;
  padding-top: 0.5rem;
  border-top: 1px solid #2a2a2a;
}

.ink-checkbox-card .ink-lot {
  font-family: 'Courier New', monospace;
  flex: 0 0 auto;
}

.ink-checkbox-card .ink-expiry {
  color: #ffa726;
  margin-left: auto;
}

/* Guest ink selection styles */
.guest-ink-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  padding: 0.5rem;
  max-height: 500px;
  overflow-y: auto;
}

.guest-ink-item {
  background: linear-gradient(135deg, #1e1e1e 0%, #1a1a1a 100%);
  border: 2px solid #2a2a2a;
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.guest-ink-item:hover {
  border-color: #00bcd4;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 188, 212, 0.25);
  background: linear-gradient(135deg, #1f2022 0%, #1b1b1d 100%);
}

.guest-ink-item input[type="checkbox"] {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 22px;
  height: 22px;
  cursor: pointer;
  z-index: 2;
  accent-color: #00bcd4;
}

.guest-ink-item input[type="checkbox"]:checked + label {
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(0, 188, 212, 0.05));
}
.guest-ink-item input[type="checkbox"]:checked + label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #00bcd4;
}

.guest-ink-item label {
  display: block;
  padding: 1.25rem;
  padding-left: 3.5rem;
  cursor: pointer;
  position: relative;
  min-height: 100px;
}

.guest-ink-left {
  margin-bottom: 0.75rem;
}

.guest-ink-manufacturer {
  color: #00bcd4;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.25rem;
}

.guest-ink-color {
  color: #fff;
  font-weight: 500;
  font-size: 1.15rem;
  display: block;
}

.guest-ink-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guest-ink-lot {
  font-family: 'Courier New', monospace;
  color: #999;
  font-size: 0.85rem;
}

.guest-ink-expiry {
  color: #ffa726;
  font-size: 0.85rem;
  font-weight: 500;
}
/* Scrollbar styling for ink list */
.guest-ink-list::-webkit-scrollbar {
  width: 8px;
}
.guest-ink-list::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}
.guest-ink-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
.guest-ink-list::-webkit-scrollbar-thumb:hover {
  background: #444;
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .guest-ink-list {
    grid-template-columns: 1fr;
  }
}

/* Form row for side-by-side fields */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.one-time-ink-row {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
}

.one-time-ink-row .form-row:last-child {
  margin-bottom: 0;
  align-items: flex-end;
}

.one-time-ink-row .btn-red {
  margin-left: 0.5rem;
  align-self: flex-end;
  margin-bottom: 0;
}

.one-time-ink-row .form-row {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.one-time-ink-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.guest-home-container,
.guest-inks-container,
.guest-add-ink-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.guest-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.action-card {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s;
}

.action-card:hover {
  transform: translateY(-2px);
}

.action-icon {
  color: #00a8ff;
  margin-bottom: 1rem;
}

.add-ink-card {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

/* ==========================================
   GUEST SESSION COMPLETE STYLES
   ========================================== */

.guest-session-complete {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.guest-session-complete .success-card {
  background: linear-gradient(135deg, #1a3d1a 0%, #0d1f0d 100%);
  border: 1px solid #2a5a2a;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  margin: 2rem 0;
}

.guest-session-complete .success-icon {
  display: inline-block;
  color: #44b700;
  margin-bottom: 1.5rem;
}

.guest-session-complete .success-card h2 {
  color: #44b700;
  margin-bottom: 2rem;
  font-size: 1.75rem;
}

.guest-session-complete .session-details {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
  text-align: left;
}

.guest-session-complete .session-details p {
  margin: 0.75rem 0;
  color: #e0e0e0;
}

.guest-session-complete .session-details strong {
  color: #44b700;
  margin-right: 0.5rem;
}

.guest-session-complete .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 2rem auto 0;
}

.guest-session-complete .action-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.guest-session-complete .info-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.guest-session-complete .info-card h3 {
  color: #44b700;
  margin-bottom: 1rem;
}

.guest-session-complete .info-card ul {
  list-style: none;
  padding: 0;
}

.guest-session-complete .info-card li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: #e0e0e0;
  position: relative;
}

.guest-session-complete .info-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #44b700;
}

/* Guest Recent Sessions */
.guest-sessions {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.guest-sessions h3 {
  color: #44b700;
  margin-bottom: 1.5rem;
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.session-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid #333;
}

.session-info {
  flex: 1;
  color: #e0e0e0;
}

.session-info strong {
  color: #44b700;
  margin-right: 0.5rem;
}

.session-date {
  display: inline-block;
  margin-left: 1rem;
  color: #999;
  font-size: 0.9em;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Guest badge styling */
.badge-guest {
  background-color: #9b59b6;
  color: #fff;
  margin-left: 5px;
}

/* ==========================================
   DATA RETENTION PAGE STYLES
   ========================================== */
.settings-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.settings-header {
  margin-bottom: 30px;
}

.settings-header h2 {
  color: #aef3c0;
  margin-bottom: 10px;
}

.settings-description {
  color: #999;
  font-size: 14px;
}

/* ==========================================
   FDA RECALL NOTIFICATION STYLES
   ========================================== */
.notification-badge {
  display: inline-block;
  background: #ff4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 12px;
  margin-left: 5px;
  font-weight: bold;
  vertical-align: middle;
}

.nav-badge {
  display: inline-block;
  background: #ff4444;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  margin-left: 5px;
  font-weight: bold;
  vertical-align: middle;
}

/* FDA Recall Classification Colors */
.recall-classification-I {
  color: #ff4444;
  font-weight: bold;
}

.recall-classification-II {
  color: #ff8844;
  font-weight: bold;
}

.recall-classification-III {
  color: #ffaa44;
  font-weight: bold;
}

.recall-classification-unclassified {
  color: #999999;
}

/* FDA Recall Status Badge */
.badge-new {
  background: rgba(255, 68, 68, 0.2);
  color: #ff4444;
  border: 1px solid #ff4444;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================
   FDA SETTINGS PAGE SPECIFIC STYLES
   ========================================== */
/* Make FDA settings cards wider */
.fda-settings-container .admin-card {
  max-width: 900px !important;
  width: 90% !important;
  margin: 0 auto 30px !important;
  padding: 30px !important;
}

/* FDA Settings Form - Make form fields wider too */
.fda-settings-container .form-group {
  margin-bottom: 25px;
}

.fda-settings-container .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e0e0e0 !important;
}

.fda-settings-container input[type="text"],
.fda-settings-container input[type="password"],
.fda-settings-container input[type="email"],
.fda-settings-container select,
.fda-settings-container textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px;
  border: 1px solid #666;
  border-radius: 4px;
  font-size: 14px;
  background: white !important;
  color: #000 !important;
  box-sizing: border-box;
}

/* ==========================================
   FDA RECALLS PAGE SPECIFIC STYLES
   ========================================== */
/* Make FDA recalls page containers wider */
.fda-recalls-page .admin-card {
  max-width: 1400px !important;
  width: 95% !important;
  margin: 0 auto 30px !important;
  padding: 25px !important;
}

.fda-recalls-page .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: end;
}

.fda-recalls-page .filter-row .form-group {
  flex: 1;
  min-width: 150px;
}

.fda-recalls-page .data-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.fda-recalls-page .data-table th {
  background: #f0f0f0;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

.fda-recalls-page .data-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.fda-recalls-page .data-table tr:hover {
  background: #f9f9f9;
}

.fda-recalls-page .data-table tr.unviewed {
  background: #fff9e6;
}

.fda-recalls-page .data-table tr.unviewed:hover {
  background: #fff5d6;
}

.fda-recalls-page .badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
}

.fda-recalls-page .badge-new {
  background: #ff4444;
  color: white;
}

.fda-recalls-page .badge-viewed {
  background: #6c757d;
  color: white;
}

.fda-recalls-page .btn-small {
  padding: 4px 8px;
  font-size: 12px;
}

.fda-recalls-page .no-data {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

.fda-recalls-page .text-muted {
  color: #6c757d;
}

/* Recall classification indicators */
.recall-classification-I {
  color: #ff4444;
  font-weight: bold;
}

.recall-classification-II {
  color: #ff9800;
  font-weight: bold;
}

.recall-classification-III {
  color: #4CAF50;
  font-weight: bold;
}

/* Checkbox styling for FDA recalls page */
.fda-recalls-page input[type="checkbox"] + label {
  display: inline;
  margin-left: 5px;
}

/* Button group styling for FDA recalls page */
.fda-recalls-page .button-group {
  margin-top: 20px;
}

.fda-settings-container textarea {
  resize: vertical;
  min-height: 100px;
}

/* Placeholder text styling for better visibility */
.fda-settings-container input::placeholder,
.fda-settings-container textarea::placeholder {
  color: #999 !important;
  opacity: 1 !important;
}

/* Select dropdown arrow visibility */
.fda-settings-container select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 9L1 4h10z' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.fda-settings-container .form-text,
.fda-settings-container small {
  display: block;
  margin-top: 5px;
  color: #aaa !important;
  font-size: 13px;
}

/* FDA Instructions List */
.fda-settings-container ol {
  margin: 20px 0;
  padding-left: 25px;
}

.fda-settings-container ol li {
  margin-bottom: 12px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* FDA Status Table */
.fda-settings-container .info-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.fda-settings-container .info-table th {
  text-align: left;
  padding: 12px;
  width: 180px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fda-settings-container .info-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* FDA Buttons */
.fda-settings-container .button-group {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.fda-settings-container .button-group .btn {
  padding: 12px 24px;
  font-size: 14px;
}

/* FDA Checkbox */
.fda-settings-container input[type="checkbox"] {
  width: auto !important;
  margin-right: 8px;
  vertical-align: middle;
}

.fda-settings-container input[type="checkbox"] + label {
  display: inline;
  font-weight: normal;
}

/* FDA Settings Badges */
.fda-settings-container .badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.fda-settings-container .badge-success {
  background: #28a745;
  color: white;
}

.fda-settings-container .badge-warning {
  background: #ffc107;
  color: #333;
}

.fda-settings-container .badge-danger {
  background: #dc3545;
  color: white;
}

.fda-settings-container .required {
  color: #dc3545;
  font-weight: bold;
}

/* FDA specific inline style replacements */
.fda-instructions-list {
  margin-left: 20px;
  margin-top: 10px;
}

.fda-settings-container .checkbox-label {
  display: inline;
  margin-left: 5px;
}

.fda-status-buttons {
  margin-top: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #2a2a2a;
  border-radius: 5px;
}

.info-label {
  color: #999;
}

.info-value {
  color: #aef3c0;
  font-weight: bold;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.stat-item {
  text-align: center;
  padding: 15px;
  background-color: #2a2a2a;
  border-radius: 8px;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #aef3c0;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
}

.button-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.code-block {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 5px;
  padding: 15px;
  font-family: monospace;
  font-size: 12px;
  overflow-x: auto;
  color: #aef3c0;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.info-list li:last-child {
  border-bottom: none;
}

.text-muted {
  color: #999;
  font-size: 14px;
}

.alert {
  padding: 15px;
  border-radius: 5px;
  margin: 15px 0;
}

.alert-info {
  background-color: #1e3a5f;
  border: 1px solid #2a5a8f;
  color: #a0c4e4;
}

.alert-red {
  background-color: #ff0000;
  border: 2px solid #ff6666;
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
  animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-red {
  0%, 100% {
    background-color: #ff0000;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
  }
  50% {
    background-color: #ff3333;
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
  }
}

/* ==========================================
   ADMIN OVERRIDE BANNER
   ========================================== */
.admin-override-banner {
  background-color: #6f42c1;
  color: white;
  padding: 12px 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.admin-override-banner .banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-override-banner strong {
  color: white;
  margin-right: 10px;
}

.admin-override-banner .btn-outline {
  background-color: transparent;
  border: 1px solid white;
  color: white;
  padding: 5px 15px;
  font-size: 0.9em;
}

.admin-override-banner .btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ==========================================
   FIX: Hide Html5-QRCode Scanner UI Elements
   ========================================== */
/* Hide the scanner shaded regions that appear unexpectedly */
#qr-shaded-region,
#html5-qrcode-region,
#html5-qrcode-anchor-scan-region,
#html5-qrcode-anchor-scan-type-change,
div[id^="qr-shaded-region"],
div[id^="html5-qrcode"],
div[id*="qr-shaded"],
div[id*="html5-qrcode"],
div[class*="qr-shaded"],
div[class*="html5-qrcode"],
.qr-shaded-region,
.html5-qrcode-region,
[id^="qr-"],
[id*="qrcode"]:not(#qr-reader):not(#scanner-box):not(#scanner-modal) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* Also hide any progress bars from scanner */
.html5-qrcode-element progress,
.scanner-progress,
#html5-qrcode progress {
  display: none !important;
  visibility: hidden !important;
}

/* Only show scanner UI when explicitly active */
.scanner-active #qr-scanner-wrapper,
.scanner-active #barcode-wrapper {
  display: block !important;
}

/* Ensure scanner wrapper is hidden by default */
.scanner-wrapper.d-none,
#scanner-wrapper.d-none {
  display: none !important;
}

/* ==========================================
   VOICE COMMANDS STYLES
   ========================================== */

/* Push-to-talk button container */
.voice-ptt-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Push-to-talk button */
.voice-ptt-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.voice-ptt-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.voice-ptt-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.voice-ptt-btn.listening {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 30px rgba(245, 87, 108, 0.6);
}

.voice-ptt-btn.processing {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  animation: rotate 1s linear infinite;
}

.voice-ptt-btn.error {
  background: linear-gradient(135deg, #f85032 0%, #e73827 100%);
  animation: shake 0.5s;
}

.voice-ptt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Microphone icon */
.voice-mic-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 2px;
}

/* Status text */
.voice-status-text {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-top: 2px;
}

/* Inline voice button for dashboard */
.voice-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-left: 10px;
}

/* Inline help button for voice commands */
.voice-help-circle {
  margin-left: 10px;
  vertical-align: middle;
  display: inline-flex !important;
  text-decoration: none !important;
}

.voice-inline-btn .voice-mic-icon-inline {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.voice-inline-btn .voice-status-text {
  font-size: 14px;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0;
}

.voice-inline-btn.listening {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: #f5576c;
  animation: pulse 1.5s infinite;
}

.voice-inline-btn.processing {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-color: #00f2fe;
  animation: rotate 1s linear infinite;
}

.voice-inline-btn.error {
  background: linear-gradient(135deg, #f85032 0%, #e73827 100%);
  border-color: #e73827;
  animation: shake 0.5s;
}

/* Help button */
.voice-help-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #667eea;
  color: #667eea;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-help-btn:hover {
  background: #667eea;
  color: white;
  transform: scale(1.1);
}

/* Visual feedback container */
.voice-feedback {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 30px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10000;
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 280px;
}

.voice-feedback.hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
}

/* Waveform animation */
.voice-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.voice-wave {
  width: 4px;
  background: linear-gradient(to top, #667eea, #764ba2);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.voice-wave:nth-child(1) { animation-delay: 0s; height: 20px; }
.voice-wave:nth-child(2) { animation-delay: 0.1s; height: 30px; }
.voice-wave:nth-child(3) { animation-delay: 0.2s; height: 40px; }
.voice-wave:nth-child(4) { animation-delay: 0.3s; height: 30px; }
.voice-wave:nth-child(5) { animation-delay: 0.4s; height: 20px; }

/* Transcript display */
.voice-transcript {
  color: white;
  font-size: 18px;
  text-align: center;
  min-height: 30px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  min-width: 250px;
}

.voice-transcript.interim {
  opacity: 0.7;
  font-style: italic;
}

/* Notification */
.voice-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #333;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10001;
  transition: transform 0.3s ease;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.voice-notification.show {
  transform: translateX(-50%) translateY(0);
}

.voice-notification.success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.voice-notification.error {
  background: linear-gradient(135deg, #f85032 0%, #e73827 100%);
}

.voice-notification.info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes wave {
  0%, 100% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* iPad/Tablet specific adjustments */
@media (max-width: 1024px) {
  .voice-ptt-container {
    bottom: 20px;
    right: 20px;
  }
  
  .voice-ptt-btn {
    width: 70px;
    height: 70px;
  }
  
  .voice-mic-icon {
    width: 32px;
    height: 32px;
  }
  
  .voice-status-text {
    font-size: 10px;
  }
}

/* Mobile phone adjustments */
@media (max-width: 480px) {
  .voice-ptt-container {
    bottom: 15px;
    right: 15px;
  }
  
  .voice-ptt-btn {
    width: 56px;
    height: 56px;
  }
  
  .voice-mic-icon {
    width: 26px;
    height: 26px;
  }
  
  .voice-status-text {
    font-size: 8px;
  }
  
  .voice-feedback {
    padding: 20px;
    min-width: 90%;
  }
  
  .voice-transcript {
    font-size: 16px;
  }
}

/* Voice Debug Styles */
.voice-debug-cleared-message {
  color: #666;
  padding: 10px;
  text-align: center;
}

/* Clickable elements */
.clickable {
  cursor: pointer;
}

.command-syntax.clickable:hover {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 4px;
  transition: background 0.2s;
}

/* Voice Commands Help Page Styles */
.quick-start-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0;
}

.step-card {
  display: flex;
  align-items: flex-start;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px;
  border-left: 3px solid #667eea;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h4 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 1.1rem;
}

.step-content p {
  color: #b0b0b0;  /* Lighter gray for better readability */
  margin: 0;
  line-height: 1.5;
}

/* Command categories in help page */
.command-category h4 {
  color: #667eea;
  margin-bottom: 15px;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.command-card {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #3a3a3a;
}

.command-syntax {
  color: #4CAF50;
  font-family: monospace;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.command-example {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 5px;
  font-style: italic;
}

.command-description {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Tips section */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.tip-card {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  border: 1px solid #3a3a3a;
}

.tip-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tip-card h4 {
  color: #fff;
  margin: 10px 0 5px 0;
  font-size: 1rem;
}

.tip-card p {
  color: #b0b0b0;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

/* Help sections general */
.help-section {
  margin: 30px 0;
}

.help-section h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 15px;
  border-bottom: 2px solid #3a3a3a;
  padding-bottom: 10px;
}

/* Troubleshooting accordion */
.troubleshooting-accordion {
  margin: 20px 0;
}

.trouble-item {
  background: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #3a3a3a;
  overflow: hidden;
}

.trouble-item summary {
  padding: 15px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  background: #2a2a2a;
  transition: background 0.2s;
}

.trouble-item summary:hover {
  background: #333;
}

.trouble-item[open] summary {
  background: #333;
  border-bottom: 1px solid #3a3a3a;
}

.trouble-solution {
  padding: 15px;
  color: #b0b0b0;
}

.trouble-solution ol {
  margin: 0;
  padding-left: 20px;
  color: #b0b0b0;
}

.trouble-solution li {
  margin: 5px 0;
  line-height: 1.5;
}

/* Browser compatibility grid */
.browser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.browser-card {
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.browser-card.supported {
  background: #1a3d1a;
  border: 1px solid #2d5a2d;
}

.browser-card.partial {
  background: #3d3d1a;
  border: 1px solid #5a5a2d;
}

.browser-card.unsupported {
  background: #3d1a1a;
  border: 1px solid #5a2d2d;
}

.browser-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.browser-card h4 {
  color: #fff;
  margin: 10px 0;
}

.browser-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #b0b0b0;
  text-align: left;
}

.browser-card li {
  margin: 5px 0;
  padding-left: 20px;
  position: relative;
}

.browser-card li::before {
  content: "•";
  position: absolute;
  left: 5px;
}

/* Help actions buttons */
.help-actions {
  display: flex;
  gap: 10px;
  margin: 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* Voice Commands Help Modal */
.voice-help-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.voice-help-modal.show {
  display: flex;
}

.voice-help-content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.voice-help-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.voice-help-close:hover {
  color: #333;
}

.voice-help-content h2 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.voice-help-section {
  margin-bottom: 25px;
}

.voice-help-section h3 {
  color: #667eea;
  margin: 0 0 10px 0;
  font-size: 18px;
}

.voice-help-section p {
  margin: 5px 0;
  color: #555;
  line-height: 1.6;
}

.voice-help-section ul {
  margin: 10px 0;
  padding-left: 20px;
}

.voice-help-section li {
  margin: 10px 0;
  color: #555;
  line-height: 1.6;
}

.voice-help-section strong {
  color: #333;
  display: inline-block;
  margin-bottom: 3px;
}

/* Mobile adjustments for help modal */
@media (max-width: 600px) {
  .voice-help-content {
    padding: 20px;
    max-height: 90vh;
  }
  
  .voice-help-content h2 {
    font-size: 20px;
  }
  
  .voice-help-section h3 {
    font-size: 16px;
  }
}

/* Voice Selection Inline Display (Non-Modal) */
.voice-selection-inline {
  background: #fff;
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

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

.voice-selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

.voice-selection-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.voice-selection-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.voice-selection-close:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}

.voice-selection-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-selection-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
}

.voice-selection-item:hover {
  background: #e9ecef;
  border-color: #28a745;
  transform: translateX(5px);
}

.voice-option-number {
  background: #28a745;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  margin-right: 15px;
  min-width: 70px;
  text-align: center;
  font-size: 14px;
}

.voice-option-text {
  flex: 1;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.voice-option-text strong {
  color: #212529;
  font-weight: 600;
}

/* Dark mode support for inline selection */
@media (prefers-color-scheme: dark) {
  .voice-selection-inline {
    background: #2d2d2d;
    border-color: #28a745;
  }

  .voice-selection-header {
    border-bottom-color: #444;
  }

  .voice-selection-title {
    color: #fff;
  }

  .voice-selection-close {
    color: #adb5bd;
  }

  .voice-selection-close:hover {
    background-color: #3a3a3a;
  }

  .voice-selection-item {
    background: #3a3a3a;
    border-color: #444;
  }

  .voice-selection-item:hover {
    background: #444;
    border-color: #28a745;
  }

  .voice-option-text {
    color: #fff;
  }

  .voice-option-text strong {
    color: #fff;
  }
}

/* Mobile responsive for voice selection */
@media (max-width: 600px) {
  .voice-selection-inline {
    max-width: 100%;
    margin: 10px;
    padding: 12px;
  }

  .voice-selection-title {
    font-size: 14px;
  }

  .voice-option-number {
    min-width: 60px;
    font-size: 12px;
    padding: 4px 8px;
  }

  .voice-option-text {
    font-size: 13px;
  }

  .voice-selection-item {
    padding: 10px;
  }
}

/* ==========================================
   VOICE SETTINGS STYLES
   ========================================== */

.voice-settings-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.settings-form {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.settings-form .form-group {
  margin-bottom: 25px;
}

.settings-form label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 500;
}

.settings-form .form-control {
  width: 100%;
  padding: 10px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
}

.settings-form .form-control:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Toggle switches */
.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 8px 0;
  min-height: 42px;
}

.toggle-label input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: #2a2a2a;
  border: 2px solid #555;
  border-radius: 13px;
  margin-left: 20px;
  flex-shrink: 0;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #888;
  border-radius: 50%;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.toggle-label input:checked + .toggle-slider {
  background: #4CAF50;
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.toggle-label input:checked + .toggle-slider::after {
  transform: translateX(24px);
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Add hover effects for better interactivity */
.toggle-label:hover .toggle-slider {
  opacity: 0.9;
}

.toggle-label input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Add ON/OFF text indicators */
.toggle-slider::before {
  content: 'OFF';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  color: #666;
  font-weight: bold;
  transition: opacity 0.3s;
  opacity: 1;
}

.toggle-label input:checked + .toggle-slider::before {
  content: 'ON';
  left: 6px;
  right: auto;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
}

.toggle-text {
  color: #fff;
  font-weight: 500;
  flex-grow: 1;
  margin-right: 15px;
}

/* Slider for confidence threshold */
.slider-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: #404040;
  border-radius: 3px;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #667eea;
  border-radius: 50%;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #667eea;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.slider-value {
  min-width: 50px;
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* Help text */
.help-text {
  margin-top: 5px;
  font-size: 12px;
  color: #999;
}

/* Test output */
.test-output {
  margin-top: 15px;
  padding: 15px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 6px;
  animation: slideIn 0.3s ease-out;
}

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

.test-output p {
  margin: 0 0 10px 0;
  color: #999;
}

#test-transcript {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

#test-confidence {
  color: #667eea;
  font-size: 14px;
  transition: color 0.3s ease;
}

/* Test button recording state */
#test-voice-btn.recording {
  animation: pulse 1.5s infinite;
  background-color: #ff4444 !important;
  color: #fff !important;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
  }
}

/* Transcript states for CSP compliance */
.transcript-active {
  color: #fff !important;
}

.transcript-error {
  color: #ff6b6b !important;
}

/* Confidence states for CSP compliance */
.confidence-good {
  color: #4ade80 !important;
}

.confidence-low {
  color: #fbbf24 !important;
}

/* Flash message margin for CSP compliance */
.flash-margin {
  margin-bottom: 20px;
}

/* Enhanced button states */
.settings-form .btn {
  transition: all 0.2s ease;
}

.settings-form .btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.settings-form .btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.settings-form .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Form actions */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #404040;
}

/* Browser compatibility notice */
#compatibility-notice {
  margin-top: 30px;
  padding: 20px;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 8px;
}

#compatibility-notice h4 {
  margin-top: 0;
  color: #fff;
}

#compatibility-notice ul {
  margin: 10px 0;
  padding-left: 20px;
}

#compatibility-notice li {
  color: #ccc;
  margin: 5px 0;
}

#browser-status {
  margin-top: 15px;
  font-weight: 600;
}

.text-success {
  color: #4ade80;
}

.text-warning {
  color: #fbbf24;
}

/* Voice reference card */
.voice-reference-card {
  margin-top: 30px;
  padding: 25px;
  background: #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #333;
}

.voice-reference-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  font-size: 20px;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
}

.command-category {
  margin-bottom: 20px;
  padding: 15px;
  background: #1a1a1a;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.command-category h4 {
  color: #667eea;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

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

.command-category li {
  padding: 5px 0;
  color: #ccc;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.command-category li::before {
  content: '• ';
  color: #667eea;
  margin-right: 8px;
}

/* Responsive design for voice settings */
@media (max-width: 768px) {
  .voice-settings-container {
    padding: 10px;
    max-width: 100%;
  }
  
  .settings-form {
    padding: 15px;
    border-radius: 8px;
  }
  
  .settings-form .form-group {
    margin-bottom: 20px;
  }
  
  /* Better toggle layout on mobile */
  .toggle-label {
    padding: 12px 0;
    min-height: 48px;
  }
  
  .toggle-slider {
    width: 48px;
    height: 28px;
  }
  
  /* Adjust circle size for mobile */
  .toggle-slider::after {
    width: 20px;
    height: 20px;
    top: 2px;
    left: 3px;
  }
  
  /* Adjust ON position for mobile */
  .toggle-label input:checked + .toggle-slider::after {
    transform: translateX(20px);
  }
  
  /* Adjust text size and position for mobile */
  .toggle-slider::before {
    font-size: 9px;
    right: 5px;
  }
  
  .toggle-label input:checked + .toggle-slider::before {
    left: 5px;
  }
  
  /* Ensure help text is readable */
  .help-text {
    font-size: 0.9rem;
    margin-top: 6px;
    line-height: 1.4;
  }
  
  /* Full width buttons on mobile */
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
    margin: 5px 0;
    padding: 12px 20px;
    min-height: 48px;
    font-size: 1rem;
  }
  
  /* Test output styling on mobile */
  .test-output {
    padding: 12px;
    margin-top: 10px;
    font-size: 0.95rem;
  }
  
  /* Voice reference card on mobile */
  .voice-reference-card {
    margin-top: 20px;
    padding: 15px;
  }
  
  .voice-reference-card h3 {
    font-size: 1.2rem;
  }
  
  .command-category {
    margin-bottom: 15px;
  }
  
  .command-category h4 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .command-category ul {
    font-size: 0.9rem;
  }
}
