/* PrintStack Brand Colors */
:root {
  --print-color: #08687e;
  --stack-color: #08233e;
  --logo-lightest: #4dbdd1;
  --logo-light: #00a9b8;
  --logo-blue: #2090e4;
  --logo-dark-blue: #0a64b0;
  --logo-navy: #064372;
  --logo-dark-navy: #094581;
  --logo-cyan: #086fd4;
  --logo-dark: #08223b;
  --primary-color: var(--print-color);
  --secondary-color: var(--stack-color);
  --accent-color: var(--logo-light);
  --background-gradient-start: var(--logo-light);
  --background-gradient-end: var(--logo-dark-blue);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, var(--background-gradient-start) 0%, var(--background-gradient-end) 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.app-container {
  display: flex;
  min-height: 100vh;
  flex: 1;
}

.sidebar {
  width: 250px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  height: 100vh;
  position: sticky;
  top: 0;
}

.logo-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  background: transparent;
  padding: 10px 0;
}

.sidebar-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  object-fit: contain;
  background: transparent;
  image-rendering: crisp-edges;
  image-rendering: -webkit-crisp-edges;
  -webkit-font-smoothing: antialiased;
  mix-blend-mode: normal;
  isolation: isolate;
}

/* Footer Styles */
.app-footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--logo-dark) 100%);
  color: #ffffff;
  margin-top: auto;
  border-top: 3px solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.footer-print {
  color: var(--primary-color);
}

.footer-stack {
  color: #ffffff;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

.github-icon,
.issue-icon {
  margin-right: 8px;
  font-size: 1.1em;
}

.license-info {
  text-align: center;
}

.mit-badge {
  background: var(--accent-color);
  color: var(--secondary-color) !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
  display: inline-block;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.license-text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9em;
  margin-bottom: 8px;
}

.separator {
  margin: 0 10px;
  color: var(--accent-color);
}

.footer-copyright-details p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.85em;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-links {
    max-width: 250px;
    margin: 0 auto;
  }

  .license-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 30px 15px;
    gap: 25px;
  }

  .footer-brand {
    font-size: 1.5em;
  }

  .footer-section h4 {
    font-size: 1em;
  }

  .footer-bottom {
    padding: 15px;
  }

  .copyright {
    font-size: 0.85em;
    flex-direction: column;
  }

  .separator {
    display: none;
  }
}

/* Ensure logo doesn't overflow sidebar */
@media (max-width: 300px) {
  .sidebar-logo {
    max-width: 160px;
    margin-bottom: 10px;
  }
}

.brand-header {
  font-size: 1.4em;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand-header .print {
  color: var(--print-color);
}

.brand-header .stack {
  color: var(--stack-color);
}

.nav-item {
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--secondary-color);
  font-weight: 500;
}

.nav-item:hover {
  background: var(--logo-lightest);
  color: var(--print-color);
}

.nav-item.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

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

.page {
  display: none !important;
}

.page.active {
  display: block !important;
}

h1 {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}

.section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.5em;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
}

.input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

input,
select {
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
}

button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

