/* ================================================
   KIOSK MODE STYLES - Touch-Optimized Interface
   ================================================ */

/* Apply kiosk mode when body has .kiosk-mode class */
body.kiosk-mode {
  overflow: hidden;
}

/* Hide elements in kiosk mode */
body.kiosk-mode .hide-in-kiosk,
body.kiosk-mode nav.main-nav,
body.kiosk-mode .sub-header,
body.kiosk-mode footer,
body.kiosk-mode .breadcrumbs {
  display: none !important;
}

/* Kiosk container - full screen */
.kiosk-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Kiosk header */
.kiosk-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.kiosk-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kiosk-header h1 i {
  color: #667eea;
}

.kiosk-header-buttons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.kiosk-logout-btn,
.kiosk-exit-btn {
  background: rgba(102, 126, 234, 0.2);
  border: 2px solid rgba(102, 126, 234, 0.3);
  color: #1f2937;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.kiosk-logout-btn:hover,
.kiosk-exit-btn:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  color: #1f2937;
}

/* Kiosk main content area */
.kiosk-main {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Search section */
.kiosk-search-section {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.kiosk-search-input-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.kiosk-search-input {
  width: 100%;
  height: 80px;
  font-size: 28px;
  padding: 0 5rem 0 2rem;
  border: 3px solid #e5e7eb;
  border-radius: 1rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

.kiosk-search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.kiosk-search-icon {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: #667eea;
  pointer-events: none;
  transition: all 0.3s ease;
}

.kiosk-clear-btn {
  position: absolute;
  right: 5.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-clear-btn:hover {
  background: #dc2626;
  transform: translateY(-50%) scale(1.1);
}

.kiosk-clear-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* Scanning animation */
.kiosk-search-input.scanning {
  border-color: #10b981;
  animation: pulse 1s ease-in-out infinite;
}

.kiosk-search-icon.scanning {
  color: #10b981;
  animation: scan 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes scan {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50% { transform: translateY(-50%) scale(1.2); }
}

/* Quick action buttons */
.kiosk-quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.kiosk-action-btn {
  height: 100px;
  border: none;
  border-radius: 1rem;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kiosk-action-btn:active {
  transform: scale(0.98);
}

.kiosk-action-btn i {
  font-size: 32px;
}

.kiosk-action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.kiosk-action-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.kiosk-action-btn.secondary {
  background: #f3f4f6;
  color: #374151;
}

.kiosk-action-btn.secondary:hover {
  background: #e5e7eb;
}

/* Advanced filters toggle */
.kiosk-filters-toggle {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 18px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.kiosk-filters-toggle:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.kiosk-filters-panel {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: 1rem;
  display: none;
}

.kiosk-filters-panel.active {
  display: block;
}

.kiosk-filter-group {
  margin-bottom: 1.5rem;
}

.kiosk-filter-label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

.kiosk-filter-select {
  width: 100%;
  height: 60px;
  font-size: 20px;
  padding: 0 1.5rem;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  background: white;
}

/* Results section */
.kiosk-results {
  display: grid;
  gap: 1.5rem;
}

.kiosk-result-card {
  background: white;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
}

.kiosk-result-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.kiosk-card-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.kiosk-card-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kiosk-card-title i {
  color: #667eea;
  font-size: 28px;
}

.kiosk-expand-btn {
  padding: 0.75rem 1.5rem;
  background: #f3f4f6;
  border: none;
  border-radius: 0.75rem;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
}

.kiosk-expand-btn:hover {
  background: #e5e7eb;
}

.kiosk-edit-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 0.75rem;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
  flex: 1;
  min-width: 0;
}

.kiosk-edit-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.kiosk-edit-btn:active {
  transform: translateY(0);
}

.kiosk-checkout-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 0.75rem;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.kiosk-checkout-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.kiosk-checkout-btn:active {
  transform: translateY(0);
}

/* View mode toggle buttons */
.kiosk-view-btn {
  width: 50px;
  height: 50px;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-view-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.kiosk-view-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

/* Kiosk-themed sort dropdown */
#kiosk-sort-select {
  font-size: 20px;
  font-weight: 600;
  padding: 1rem 2.5rem 1rem 1rem;
  border: 3px solid #667eea;
  border-radius: 0.75rem;
  background: white;
  color: #1f2937;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23667eea' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5em;
  appearance: none;
}

#kiosk-sort-select:hover {
  border-color: #764ba2;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#kiosk-sort-select:focus {
  outline: none;
  border-color: #764ba2;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

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

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

.kiosk-modal-content {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.kiosk-modal-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kiosk-modal-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kiosk-modal-close {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.kiosk-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.kiosk-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.kiosk-modal-footer {
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-top: 2px solid #e5e7eb;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.kiosk-btn-secondary {
  padding: 1rem 2rem;
  background: white;
  border: 2px solid #d1d5db;
  border-radius: 0.75rem;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.kiosk-btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.kiosk-btn-primary {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 0.75rem;
  font-size: 18px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.kiosk-btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

.kiosk-btn-primary:active {
  transform: translateY(0);
}

/* Thumbnail view mode */
.kiosk-results.thumbnail-mode {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.kiosk-results.thumbnail-mode .kiosk-result-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
}

.kiosk-results.thumbnail-mode .kiosk-card-header {
  flex-direction: column;
  align-items: flex-start;
}

.kiosk-results.thumbnail-mode .kiosk-card-header > div {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.kiosk-results.thumbnail-mode .kiosk-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.kiosk-results.thumbnail-mode .kiosk-edit-btn,
.kiosk-results.thumbnail-mode .kiosk-checkout-btn,
.kiosk-results.thumbnail-mode .kiosk-expand-btn {
  flex: 1;
  min-width: 100px;
  justify-content: center;
}

/* ========================================
   MOBILE & PORTRAIT MODE OPTIMIZATIONS
   ======================================== */

/* Tablets and smaller (portrait) */
@media screen and (max-width: 1024px) {
  .kiosk-header h1 {
    font-size: 28px;
  }

  .kiosk-search-input {
    font-size: 22px;
    padding: 1.25rem 5rem 1.25rem 1.5rem;
  }

  .kiosk-quick-actions {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .kiosk-action-btn {
    padding: 1rem;
  }

  /* Stack sort and view controls on smaller screens */
  .kiosk-sort-view-controls {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Mobile phones (portrait) */
@media screen and (max-width: 768px) {
  .kiosk-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .kiosk-header h1 {
    font-size: 24px;
    text-align: center;
  }

  .kiosk-exit-btn {
    width: 100%;
    justify-content: center;
    font-size: 18px;
    padding: 1rem;
  }

  .kiosk-search-input {
    font-size: 20px;
    height: 70px;
    padding: 1rem 4.5rem 1rem 1.25rem;
  }

  .kiosk-search-icon {
    font-size: 24px;
    right: 1.5rem;
  }

  .kiosk-clear-btn {
    width: 40px;
    height: 40px;
    right: 4.5rem;
    font-size: 20px;
  }

  /* Action buttons */
  .kiosk-action-btn {
    font-size: 18px;
    padding: 1.25rem;
    height: auto;
  }

  .kiosk-action-btn i {
    font-size: 24px;
  }

  /* Result cards - full width on mobile */
  .kiosk-result-card {
    padding: 1.25rem;
  }

  .kiosk-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .kiosk-card-title {
    font-size: 24px;
  }

  .kiosk-card-header > div {
    width: 100%;
    flex-wrap: wrap;
  }

  /* Buttons stack on mobile */
  .kiosk-edit-btn,
  .kiosk-checkout-btn,
  .kiosk-expand-btn {
    font-size: 16px;
    padding: 0.75rem 1.25rem;
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .kiosk-card-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .kiosk-info-label {
    font-size: 14px;
  }

  .kiosk-info-value {
    font-size: 18px;
  }

  /* Thumbnail mode - single column on mobile */
  .kiosk-results.thumbnail-mode {
    grid-template-columns: 1fr;
  }

  /* Filters panel */
  .kiosk-filters-panel {
    padding: 1rem;
  }

  .kiosk-filters-panel > div {
    grid-template-columns: 1fr;
  }

  /* View toggle buttons */
  .kiosk-view-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  /* Sort dropdown */
  #kiosk-sort-select {
    font-size: 16px;
    padding: 0.75rem;
  }
}

/* Very small phones */
@media screen and (max-width: 480px) {
  .kiosk-header h1 {
    font-size: 20px;
  }

  .kiosk-search-input {
    font-size: 18px;
    height: 60px;
    padding: 0.75rem 4rem 0.75rem 1rem;
  }

  .kiosk-search-icon {
    font-size: 20px;
    right: 1rem;
  }

  .kiosk-clear-btn {
    width: 36px;
    height: 36px;
    right: 4rem;
    font-size: 18px;
  }

  .kiosk-card-title {
    font-size: 20px;
  }

  .kiosk-edit-btn,
  .kiosk-checkout-btn,
  .kiosk-expand-btn {
    font-size: 14px;
    padding: 0.6rem 1rem;
    min-width: 100px;
  }

  .kiosk-info-value {
    font-size: 16px;
  }

  .kiosk-status-badge {
    font-size: 14px;
    padding: 0.5rem 1rem;
  }
}

/* Portrait orientation specific */
@media screen and (orientation: portrait) and (max-width: 1024px) {
  .kiosk-container {
    padding: 0.5rem;
  }

  .kiosk-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
  }

  /* Optimize vertical space */
  .kiosk-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  /* Make cards more compact in portrait */
  .kiosk-result-card {
    margin-bottom: 1rem;
  }

  /* Result count header more compact */
  .kiosk-results > div:first-child {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
  }

  .kiosk-results > div:first-child h3 {
    font-size: 20px;
  }

  .kiosk-results > div:first-child p {
    font-size: 14px;
  }
}

.kiosk-card-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.kiosk-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.kiosk-info-label {
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kiosk-info-value {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  font-family: 'Courier New', monospace;
}

/* Status badges */
.kiosk-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 20px;
  font-weight: 700;
}

.kiosk-status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.kiosk-status-badge.checked-out {
  background: #fef3c7;
  color: #92400e;
}

.kiosk-status-badge.destroyed {
  background: #fee2e2;
  color: #991b1b;
}

.kiosk-status-badge i {
  font-size: 18px;
}

/* Location display */
.kiosk-location {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.75rem;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

.kiosk-location i {
  font-size: 20px;
}

/* Expanded details */
.kiosk-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f3f4f6;
  width: 100%;
  box-sizing: border-box;
}

.kiosk-card-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #f3f4f6;
  display: none;
}

.kiosk-card-details.active {
  display: block;
}

/* Box contents section */
.kiosk-box-contents {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f3e8ff 100%);
  border-radius: 1rem;
}

.kiosk-box-contents-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.kiosk-box-contents-title i {
  color: #667eea;
}

.kiosk-box-file-list {
  display: grid;
  gap: 0.75rem;
}

.kiosk-box-file {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.kiosk-box-file:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.kiosk-box-file-number {
  font-size: 20px;
  font-weight: 700;
  color: #667eea;
  font-family: 'Courier New', monospace;
}

.kiosk-box-file-dept {
  font-size: 16px;
  color: #6b7280;
  padding: 0.25rem 0.75rem;
  background: #f3f4f6;
  border-radius: 0.5rem;
}

/* No results state */
.kiosk-no-results {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kiosk-no-results i {
  font-size: 64px;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.kiosk-no-results h3 {
  font-size: 28px;
  font-weight: 700;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.kiosk-no-results p {
  font-size: 20px;
  color: #9ca3af;
  margin: 0;
}

/* Exit kiosk button */
.kiosk-exit-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.kiosk-exit-btn:hover {
  background: #f9fafb;
  border-color: #667eea;
  color: #667eea;
}

/* Kiosk toggle button (in normal mode) */
.kiosk-toggle-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kiosk-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

body.kiosk-mode .kiosk-toggle-btn {
  display: none;
}

/* Loading spinner */
.kiosk-loading {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* View Mode Classes - Match JavaScript */
.kiosk-results.kiosk-list-view {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.kiosk-results.kiosk-thumbnail-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.kiosk-results.kiosk-thumbnail-view > div:first-child {
  grid-column: 1 / -1;
}

.kiosk-results.kiosk-thumbnail-view .kiosk-result-card {
  min-height: 320px;
}

/* View toggle buttons styling */
.kiosk-view-btn {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #1f2937;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.kiosk-view-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.kiosk-view-btn.active {
  background: white;
  border-color: #667eea;
  color: #667eea;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .kiosk-search-input {
    height: 70px;
    font-size: 24px;
  }
  
  .kiosk-action-btn {
    height: 80px;
    font-size: 18px;
  }
  
  .kiosk-card-title {
    font-size: 26px;
  }
  
  .kiosk-info-value {
    font-size: 20px;
  }
  
  /* Single column in thumbnail view on mobile */
  .kiosk-results.kiosk-thumbnail-view {
    grid-template-columns: 1fr;
  }
}
