@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);
    }

    /* Inline editing styles for unit time */
    .editable-unit-time {
      min-height: 1.25rem;
      border-radius: 0.25rem;
      transition: all 0.15s ease;
      cursor: pointer;
      border: 2px solid transparent;
      padding: 0.125rem 0.25rem;
      display: inline-block;
      min-width: 60px;
      position: relative;
    }
    
    .editable-unit-time:hover {
      background-color: rgba(16, 185, 129, 0.1);
      border: 2px solid rgba(16, 185, 129, 0.2);
      cursor: text;
    }
    
    .editable-unit-time.editing {
      background-color: white;
      border: 2px solid #10B981;
      outline: none;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
      cursor: text;
    }
    
    .editable-input {
      width: 60px; /* Fixed width to prevent expansion */
      border: none;
      outline: none;
      background: transparent;
      font-family: inherit;
      font-size: inherit;
      font-weight: inherit;
      color: inherit;
      padding: 0;
      margin: 0;
      text-align: center;
    }
    
    /* Remove spinner arrows from number input */
    .editable-input::-webkit-outer-spin-button,
    .editable-input::-webkit-inner-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }
    
    .editable-input[type="number"] {
      -moz-appearance: textfield; /* Firefox */
    }
    
    /* Row editing indicator */
    .table-row.editing-unit-time {
      background: rgba(16, 185, 129, 0.05) !important;
    }
    
    /* Tooltip for editable fields */
    .editable-unit-time::after {
      content: "Cliquez pour modifier";
      position: absolute;
      bottom: -25px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(0, 0, 0, 0.8);
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
      white-space: nowrap;
      opacity: 0;
      transition: opacity 0.2s;
      pointer-events: none;
      z-index: 1000;
    }
    
    .editable-unit-time:hover::after {
      opacity: 1;
    }
    
    .editable-unit-time.editing::after {
      display: none;
    }

    /* Table totals row styling */
    .table-totals-row {
      background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
      border-top: 2px solid #10b981;
      font-weight: 600;
    }
    
    .table-totals-row td {
      padding: 0.75rem 0.5rem;
      vertical-align: middle;
      border-bottom: none;
    }
    
    .table-totals-row td:first-child {
      padding-left: 1rem;
      color: #374151;
      font-size: 0.875rem;
      font-weight: 700;
      letter-spacing: 0.05em;
    }
    
    .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;
    }

    /* ============================
       CASCADING NOTIFICATION ANIMATIONS
       ============================ */

    @keyframes slideInRight {
      0% {
        opacity: 0;
        transform: translateX(100%) translateY(0);
      }
      100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
      }
    }

    @keyframes slideOutRight {
      0% {
        opacity: 1;
        transform: translateX(0) translateY(0);
      }
      100% {
        opacity: 0;
        transform: translateX(100%) translateY(-20px);
      }
    }

    .animate-slideInRight {
      animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .animate-slideOutRight {
      animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Notification container spacing */
    #notification-container {
      max-width: 350px;
      min-width: 280px;
    }

    @media (max-width: 640px) {
      #notification-container {
        left: 12px;
        right: 12px;
        max-width: none;
        min-width: auto;
      }
    }

    /* Smooth transitions for cascading effect */
    .notification-item {
      transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      will-change: transform;
    }

    /* Enhanced styling for notification content */
    .notification-item .font-semibold {
      line-height: 1.2;
    }

    .notification-item .text-xs {
      line-height: 1.1;
    }
    
    /* 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;
    }
    
    /* Operators Button */
    .nav-button.operators .nav-icon-container {
      background: linear-gradient(135deg, #3B82F6, #2563EB);
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }
    
    .nav-button.operators:hover .nav-icon-container {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
    
    .nav-button.operators:hover .nav-label {
      color: #2563EB;
    }
    
    /* 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.operators .nav-icon-container {
      background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
      box-shadow: 0 6px 20px rgba(37, 99, 235, 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;
    }
    
    .nav-button.active.operators .nav-label {
      color: #2563EB !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;
    }

    /* Admin Button */
    .nav-button.admin .nav-icon-container {
      background: linear-gradient(135deg, #6B7280, #4B5563);
      box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
    }

    .nav-button.admin:hover .nav-icon-container {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
    }

    .nav-button.admin:hover .nav-label {
      color: #4B5563;
    }

    .nav-button.active.admin .nav-icon-container {
      background: linear-gradient(135deg, #4B5563, #374151) !important;
      box-shadow: 0 6px 20px rgba(75, 85, 99, 0.4) !important;
    }

    .nav-button.active.admin .nav-label {
      color: #4B5563 !important;
    }

    /* User Section */
    .nav-user-section {
      display: flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 12px;
      padding: 8px;
      border: 1px solid rgba(5, 150, 105, 0.1);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
    }

    .nav-user-section:hover {
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      border-color: rgba(5, 150, 105, 0.2);
    }

    .nav-user-info {
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
    }

    .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #059669, #047857);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      flex-shrink: 0;
    }

    .user-details {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .user-name {
      font-size: 12px;
      font-weight: 600;
      color: #374151;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .user-role {
      font-size: 10px;
      color: #6B7280;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .nav-logout-btn {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      background: rgba(239, 68, 68, 0.1);
      border: 1px solid rgba(239, 68, 68, 0.2);
      color: #DC2626;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .nav-logout-btn:hover {
      background: rgba(239, 68, 68, 0.2);
      border-color: rgba(239, 68, 68, 0.3);
      transform: scale(1.05);
    }

    .nav-logout-btn i {
      font-size: 12px;
    }
    
    /* 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;
    }

    /* Fullscreen Table Functionality */
    .table-fullscreen {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      z-index: 1000 !important;
      margin: 0 !important;
      max-height: none !important;
      height: 100vh !important;
      width: 100vw !important;
      background: rgba(255, 255, 255, 0.98) !important;
      backdrop-filter: blur(10px) !important;
      border: 1px solid rgba(5, 150, 105, 0.2) !important;
      border-radius: 0 !important;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
      padding: 2rem !important;
      overflow: auto !important;
      display: flex !important;
      flex-direction: column !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      transform: none !important;
    }

    /* Fullscreen table container adjustments */
    .table-fullscreen .table-container {
      max-height: none !important;
      height: calc(100vh - 8rem) !important;
      overflow: auto !important;
      flex: 1 !important;
    }

    /* Fullscreen table content */
    .table-fullscreen table {
      height: auto !important;
      max-height: none !important;
    }

    /* Hide other page content when table is fullscreen */
    body.table-fullscreen-active {
      overflow: hidden;
    }

    /* Fullscreen button styles */
    #table-fullscreen-toggle {
      transition: all 0.2s ease;
      min-height: 2rem;
      font-weight: 500;
    }

    #table-fullscreen-toggle:hover {
      background-color: rgba(59, 130, 246, 0.1);
      border-color: rgba(59, 130, 246, 0.3);
      transform: scale(1.05);
      color: #1d4ed8 !important;
    }

    #table-fullscreen-toggle:hover span {
      color: #1d4ed8 !important;
    }

    #table-fullscreen-toggle:hover i {
      color: #1d4ed8 !important;
    }

    #table-fullscreen-toggle:active {
      transform: scale(0.98);
    }

    /* Icon animation */
    #fullscreen-icon {
      transition: transform 0.2s ease;
    }

    /* Mobile adjustments for fullscreen */
    @media (max-width: 768px) {
      .table-fullscreen {
        padding: 1rem !important;
      }
      
      #table-fullscreen-toggle .hidden {
        display: none !important;
      }
    }

    /* Ensure table header stays visible in fullscreen */
    .table-fullscreen .table-header {
      position: sticky !important;
      top: 0 !important;
      z-index: 11 !important;
    }

    /* Fullscreen overlay animation */
    .table-container:not(.table-fullscreen) {
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* ============================
       VERSION MAPPING STYLES
       ============================ */

    .version-mapping-notifications {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1000;
      max-width: 400px;
      animation: slideInRight 0.3s ease-out;
    }

    .version-mapping-card {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(59, 130, 246, 0.2);
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
      overflow: hidden;
    }

    .version-mapping-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
      border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    }

    .version-mapping-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      background: rgba(59, 130, 246, 0.1);
      border-radius: 8px;
    }

    .version-mapping-title {
      flex: 1;
      margin: 0 0 0 12px;
      font-weight: 600;
      font-size: 16px;
      color: #1f2937;
    }

    .version-mapping-close {
      background: none;
      border: none;
      width: 24px;
      height: 24px;
      border-radius: 4px;
      color: #6b7280;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .version-mapping-close:hover {
      background: rgba(239, 68, 68, 0.1);
      color: #dc2626;
    }

    .version-mapping-content {
      padding: 16px 20px;
      max-height: 300px;
      overflow-y: auto;
    }

    .version-mapping-item {
      padding: 12px 0;
      border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    }

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

    .version-mapping-operation {
      font-weight: 600;
      color: #1f2937;
      margin-bottom: 4px;
    }

    .version-mapping-versions {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: #6b7280;
      margin-bottom: 4px;
    }

    .version-mapping-arrow {
      color: #059669;
    }

    .version-mapping-time {
      font-size: 12px;
      color: #9ca3af;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .time-improvement {
      color: #059669;
      font-weight: 500;
    }

    .time-decrease {
      color: #dc2626;
      font-weight: 500;
    }

    @keyframes slideInRight {
      from {
        transform: translateX(100%);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* Mobile responsiveness for version mapping */
    @media (max-width: 768px) {
      .version-mapping-notifications {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
      }
    }

    /* Operation Selection Modal Styles */
    .operation-selection-modal-content {
        background: white;
        border-radius: 12px;
        max-width: 500px;
        width: 90%;
        position: relative;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        animation: scaleIn 0.2s ease-out;
    }

    .operation-selection-header {
        padding: 24px 24px 16px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
    }

    .operation-selection-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #fef3c7;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .operation-selection-title {
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
        flex: 1;
    }

    .operation-selection-close {
        position: absolute;
        top: 16px;
        right: 16px;
        background: none;
        border: none;
        color: #6b7280;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: all 0.2s;
    }

    .operation-selection-close:hover {
        background: #f3f4f6;
        color: #374151;
    }

    .operation-selection-body {
        padding: 24px;
    }

    .operation-selection-message {
        color: #4b5563;
        line-height: 1.6;
        margin-bottom: 24px;
        text-align: center;
    }

    .operation-selection-actions {
        display: flex;
        gap: 12px;
        justify-content: center;
    }

    /* Operation Table Modal Styles */
    .operation-table-modal-content {
        background: white;
        border-radius: 12px;
        width: 95%;
        max-width: 1200px;
        height: 90vh;
        max-height: 800px;
        position: relative;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        animation: scaleIn 0.2s ease-out;
        display: flex;
        flex-direction: column;
    }

    .operation-table-header {
        padding: 20px 24px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        gap: 12px;
        position: relative;
        flex-shrink: 0;
    }

    .operation-table-icon {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #dbeafe;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .operation-table-title {
        font-size: 18px;
        font-weight: 600;
        color: #1f2937;
        flex: 1;
    }

    .operation-table-close {
        position: absolute;
        top: 16px;
        right: 16px;
        background: none;
        border: none;
        color: #6b7280;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: all 0.2s;
    }

    .operation-table-close:hover {
        background: #f3f4f6;
        color: #374151;
    }

    .operation-table-body {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
    }

    .operation-table-search {
        padding: 16px 24px;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }

    .operation-search-input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s;
    }

    .operation-search-input:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }

    .operation-table-container {
        flex: 1;
        overflow-y: auto;
        padding: 16px 24px;
        min-height: 0;
    }

    .operation-table-actions {
        padding: 16px 24px;
        border-top: 1px solid #e5e7eb;
        flex-shrink: 0;
    }

    /* Leaf Operations Styling */
    .operation-leaf-group {
        margin-bottom: 32px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        overflow: hidden;
    }

    .operation-leaf-header {
        background: #f8fafc;
        padding: 16px 20px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .operation-leaf-badge {
        background: #3b82f6;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 500;
    }

    .operation-leaf-title {
        font-weight: 600;
        color: #1f2937;
        flex: 1;
    }

    .operation-leaf-count {
        color: #6b7280;
        font-size: 14px;
    }

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

    .operation-leaf-table th {
        background: #f9fafb;
        padding: 12px 16px;
        text-align: left;
        font-weight: 600;
        color: #374151;
        font-size: 14px;
        border-bottom: 1px solid #e5e7eb;
    }

    .operation-leaf-table td {
        padding: 12px 16px;
        color: #4b5563;
        font-size: 14px;
        border-bottom: 1px solid #f3f4f6;
    }

    .operation-row {
        cursor: pointer;
        transition: all 0.2s;
    }

    .operation-row:hover {
        background: #f0f9ff;
    }

    .operation-row:last-child td {
        border-bottom: none;
    }

    .operation-name {
        font-weight: 500;
        color: #1f2937;
    }

    .operation-time {
        color: #059669;
        font-weight: 500;
    }

    .operation-number {
        color: #6b7280;
        font-family: monospace;
    }

    @keyframes scaleIn {
      from {
        transform: scale(0.95);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
      .operation-table-modal-content {
        width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
      }

      .operation-selection-modal-content {
        width: 95%;
      }

      .operation-leaf-table th,
      .operation-leaf-table td {
        padding: 8px 12px;
        font-size: 12px;
      }
    }