button:hover {
  background: linear-gradient(135deg, var(--logo-dark-blue) 0%, var(--logo-navy) 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.delete-btn {
  background: #ef4444;
  padding: 6px 12px;
  font-size: 12px;
}

.delete-btn:hover {
  background: #dc2626;
}

.export-btn {
  background: #059669;
  margin-left: 10px;
}

.export-btn:hover {
  background: #047857;
}

.edit-btn {
  background: #f59e0b;
  padding: 6px 12px;
  font-size: 12px;
  margin-right: 5px;
}

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

.add-req-btn {
  background: #059669;
  margin-top: 10px;
}

.add-req-btn:hover {
  background: #047857;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th {
  background: #f8f9fa;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
}

tr:hover {
  background: #f8f9fa;
}

.color-swatch {
  display: inline-block;
  width: 60px;
  height: 28px;
  border-radius: 4px;
  border: 2px solid #ddd;
  vertical-align: middle;
  margin-right: 8px;
  position: relative;
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.color-swatch::after {
  content: attr(data-hex);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: monospace;
  font-size: 9px;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

/* Ensure text is readable on dark backgrounds */
.color-swatch::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
  margin-bottom: 5px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.status-can-print {
  color: #059669;
  font-weight: 600;
}

.status-cannot-print {
  color: #dc2626;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

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

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  font-size: 1.5em;
  color: #667eea;
  margin-bottom: 20px;
  border-bottom: 3px solid #667eea;
  padding-bottom: 10px;
}

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

/* Edit Modal Form Styling */
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  background: white;
  box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal-content .input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #495057;
}

.modal-buttons button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-buttons button:not(.cancel-btn) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modal-buttons button:not(.cancel-btn):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modal-buttons .cancel-btn {
  background: #6c757d;
  color: white;
}

.modal-buttons .cancel-btn:hover {
  background: #5a6268;
}

.cancel-btn {
  background: #6b7280;
}

.cancel-btn:hover {
  background: #4b5563;
}

.filament-req-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.usage-fields {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.usage-fields input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.usage-fields input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

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

  .search-container {
    min-width: auto;
    width: 100%;
  }

  .usage-fields {
    justify-content: space-between;
    width: 100%;
  }

  .usage-fields input {
    flex: 1;
    min-width: 60px;
  }
}

.filament-req-enhanced {
  padding: 4px 6px;
  margin-bottom: 4px;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #6c757d;
}

.req-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.req-secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6c757d;
  margin-top: 2px;
}

.req-weight {
  font-weight: 600;
  color: #007bff;
}

.req-tolerance {
  color: #28a745;
  font-weight: 500;
}

.req-quantity {
  background: #ffc107;
  color: #212529;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .filament-req-enhanced {
    margin-bottom: 6px;
  }

  .req-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .req-secondary {
    justify-content: flex-start;
    gap: 8px;
  }
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Model Search Styling */
.model-search-container {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.model-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.model-search-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.model-search-result-item:hover,
.model-search-result-item.highlight {
  background-color: #f8f9ff;
  border-color: #667eea;
}

.model-search-result-item:last-child {
  border-bottom: none;
}

.model-search-result-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
}

.model-search-result-details {
  font-size: 0.85rem;
  color: #666;
}

.model-search-result-no-results {
  padding: 10px;
  color: #666;
  font-style: italic;
  text-align: center;
}

.search-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.no-results {
  padding: 10px;
  text-align: center;
  color: #6b7280;
}

/* Model Search Styling */
.model-search-container {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.model-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #667eea;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.model-search-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.model-search-result-item:hover,
.model-search-result-item.highlight {
  background-color: #f8f9ff;
  border-color: #667eea;
}

.model-search-result-item:last-child {
  border-bottom: none;
}

.model-search-result-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
}

.model-search-result-details {
  font-size: 0.85rem;
  color: #666;
}

.model-search-result-no-results {
  padding: 10px;
  color: #666;
  font-style: italic;
  text-align: center;
}

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

.stats-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.total-banner {
  margin-top: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  font-weight: 600;
}

.footer {
  background: white;
  padding: 20px;
  margin: 40px 20px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.footer-content {
  text-align: center;
  color: #495057;
  font-size: 13px;
}

.footer-content p {
  margin: 5px 0;
}

.footer-content a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.footer-content a:hover {
  color: #5568d3;
  text-decoration: underline;
}

/* Enhanced form styles for filament management */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-group.full-width {
  grid-column: 1 / -1; /* Span all columns */
}

.form-group label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 4px;
  font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
  outline-color: #dc3545;
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.form-help {
  font-size: 0.8em;
  color: #6c757d;
  margin-top: 2px;
  font-style: italic;
}

/* Model Form Specific Enhancements */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #dee2e6;
}

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

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

#modelForm .form-group input,
#modelForm .form-group select,
#modelForm .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

/* Model Table Enhancements */
.model-difficulty {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-easy {
  background: #d4edda;
  color: #155724;
}

.difficulty-medium {
  background: #fff3cd;
  color: #856404;
}

.difficulty-hard {
  background: #f8d7da;
  color: #721c24;
}

.model-category {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #e9ecef;
  color: #495057;
}

.print-time {
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

/* Mobile responsiveness for model fields */
@media (max-width: 768px) {
  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
    order: 2;
  }

  .form-actions button[type="button"] {
    order: 1;
  }

  /* Hide less critical columns on mobile */
  #modelTable th:nth-child(3),  /* Difficulty */
    #modelTable td:nth-child(3),
    #modelTable th:nth-child(5),  /* Est. Time */
    #modelTable td:nth-child(5),
    #modelTable th:nth-child(7),  /* Link/Notes */
    #modelTable td:nth-child(7) {
    display: none;
  }

  /* Mobile responsive modal */
  .modal-content {
    margin: 10px;
    padding: 20px;
    width: calc(100% - 20px);
    max-width: none;
  }

  .modal-content .input-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .modal-buttons button {
    width: 100%;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  /* On very small screens, also hide Category but keep Required Filaments */
  #modelTable th:nth-child(2),  /* Category */
    #modelTable td:nth-child(2),
    #modelTable th:nth-child(6),  /* Can Print? (simple status shown in filament display) */
    #modelTable td:nth-child(6) {
    display: none;
  }

  /* Make enhanced filament requirements more compact */
  .filament-req-enhanced {
    padding: 2px 4px;
    margin-bottom: 2px;
  }

  .req-primary {
    font-size: 12px;
  }

  .req-secondary {
    font-size: 10px;
    margin-top: 1px;
  }

  .model-difficulty,
  .model-category {
    font-size: 10px;
    padding: 1px 4px;
  }
}

/* Fieldset styling for Temperature Range and other grouped fields */
fieldset {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

fieldset legend {
  font-weight: 600;
  color: #495057;
  padding: 0;
  margin-bottom: 15px;
  font-size: 14px;
  display: block;
  background: none;
  width: auto;
}

/* Ensure inputs within fieldsets are properly styled */
fieldset input {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

fieldset input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

fieldset label {
  font-weight: 500;
  color: #495057;
  margin-right: 10px;
  font-size: 13px;
}

/* Fallback for class-based styling */
.fieldset {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.fieldset legend {
  font-weight: 600;
  color: #495057;
  padding: 0;
  margin-bottom: 15px;
  font-size: 14px;
  display: block;
  background: none;
  width: auto;
}

/* Ensure inputs within .fieldset are properly styled */
.fieldset input {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.fieldset input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.fieldset label {
  font-weight: 500;
  color: #495057;
  margin-right: 10px;
  font-size: 13px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.table-container table {
  margin: 0;
}

/* Mobile-first responsive design for enhanced forms */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 10px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
    margin-bottom: 5px;
  }

  .table-container {
    font-size: 0.9em;
  }

  .table-container th,
  .table-container td {
    padding: 8px 6px;
  }
}

@media (max-width: 480px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }

  .fieldset {
    padding: 10px;
  }

  .form-group label {
    margin-bottom: 6px;
  }
}

/* Accessibility enhancements */
.visually-hidden {
  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;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    border-color: #000;
    background: #fff;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline-width: 3px;
  }
}

/* Focus indicator improvements */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Error state styling */
.form-error {
  border-color: #dc3545 !important;
  background-color: #f8d7da;
  color: #721c24;
}

.error-message {
  color: #dc3545;
  font-size: 0.8em;
  margin-top: 4px;
  display: block;
}

/* Success state styling */
.form-success {
  border-color: #28a745 !important;
  background-color: #d4edda;
  color: #155724;
}

/* Loading state */
.loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Progressive Enhancement Styles */

/* Skip link for accessibility */
.skip-link:focus {
  top: 6px !important;
}

/* Enhancement level indicators - Basic Enhancement */
body[data-enhancement-level="basic"] .advanced-features {
  display: none;
}

body[data-enhancement-level="basic"] .section {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
}

body[data-enhancement-level="basic"] button {
  background: #6c757d;
}

body[data-enhancement-level="basic"] button:hover {
  background: #5a6268;
}

/* Enhancement level indicators - Medium Enhancement */
body[data-enhancement-level="medium"] .enhanced-features {
  opacity: 0.8;
}

body[data-enhancement-level="medium"] .loading {
  display: none; /* Hide complex loading animations */
}

body[data-enhancement-level="medium"] .success-message,
body[data-enhancement-level="medium"] .error-message,
body[data-enhancement-level="medium"] .warning-message {
  position: relative;
  top: auto;
  right: auto;
  margin: 10px 0;
  max-width: 100%;
}

/* Enhancement level indicators - High Enhancement */
body[data-enhancement-level="high"] .advanced-features {
  opacity: 0.95;
}

/* Enhancement level indicators - Full Enhancement */
body[data-enhancement-level="full"] {
  /* All features available */
}

/* NoScript fallback styles */
.noscript-warning {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#fallback-form {
  max-width: 600px;
  margin: 20px auto;
}

#fallback-form input {
  padding: 8px;
  margin: 0 0 10px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 200px;
}

#fallback-form button {
  background: #667eea;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}

#fallback-form button:hover {
  background: #5568d3;
}

/* Fallback styles for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .success-message,
  .error-message,
  .warning-message,
  .progress-indicator {
    transition: none;
    transform: none;
  }

  .loading::after {
    animation: none;
  }

  /* Show static loading indicator instead */
  .loading::after {
    content: "⏳ Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    background: transparent;
    border: none;
    width: auto;
    height: auto;
  }
}

