 .pill { transition: transform .12s ease, box-shadow .12s ease; }
    .pill:active { transform: translateY(1px) scale(.995); }
    .dragging { opacity: 0.5; box-shadow: 0 10px 20px rgba(0,0,0,0.2); transform: scale(1.02); }
    .opacity-50 { opacity: 0.5; }
    .hidden { display: none; }
    .active { 
      border-bottom: 2px solid #3b82f6 !important; 
      color: #2563eb !important; 
      background-color: #dbeafe !important;
    }
    /* QR Modal */
.qr-modal {
  display: block;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
}

.qr-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  position: relative;
}

.qr-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.qr-close:hover,
.qr-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}


/* Menu styles for sheet viewer */
#sheetViewerModal .pill-button {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  user-select: none;
  max-width: 100%;
  word-wrap: break-word;
}

#sheetViewerModal .menu-content {
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
    
    /* Additional styles for improved user experience */
    .btn-primary {
      background-color: #4f46e5;
      color: white;
      border: none;
      border-radius: 0.375rem;
      padding: 0.5rem 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .btn-primary:hover {
      background-color: #4338ca;
    }
    
    .btn-secondary {
      background-color: #6b7280;
      color: white;
      border: none;
      border-radius: 0.375rem;
      padding: 0.5rem 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .btn-secondary:hover {
      background-color: #57534e;
    }
    
    .btn-danger {
      background-color: #ef4444;
      color: white;
      border: none;
      border-radius: 0.375rem;
      padding: 0.5rem 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .btn-danger:hover {
      background-color: #dc2626;
    }
    
    .card {
      background-color: white;
      border-radius: 0.5rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
    }
    
    .input-field {
      border: 1px solid #d1d5db;
      border-radius: 0.375rem;
      padding: 0.5rem 0.75rem;
      width: 100%;
      transition: border-color 0.2s;
    }
    
    .input-field:focus {
      outline: none;
      border-color: #4f46e5;
      box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    }
    
    .section-title {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 1rem;
      color: #1f2937;
    }
    
    .tab-content {
      border-top: 1px solid #e5e7eb;
    }
    
    .order-card {
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      padding: 1rem;
      margin-bottom: 1rem;
      transition: border-color 0.2s;
    }
    
    .order-card.active-order {
      border: 1px solid #4f46e5;
      background-color: #eff6ff;
    }
    
    .pill-button {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      border-radius: 9999px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
    }
    
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    
    .pill-button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    /* Google Auth Button Styles */
    #googleAuthSection {
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
    }
    
    #googleAuthBtn {
      background-color: #4285F4;
      transition: all 0.3s ease;
    }
    
    #googleAuthBtn:hover {
      background-color: #3367D6;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    }
    
    #loadingModal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    
    /* Sync Button Styles */
    #syncBtn {
      background-color: #4f46e5;
      transition: all 0.3s ease;
    }
    
    #syncBtn:hover {
      background-color: #4338ca;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    }
    
    #syncStatus {
      display: flex;
      align-items: center;
      color: #4f46e5;
      font-weight: 500;
    }