@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
    
    body {
      font-family: 'Montserrat', sans-serif;
      background: linear-gradient(135deg, #f0fdf4 0%, #e0f2fe 100%);
      min-height: 100vh;
      margin: 0;
      padding: 0;
    }
    
    .hero-section {
      background: radial-gradient(circle at top right, rgba(6, 78, 59, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    }
    
    .card-gradient {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(5, 150, 105, 0.2);
    }
    
    .logo-shadow {
      filter: drop-shadow(0 4px 6px rgba(5, 150, 105, 0.2));
    }
    
    .status-pulse {
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.2); }
      70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
      100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
    }
    
    .input-shadow:focus {
      box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
    }
    
    .section-divider {
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.5), transparent);
    }
    
    .table-container {
      max-height: 500px;
      overflow-y: auto;
      border-radius: 0.5rem;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
    
    .table-header {
      position: sticky;
      top: 0;
      z-index: 10;
      background: rgba(5, 150, 105, 0.1);
      backdrop-filter: blur(10px);
    }
    
    .table-row {
      transition: all 0.2s ease;
    }
    
    .table-row:hover {
      background-color: rgba(5, 150, 105, 0.05);
    }
    
    .table-row.odf-group-end {
      border-bottom: 2px solid rgba(5, 150, 105, 0.2);
    }
    
    .sort-btn {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      transition: color 0.2s ease;
    }
    
    .sort-btn:hover {
      color: #059669;
    }
    
    .sort-btn.active {
      color: #059669;
      font-weight: 600;
    }
    
    .odf-group {
      background: rgba(5, 150, 105, 0.02);
    }
    
    .table-footer {
      background: rgba(5, 150, 105, 0.1);
      backdrop-filter: blur(10px);
      border-top: 1px solid rgba(5, 150, 105, 0.2);
    }

    th.sort-btn {
      display: table-cell !important;
    }
    
    /* Improved grid layout for form sections */
    .controls-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      grid-template-areas: 
        "workshop-info qr-scanner";
    }
    
    .form-grid {
      display: grid;
      grid-template-rows: auto auto auto auto;
      gap: 1.5rem;
      height: 100%;
    }
    
    .scanner-grid {
      display: grid;
      grid-template-rows: auto auto;
      gap: 1.5rem;
      height: 100%;
    }
    
    .workshop-info-section {
      grid-area: workshop-info;
    }
    
    .qr-scanner-section {
      grid-area: qr-scanner;
    }
    
    .section-card {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 1rem;
      padding: 1.5rem;
      border: 1px solid rgba(5, 150, 105, 0.1);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .section-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
      padding-bottom: 0.75rem;
      border-bottom: 1px solid rgba(5, 150, 105, 0.1);
    }
    
    .section-icon {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 50%;
      background: rgba(5, 150, 105, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .field-group {
      display: flex;
      flex-direction: column;
      overflow: visible;
    }
    
    .field-label {
      display: flex;
      align-items: center;
      margin-bottom: 0.5rem;
      font-weight: 500;
      color: #374151;
      overflow: visible;
      font-size: 0.875rem;
    }
    
    .field-label i {
      margin-right: 0.5rem;
      color: #059669;
      width: 1rem;
      text-align: center;
    }
    
    .field-input {
      width: 100%;
      padding: 0.75rem;
      border: 1px solid #d1d5db;
      border-radius: 0.5rem;
      font-size: 0.875rem;
      transition: all 0.2s ease;
    }
    
    .field-input:focus {
      outline: none;
      border-color: #059669;
      box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    }
    
    .field-hint {
      margin-top: 0.25rem;
      font-size: 0.75rem;
      color: #6b7280;
      display: flex;
      align-items: center;
    }
    
    .field-hint i {
      margin-right: 0.25rem;
    }
    
    /* Special styling for QR input */
    .qr-input {
      font-family: 'Courier New', monospace;
      font-size: 1rem;
      font-weight: 500;
      background: #f8fafc;
      border: 2px solid #e2e8f0;
    }
    
    .qr-input:focus {
      background: white;
      border-color: #059669;
      box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
    }
    
    /* Time Input Styles */
    .time-input-container {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }
    
    .time-input-group {
      display: flex;
      align-items: center;
      background: rgba(255, 255, 255, 0.8);
      border: 2px solid rgba(5, 150, 105, 0.2);
      border-radius: 0.5rem;
      padding: 0.5rem;
      transition: all 0.2s ease;
    }
    
    .time-input-group:focus-within {
      border-color: #059669;
      box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
      background: rgba(255, 255, 255, 0.95);
    }
    
    .time-input {
      border: none;
      background: transparent;
      font-size: 1rem;
      font-weight: 600;
      color: #374151;
      width: 3rem;
      text-align: center;
      outline: none;
    }
    
    .time-input::-webkit-outer-spin-button,
    .time-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    
    .time-input[type=number] {
      -moz-appearance: textfield;
    }
    
    .time-unit {
      font-size: 0.875rem;
      font-weight: 500;
      color: #6b7280;
      margin-left: 0.25rem;
    }
    
    @media (max-width: 1024px) {
      .controls-grid {
        grid-template-columns: 1fr;
        grid-template-areas: 
          "workshop-info"
          "qr-scanner";
      }
    }
    
    @media (max-width: 768px) {
      .hero-title {
        font-size: 2.5rem !important;
      }
      
      .table-container {
        max-height: 400px;
      }
      
      .controls-grid {
        gap: 1.5rem;
      }
      
      .section-card {
        padding: 1rem;
      }
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .animate-fadeIn {
      animation: fadeIn 0.3s ease-out;
    }
    
    /* Smooth scrolling for QR grid */
    .qr-grid {
      scrollbar-width: thin;
      scrollbar-color: #059669 #f0f0f0;
    }
    
    .qr-grid::-webkit-scrollbar {
      width: 6px;
    }
    
    .qr-grid::-webkit-scrollbar-track {
      background: #f0f0f0;
      border-radius: 3px;
    }
    
    .qr-grid::-webkit-scrollbar-thumb {
      background: #059669;
      border-radius: 3px;
    }
    
    .qr-grid::-webkit-scrollbar-thumb:hover {
      background: #047857;
    }
    
    /* Custom Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(4px);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .modal-overlay.show {
      opacity: 1;
      visibility: visible;
    }
    
    .modal-content {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(5, 150, 105, 0.2);
      border-radius: 1rem;
      padding: 2rem;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      transform: scale(0.95) translateY(-10px);
      transition: all 0.3s ease;
    }
    
    .modal-overlay.show .modal-content {
      transform: scale(1) translateY(0);
    }
    
    .modal-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin-bottom: 1.5rem;
    }
    
    .modal-icon {
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      background: rgba(239, 68, 68, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .modal-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: #374151;
      margin: 0;
    }
    
    .modal-message {
      color: #6b7280;
      margin-bottom: 2rem;
      line-height: 1.5;
    }
    
    .modal-actions {
      display: flex;
      gap: 0.75rem;
      justify-content: flex-end;
    }
    
    .modal-btn {
      padding: 0.75rem 1.5rem;
      border-radius: 0.5rem;
      font-weight: 500;
      font-size: 0.875rem;
      border: none;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .modal-btn-cancel {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #d1d5db;
    }
    
    .modal-btn-cancel:hover {
      background: #e5e7eb;
      border-color: #9ca3af;
    }
    
    .modal-btn-confirm {
      background: #ef4444;
      color: white;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    
    .modal-btn-confirm:hover {
      background: #dc2626;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      transform: translateY(-1px);
    }
    
    /* Recovery Modal Specific Styles */
    .recovery-details {
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      padding: 1rem;
      margin: 1rem 0;
      list-style: none;
    }
    
    .recovery-details li {
      margin-bottom: 0.5rem;
      color: #374151;
      font-size: 0.875rem;
    }
    
    .recovery-details li:last-child {
      margin-bottom: 0;
    }
    
    .modal-btn-secondary {
      background: #3b82f6;
      color: white;
      box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    
    .modal-btn-secondary:hover {
      background: #2563eb;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      transform: translateY(-1px);
    }
    
    /* Modern Technician-Friendly Navbar */
    .modern-sidebar {
      position: fixed;
      top: 50%;
      left: 20px;
      transform: translateY(-50%);
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(30px);
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 
                  0 2px 8px rgba(0, 0, 0, 0.04),
                  inset 0 1px 0 rgba(255, 255, 255, 0.5);
      border: 1px solid rgba(255, 255, 255, 0.4);
      z-index: 1000;
      width: auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .modern-sidebar:hover {
      transform: translateY(-50%) scale(1.02);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
                  0 4px 12px rgba(0, 0, 0, 0.06),
                  inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    
    .nav-button {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
      font-family: 'Montserrat', sans-serif;
    }
    
    .nav-button:hover {
      /* transform: translateX(4px); - removed */
    }
    
    .nav-icon-container {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      flex-shrink: 0;
    }
    
    .nav-icon-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: left 0.5s;
    }
    
    .nav-button:hover .nav-icon-container::before {
      left: 100%;
    }
    
    .nav-icon {
      font-size: 20px;
      color: white;
      z-index: 2;
      position: relative;
    }
    
    .nav-label {
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      color: #374151;
      transition: color 0.3s ease;
    }
    
    /* Generator Button */
    .nav-button.generator .nav-icon-container {
      background: linear-gradient(135deg, #8B5CF6, #A855F7);
      box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    }
    
    .nav-button.generator:hover .nav-icon-container {
      /* background: linear-gradient(135deg, #7C3AED, #9333EA); - removed */
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
    }
    
    .nav-button.generator:hover .nav-label {
      color: #7C3AED;
    }
    
    /* Scanner Button */
    .nav-button.scanner .nav-icon-container {
      background: linear-gradient(135deg, #10B981, #059669);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }
    
    .nav-button.scanner:hover .nav-icon-container {
      /* background: linear-gradient(135deg, #047857, #065F46); - removed */
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }
    
    .nav-button.scanner:hover .nav-label {
      color: #047857;
    }
    
    /* Analytics Button */
    .nav-button.analytics .nav-icon-container {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }
    
    .nav-button.analytics:hover .nav-icon-container {
      /* background: linear-gradient(135deg, #d97706, #b45309); - removed */
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }
    
    .nav-button.analytics:hover .nav-label {
      color: #d97706;
    }
    
    /* Active State */
    .nav-button.active .nav-icon-container {
      transform: scale(1.05);
    }
    
    .nav-button.active.generator .nav-icon-container {
      background: linear-gradient(135deg, #7C3AED, #6D28D9) !important;
      box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
    }
    
    .nav-button.active.scanner .nav-icon-container {
      background: linear-gradient(135deg, #059669, #047857) !important;
      box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
    }
    
    .nav-button.active.analytics .nav-icon-container {
      background: linear-gradient(135deg, #d97706, #b45309) !important;
      box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4) !important;
    }
    
    .nav-button.active .nav-label {
      font-weight: 700;
    }
    
    .nav-button.active.generator .nav-label {
      color: #7C3AED !important;
    }
    
    .nav-button.active.scanner .nav-label {
      color: #059669 !important;
    }
    
    .nav-button.active.analytics .nav-label {
      color: #d97706 !important;
    }
    
    /* Navigation Separator */
    .nav-separator {
      width: 32px;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(156, 163, 175, 0.4), transparent);
      margin: 4px auto;
      align-self: center;
    }
    
    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .modern-sidebar {
        top: 20px;
        bottom: auto;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        width: auto;
        padding: 12px;
        gap: 16px;
      }
      
      .modern-sidebar:hover {
        transform: translateX(-50%) scale(1.02);
      }
      
      .nav-button {
        flex-direction: column;
        gap: 8px;
        text-align: center;
      }
      
      .nav-button:hover {
        transform: translateY(-2px);
      }
      
      .nav-icon-container {
        width: 40px;
        height: 40px;
      }
      
      .nav-icon {
        font-size: 18px;
      }
      
      .nav-label {
        font-size: 12px;
      }
      
      .nav-separator {
        width: 24px;
        height: 1px;
        margin: 8px auto;
      }
    }
    
    /* Main content adjustment */
    .main-content {
      padding-left: 0;
      width: 100%;
    }
    
    /* Simple QR Help Button */
    /* Removed tooltip styles - no longer needed */
    
    .animate-fadeInOut {
      animation: fadeInOut 2.5s ease-out forwards;
    }
    
    /* Effectiveness Modal Styles */
    .effectiveness-modal-content {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(5, 150, 105, 0.2);
      border-radius: 1.5rem;
      padding: 2rem;
      max-width: 400px;
      width: 90%;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
      transform: scale(0.95) translateY(-10px);
      transition: all 0.3s ease;
      position: relative;
      z-index: 1001;
    }
    
    .modal-overlay.show .effectiveness-modal-content {
      transform: scale(1) translateY(0);
    }
    
    .effectiveness-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background: rgba(107, 114, 128, 0.1);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #6b7280;
      transition: all 0.2s ease;
      z-index: 10;
    }
    
    .effectiveness-close:hover {
      background: rgba(239, 68, 68, 0.1);
      color: #ef4444;
    }
    
    .effectiveness-body {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 1.5rem;
    }
    
    .date-info {
      font-size: 1.125rem;
      font-weight: 700;
      color: #374151;
      text-align: center;
      letter-spacing: 0.025em;
      margin-bottom: 0.5rem;
    }
    
    .effectiveness-circle-container {
      display: flex;
      justify-content: center;
    }
    
    .effectiveness-circle {
      position: relative;
      display: inline-block;
    }
    
    .progress-ring {
      transform: rotate(-90deg);
    }
    
    .progress-ring-background {
      fill: none;
      stroke: rgba(5, 150, 105, 0.1);
      stroke-width: 8;
    }
    
    .progress-ring-progress {
      fill: none;
      stroke: #059669;
      stroke-width: 8;
      stroke-linecap: round;
      stroke-dasharray: 377;
      stroke-dashoffset: 377;
      transition: stroke-dashoffset 0.8s ease-in-out, stroke 0.3s ease;
    }
    
    .progress-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
    }
    
    .progress-percentage {
      font-size: 1.75rem;
      font-weight: 700;
      color: #059669;
      line-height: 1;
    }
    
    .progress-label {
      font-size: 0.875rem;
      color: #6b7280;
      margin-top: 0.25rem;
    }
    
    .effectiveness-stats {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
      width: 100%;
    }
    
    .stat-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 0.75rem;
      border: 1px solid rgba(5, 150, 105, 0.1);
    }
    
    .stat-icon {
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.8);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      font-size: 0.875rem;
    }
    
    .stat-content {
      flex: 1;
    }
    
    .stat-label {
      font-size: 0.75rem;
      color: #6b7280;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    
    .stat-value {
      font-size: 1rem;
      font-weight: 600;
      color: #374151;
      margin-top: 0.25rem;
    }
    
    .effectiveness-feedback {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem;
      background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
      border-radius: 0.75rem;
      border: 1px solid rgba(5, 150, 105, 0.2);
      width: 100%;
    }
    
    .feedback-icon {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 50%;
      background: rgba(5, 150, 105, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 1rem;
      color: #059669;
    }
    
    .feedback-content {
      flex: 1;
    }
    
    .feedback-title {
      font-size: 1rem;
      font-weight: 600;
      color: #374151;
      margin-bottom: 0.25rem;
    }
    
    .feedback-message {
      font-size: 0.75rem;
      color: #6b7280;
      line-height: 1.4;
    }
    
    @media (max-width: 640px) {
      .effectiveness-modal-content {
        max-width: 95%;
        margin: 1rem;
        padding: 1.5rem;
      }
      
      .progress-percentage {
        font-size: 1.5rem;
      }
      
      .stat-value {
        font-size: 0.875rem;
      }
      
      .feedback-title {
        font-size: 0.875rem;
      }
    }
    
    @keyframes fadeInOut {
      0% { opacity: 0; bottom: 0; }
      10% { opacity: 1; bottom: 6; }
      90% { opacity: 1; bottom: 6; }
      100% { opacity: 0; bottom: 0; visibility: hidden; }
    }

    /* Performance optimizations for scanning mode */
    .scanning-mode * {
      transition: none !important;
      animation: none !important;
    }

    .scanning-mode .animate-fadeIn {
      animation: none !important;
    }

    .scanning-mode .animate-fadeInOut {
      animation: none !important;
    }

    /* Disable notifications during scanning */
    .scanning-mode .notification {
      display: none !important;
    }

    /* Instant table updates during scanning */
    .scanning-mode .table-row {
      transition: none !important;
    }

    .scanning-mode .btn {
      transition: none !important;
    }