/* High contrast mode support for enhanced features */
@media (prefers-contrast: high) {
  .success-message {
    background: white !important;
    border: 2px solid #000 !important;
    color: #000 !important;
  }

  .error-message {
    background: white !important;
    border: 2px solid #000 !important;
    color: #000 !important;
  }

  .warning-message {
    background: white !important;
    border: 2px solid #000 !important;
    color: #000 !important;
  }

  .progress-indicator {
    background: white;
    border: 1px solid #000;
  }

  .progress-indicator div {
    background: #000 !important;
  }
}

/* Touch-friendly fallback for touch devices */
@media (hover: none) and (pointer: coarse) {
  .success-message,
  .error-message,
  .warning-message {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    max-width: none;
    width: auto;
    transform: none;
  }

  .button:hover {
    transform: none;
  }
}

/* Enhanced filament search styling */
#filamentSearch {
  margin-bottom: 15px;
  transition:
    border-color 0.3s,
    box-shadow 0.2s;
}

#filamentSearch:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

#searchClear {
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

#searchClear:hover {
  color: #374151;
}

#filamentSearch:focus + #searchClear {
  color: #667eea;
}

/* Search result highlighting mark styling */
mark {
  background-color: #fef08a;
  color: #1f2937;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
  animation: highlight-fade 0.3s ease;
}

