   :root {
      --primary: #6366f1;
      --primary-dark: #4f46e5;
      --primary-light: #818cf8;
      --secondary: #f59e0b;
      --bg: #0f172a;
      --card: #1e293b;
      --card-light: #334155;
      --text: #f1f5f9;
      --text-muted: #94a3b8;
      --border: #334155;
      --success: #10b981;
      --error: #ef4444;
      --sidebar-width: 280px;
      --navbar-height: 70px;
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }
    
    /* Navbar Styles */
    .navbar {
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(10px);
      height: var(--navbar-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2rem;
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-weight: 700;
      font-size: 1.5rem;
      color: var(--text);
    }
    
    .logo-icon {
      color: var(--primary);
    }
    
    .nav-links {
      display: flex;
      gap: 2rem;
    }
    
    .nav-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-weight: 500;
      transition: color 0.3s;
    }
    
    .nav-links a:hover, .nav-links a.active {
      color: var(--primary);
    }
    
    .nav-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
    }
    
    .btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }
    
    .btn-outline {
      background: transparent;
      border: 1px solid var(--border);
    }
    
    .btn-outline:hover {
      background: rgba(255, 255, 255, 0.05);
    }
    
    /* Main Content */
    .main-container {
      display: flex;
      flex: 1;
    }
    
    /* Sidebar */
    .sidebar {
      width: var(--sidebar-width);
      background: var(--card);
      padding: 1.5rem;
      border-right: 1px solid var(--border);
      overflow-y: auto;
      height: calc(100vh - var(--navbar-height));
      position: sticky;
      top: var(--navbar-height);
    }
    
    .sidebar-section {
      margin-bottom: 2rem;
    }
    
    .sidebar-title {
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    
    .sidebar-menu {
      list-style: none;
    }
    
    .sidebar-menu li {
      margin-bottom: 0.5rem;
    }
    
    .sidebar-menu a {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem;
      color: var(--text-muted);
      text-decoration: none;
      border-radius: 8px;
      transition: all 0.3s;
    }
    
    .sidebar-menu a:hover, .sidebar-menu a.active {
      background: rgba(99, 102, 241, 0.1);
      color: var(--primary);
    }
    
    .sidebar-menu i {
      width: 20px;
      text-align: center;
    }
    
    .stats-card {
      background: var(--card-light);
      border-radius: 12px;
      padding: 1rem;
      margin-bottom: 1rem;
    }
    
    .stats-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary);
    }
    
    .stats-label {
      font-size: 0.875rem;
      color: var(--text-muted);
    }
    
    /* Content Area */
    .content {
      flex: 1;
      padding: 2rem;
      overflow-y: auto;
    }
    
    .content-header {
      margin-bottom: 2rem;
    }
    
    .content-title {
      font-size: 2rem;
      margin-bottom: 0.5rem;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    
    .content-subtitle {
      color: var(--text-muted);
      font-size: 1.1rem;
    }
    
    /* OCR Card */
    .ocr-card {
      background: var(--card);
      border-radius: 16px;
      padding: 2rem;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
      margin-bottom: 2rem;
    }
    
    .card-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
    }
    
    @media (max-width: 1024px) {
      .card-grid {
        grid-template-columns: 1fr;
      }
    }
    
    .upload-area {
      border: 2px dashed var(--border);
      border-radius: 12px;
      padding: 2rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      min-height: 300px;
      transition: all 0.3s ease;
      cursor: pointer;
      background: rgba(255, 255, 255, 0.02);
    }
    
    .upload-area:hover, .upload-area.dragover {
      border-color: var(--primary);
      background: rgba(99, 102, 241, 0.05);
    }
    
    .upload-icon {
      font-size: 3rem;
      margin-bottom: 1rem;
      color: var(--primary-light);
    }
    
    .upload-text {
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    
    .preview-container {
      position: relative;
      width: 100%;
      display: none;
    }
    
    #preview {
      max-width: 100%;
      max-height: 260px;
      border-radius: 8px;
      object-fit: contain;
    }
    
    .controls {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
      flex-wrap: wrap;
    }
    
    .language-selector {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 1rem;
    }
    
    select {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--text);
      padding: 0.5rem;
      font-size: 0.875rem;
    }
    
    /* Progress Bar */
    .progress-container {
      margin-top: 1.5rem;
    }
    
    .progress-bar {
      height: 8px;
      background: rgba(255,255,255,0.04);
      border-radius: 999px;
      overflow: hidden;
      margin-bottom: 0.5rem;
    }
    
    .progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      transition: width 0.3s ease;
    }
    
    .progress-text {
      display: flex;
      justify-content: space-between;
      font-size: 0.875rem;
      color: var(--text-muted);
    }
    
    .confidence {
      color: var(--success);
      font-weight: 600;
    }
    
    /* Result Area */
    .result-area {
      display: flex;
      flex-direction: column;
      height: 100%;
    }
    
    .result-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
    }
    
    .result-container {
      background: var(--card-light);
      border-radius: 12px;
      padding: 1.5rem;
      flex-grow: 1;
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
      white-space: pre-wrap;
      color: #d6e7ff;
      overflow-y: auto;
      min-height: 300px;
      max-height: 400px;
    }
    
    .result-placeholder {
      color: var(--text-muted);
      font-style: italic;
    }
    
    /* Features Section */
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }
    
    .feature-card {
      background: var(--card);
      border-radius: 12px;
      padding: 1.5rem;
      transition: transform 0.3s;
    }
    
    .feature-card:hover {
      transform: translateY(-5px);
    }
    
    .feature-icon {
      font-size: 2rem;
      color: var(--primary);
      margin-bottom: 1rem;
    }
    
    .feature-title {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
    }
    
    .feature-desc {
      color: var(--text-muted);
      font-size: 0.95rem;
    }
    
    /* Products Section */
    .products-section {
      margin-top: 3rem;
    }
    
    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 2rem;
      margin-top: 1.5rem;
    }
    
    .product-card {
      background: var(--card);
      border-radius: 16px;
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .product-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    }
    
    .product-image {
      height: 200px;
      background-size: cover;
      background-position: center;
      position: relative;
    }
    
    .product-badge {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: var(--secondary);
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
    }
    
    .product-content {
      padding: 1.5rem;
    }
    
    .product-title {
      font-size: 1.3rem;
      margin-bottom: 0.75rem;
      color: var(--text);
    }
    
    .product-description {
      color: var(--text-muted);
      margin-bottom: 1.5rem;
      font-size: 0.95rem;
    }
    
    .product-features {
      list-style: none;
      margin-bottom: 1.5rem;
    }
    
    .product-features li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.5rem;
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    
    .product-features i {
      color: var(--success);
    }
    
    .product-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 1rem;
    }
    
    .product-price {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary);
    }
    
    .product-cta {
      background: var(--primary);
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.3s;
      text-decoration: none;
      display: inline-block;
    }
    
    .product-cta:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }
    
    /* Footer */
    .footer {
      background: var(--card);
      border-top: 1px solid var(--border);
      padding: 2rem;
      margin-top: auto;
    }
    
    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1200px;
      margin: 0 auto;
    }
    
    .footer-links {
      display: flex;
      gap: 2rem;
    }
    
    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      transition: color 0.3s;
    }
    
    .footer-links a:hover {
      color: var(--primary);
    }
    
    .copyright {
      color: var(--text-muted);
      font-size: 0.875rem;
    }
    
    /* Notification */
    .notification {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: var(--success);
      color: white;
      padding: 1rem 1.5rem;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      transform: translateY(100px);
      opacity: 0;
      transition: all 0.3s ease;
      z-index: 1000;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .notification.show {
      transform: translateY(0);
      opacity: 1;
    }
    
    .notification.error {
      background: var(--error);
    }
    
    /* Responsive */
    @media (max-width: 768px) {
      .navbar {
        padding: 0 1rem;
      }
      
      .nav-links {
        display: none;
      }
      
      .sidebar {
        display: none;
      }
      
      .content {
        padding: 1rem;
      }
      
      .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
      }
      
      .products-grid {
        grid-template-columns: 1fr;
      }
    }