@keyframes highlight-fade {
  from {
    background-color: #fde047;
    opacity: 0.7;
  }
  to {
    background-color: #fef08a;
    opacity: 1;
  }
}

/* Enhanced filament table styling */
.filament-table-row {
  transition: background-color 0.2s;
}

.filament-table-row:hover {
  background-color: #f8f9fa;
}

/* Location indicator styling */
.location-indicator {
  cursor: help;
  transition: transform 0.2s;
}

.location-indicator:hover {
  transform: scale(1.1);
}

/* Enhanced edit modal responsiveness */
@media (max-width: 480px) {
  #editFilamentModal .modal-content {
    margin: 5% auto;
    width: 95%;
    padding: 15px;
  }

  #editFilamentModal .input-group {
    grid-template-columns: 1fr;
  }

  #editFilamentModal .form-group {
    margin-bottom: 8px;
  }
}
/* Material Type Management */
.material-types-management {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.material-types-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.material-type-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}

.material-type-name {
  font-weight: 500;
  color: #495057;
}

.material-type-item .badge {
  margin: 0 8px;
}

.material-types-add {
  display: flex;
  gap: 10px;
  align-items: center;
}

.material-types-add input {
  flex: 1;
  max-width: 300px;
}

.material-types-add button {
  padding: 8px 16px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.material-types-add button:hover {
  background: #218838;
}

.remove-btn {
  padding: 4px 8px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.remove-btn:hover:not(:disabled) {
  background: #c82333;
}

.remove-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Collapsible Sections */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.section-header:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
  color: #495057;
}

.toggle-icon {
  font-size: 14px;
  color: #6c757d;
  transition: transform 0.2s ease;
  font-weight: bold;
}

.section-content.collapsible {
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-top: 15px;
}

/* Enhanced Data Grid Styles */
.data-grid-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.data-grid-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-grid-search input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 200px;
}

.data-grid-pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.data-grid-pagination button {
  padding: 0.5rem 0.75rem;
  border: 1px solid #667eea;
  background: white;
  color: #495057;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.data-grid-pagination button:hover:not(:disabled) {
  background: #667eea;
  color: white;
}

.data-grid-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.data-grid-pagination button.active {
  background: #667eea;
  color: white;
}

.pagination-info {
  color: #495057;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 1rem;
}

.sortable-header {
  cursor: pointer;
  position: relative;
  padding-right: 20px !important;
  user-select: none;
  transition: background-color 0.2s ease;
}

.sortable-header:hover {
  background-color: #f8f9fa;
}

.sortable-header::after {
  content: "⇕";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.8em;
}

.sortable-header.sort-asc::after {
  content: "↑";
  color: #2c3e50;
}

.sortable-header.sort-desc::after {
  content: "↓";
  color: #2c3e50;
}

.search-highlight {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
}

.search-results-info {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.search-results-info .highlight {
  color: #2c3e50;
  font-weight: bold;
}

/* Enhanced table styling for data grid */
.data-grid-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.data-grid-table th {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.data-grid-table td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.data-grid-table tbody tr:hover {
  background-color: #f8f9fa;
}

.data-grid-table tbody tr:last-child td {
  border-bottom: none;
}

/* Temperature Range Input Styling */
.temp-range-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.temp-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.temp-range-inputs label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 4px;
  font-size: 14px;
}

.temp-range-inputs input[type="number"] {
  width: 80px;
  padding: 8px 4px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
  font-family: monospace;
}

.temp-range-inputs input[type="number"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.temp-separator {
  display: none; /* Hide separator since we're using vertical layout */
}

@media (max-width: 480px) {
  .temp-input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .temp-range-inputs input[type="number"] {
    width: 100%;
    margin-bottom: 4px;
  }
}

/* Category Management Styling */
.category-management {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.category-chip {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-chip.active {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: #ff6b6b;
}

.category-chip-count {
  background: rgba(255, 255, 255, 0.3);
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
  font-size: 10px;
}

.manage-categories-btn {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--logo-blue) 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.manage-categories-btn:hover {
  background: linear-gradient(135deg, var(--logo-light) 0%, var(--primary-color) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 104, 126, 0.3);
}

/* Category Modal Styling */
.category-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.category-item:hover {
  background: #e9ecef;
  transform: translateX(2px);
}

.category-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-item-name {
  font-weight: 600;
  color: #495057;
}

.category-item-count {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.category-item-actions {
  display: flex;
  gap: 8px;
}

.category-edit-btn,
.category-delete-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.category-edit-btn {
  color: #007bff;
}

.category-edit-btn:hover {
  background: #e3f2fd;
}

.category-delete-btn {
  color: #dc3545;
}

.category-delete-btn:hover {
  background: #ffebee;
}

.add-category-form {
  background: #e9ecef;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
}

.add-category-form .input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.add-category-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.add-category-form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-category-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Category Edit Input Styling */
.category-edit-input {
  background: white;
  border: 1px solid #007bff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  width: 150px;
}

.category-edit-input:focus {
  outline: none;
  border-color: #004085;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Enhanced Color Input for Edit Form */
.enhanced-color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.enhanced-color-input {
  width: 100px;
  padding: 8px 11px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  flex-shrink: 0;
}

.enhanced-color-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.enhanced-color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  position: relative;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.enhanced-color-swatch::after {
  content: attr(data-hex);
  font-family: "Courier New", monospace;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  word-break: break-all;
  max-width: 100%;
  padding: 1px;
}

.color-picker-btn {
  padding: 4px 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.color-picker-btn:hover {
  background: var(--accent-color);
  color: white;
  transform: scale(1.05);
}

.color-picker-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

@media (max-width: 480px) {
  .enhanced-color-input-wrapper {
    flex-wrap: wrap;
  }

  .enhanced-color-input {
    flex-basis: 100px;
  }

  .enhanced-color-swatch {
    width: 32px;
    height: 32px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .category-management {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .category-chips {
    justify-content: center;
  }

  .category-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .category-item-actions {
    justify-content: center;
  }

  .add-category-form .input-group {
    flex-direction: column;
    gap: 8px;
  }
}

/* Enhanced Print Form Styles - User Story 3 */
.print-details-section {
  border: 1px solid #dee2e6;
}

.print-quality-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.print-details-section .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.print-details-section label {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.print-details-section select,
.print-details-section textarea,
.print-details-section input[type="number"] {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
}

.print-details-section select:focus,
.print-details-section textarea:focus,
.print-details-section input[type="number"]:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.print-details-section textarea {
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}

.usage-variance-section {
  border: 1px solid #adb5bd;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.usage-variance-section h3 {
  color: #495057;
  font-size: 16px;
  border-bottom: 2px solid #6c757d;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* Print Quality Rating Visualization */
.quality-indicator {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.quality-good {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.quality-fair {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

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

/* Variance Display */
.variance-display {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
}

.variance-positive {
  color: #28a745;
}

.variance-negative {
  color: #dc3545;
}

.variance-neutral {
  color: #6c757d;
}

/* Mobile Responsive Styles for Print Form */
@media (max-width: 768px) {
  .print-details-section {
    margin-top: 15px;
    padding: 12px;
  }

  .print-quality-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .print-details-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .usage-variance-section {
    margin-top: 15px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .print-details-section {
    margin-top: 10px;
    padding: 10px;
  }

  .print-details-section h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .print-quality-controls {
    gap: 10px;
  }

  .print-details-section select,
  .print-details-section textarea,
  .print-details-section input[type="number"] {
    font-size: 16px; /* Prevent zoom on iOS Safari */
    padding: 10px 12px;
  }

  .usage-variance-section {
    margin-top: 10px;
    padding: 10px;
  }

  .quality-indicator {
    font-size: 10px;
    padding: 2px 6px;
  }

  .variance-display {
    font-size: 11px;
  }
}

/* Print History Table Enhanced Styles */
#_printTable th:nth-child(1) {
  /* Date */
  width: 80px;
}

#_printTable th:nth-child(2) {
  /* Model */
  width: 120px;
}

#_printTable th:nth-child(3) {
  /* Quality */
  width: 80px;
}

#_printTable th:nth-child(4) {
  /* Usage */
  width: 100px;
}

#_printTable th:nth-child(5) {
  /* Variance */
  width: 80px;
}

#_printTable th:nth-child(6) {
  /* Action */
  width: 120px;
}

@media (max-width: 768px) {
  #_printTable th:nth-child(3), /* Quality */
    #_printTable th:nth-child(5) {
    /* Variance */
    display: none;
  }
}

@media (max-width: 480px) {
  #_printTable th:nth-child(4) {
    /* Usage */
    width: 80px;
  }

  #_printTable th:nth-child(6) {
    /* Action */
    width: 80px;
  }
}

/* Footer Styles */
.app-footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--logo-dark) 100%);
  color: #ffffff;
  border-top: 3px solid var(--primary-color);
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: var(--accent-color);
  margin-bottom: 15px;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-brand {
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
}

.footer-print {
  color: var(--primary-color);
}

.footer-stack {
  color: #ffffff;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-radius: 4px;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.1);
  padding-left: 10px;
}

.github-icon,
.issue-icon {
  margin-right: 8px;
  font-size: 1.1em;
}

.license-info {
  text-align: center;
}

.mit-badge {
  background: var(--accent-color);
  color: var(--secondary-color) !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9em;
  display: inline-block;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.license-text {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.9em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9em;
  margin-bottom: 8px;
}

.separator {
  margin: 0 10px;
  color: var(--accent-color);
}

.footer-copyright-details p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.85em;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-links {
    max-width: 250px;
    margin: 0 auto;
  }

  .license-info {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: 30px 15px;
    gap: 25px;
  }

  .footer-brand {
    font-size: 1.5em;
  }

  .footer-section h4 {
    font-size: 1em;
  }

  .footer-bottom {
    padding: 15px;
  }

  .copyright {
    font-size: 0.85em;
    flex-direction: column;
  }

  .separator {
    display: none;
  }
}
