        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #fafaf9;
            min-height: 100vh;
            padding: 20px;
            padding-top: 80px; /* Space for fixed navbar */
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        /* Navbar Styles */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: #fafaf9;
            box-shadow: 0 2px 10px rgba(0,0,0,0.08);
            z-index: 1000;
            height: 60px;
        }
        .navbar-container {
            max-width: 1200px;
            margin: 0 auto;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
        }
        .navbar-brand {
            color: #667eea;
            text-decoration: none;
            font-size: 1.25rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .navbar-brand:hover {
            color: #4f46e5;
        }
        .navbar-nav {
            display: flex;
            align-items: center;
            gap: 30px;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .nav-item {
            position: relative;
        }
        .nav-link {
            color: #667eea;
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 6px;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .nav-link:hover {
            color: white;
            background: #667eea;
        }
        .nav-link.active {
            color: white;
            background: #667eea;
        }
        /* Dropdown styles */
        .dropdown {
            position: relative;
        }
        .dropdown-toggle::after {
            content: '▼';
            font-size: 0.7rem;
            margin-left: 4px;
        }
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: #fafaf9;
            border-radius: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            margin-top: 8px;
            border: 1px solid rgba(102, 126, 234, 0.1);
            z-index: 1001;
        }
        .dropdown:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .dropdown-item {
            display: block;
            color: #667eea;
            text-decoration: none;
            padding: 12px 16px;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }
        .dropdown-item:hover {
            color: white;
            background: #667eea;
        }
        .dropdown-item:first-child {
            border-radius: 8px 8px 0 0;
        }
        .dropdown-item:last-child {
            border-radius: 0 0 8px 8px;
        }
        /* Legal links section */
        .navbar-legal {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-left: auto;
        }
        .navbar-legal a {
            color: #9ca3af;
            text-decoration: none;
            font-size: 0.85rem;
            transition: all 0.3s ease;
        }
        .navbar-legal a:hover {
            color: #6b7280;
        }
        /* Mobile menu button */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: #667eea;
            font-size: 1.5rem;
            cursor: pointer;
        }
        /* Mobile menu */
        .mobile-menu {
            display: none;
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            background: #fafaf9;
            max-height: calc(100vh - 60px);
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            border-top: 1px solid rgba(102, 126, 234, 0.1);
            z-index: 9999;
        }
        .mobile-menu.open {
            display: block;
        }
        .mobile-nav {
            padding: 20px;
        }
        .mobile-nav-item {
            margin-bottom: 10px;
        }
        .mobile-nav-link {
            display: block;
            color: #667eea;
            text-decoration: none;
            padding: 12px 0;
            font-size: 1rem;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        }
        .mobile-nav-link:hover {
            color: #4f46e5;
        }
        .mobile-nav-link.active {
            color: #4f46e5;
            font-weight: 600;
        }
        .mobile-dropdown-toggle {
            width: 100%;
            background: none;
            border: none;
            color: #667eea;
            text-align: left;
            padding: 12px 0;
            font-size: 1rem;
            cursor: pointer;
            border-bottom: 1px solid rgba(102, 126, 234, 0.1);
        }
        .mobile-dropdown-menu {
            display: none;
            padding-left: 20px;
        }
        .mobile-dropdown-menu.open {
            display: block;
        }
        .mobile-legal {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(102, 126, 234, 0.1);
        }
        /* Header styles */
        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 40px;
            text-align: center;
            position: relative;
        }
        .header h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }
        .header p {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        /* Main content styles */
        .main-content {
            display: grid;
            grid-template-columns: 300px 1fr 300px;
            gap: 0;
            min-height: 600px;
            position: relative;
        }
        .sidebar {
            background: #f8fafc;
            padding: 20px;
            border-right: 1px solid #e2e8f0;
        }
        .sidebar:last-child {
            border-right: none;
            border-left: 1px solid #e2e8f0;
        }
        .content-area {
            padding: 40px;
            background: white;
        }
        /* Responsive styles */
        @media (max-width: 1024px) {
            .navbar-nav {
                gap: 20px;
            }
            .nav-link {
                font-size: 0.9rem;
                padding: 6px 10px;
            }
            .main-content {
                grid-template-columns: 1fr;
            }
            .sidebar {
                display: none;
            }
        }
        @media (max-width: 768px) {
            .navbar-nav,
            .navbar-legal {
                display: none;
            }
            .mobile-menu-btn {
                display: block;
            }
            .navbar-brand {
                font-size: 1.1rem;
            }
            body {
                padding: 10px;
                padding-top: 70px;
            }
            .container {
                border-radius: 10px;
            }
            .header {
                padding: 20px 15px;
            }
            .header h1 {
                font-size: 1.5rem;
                line-height: 1.3;
            }
            .header p {
                font-size: 0.9rem;
            }
            .content-area {
                padding: 20px 15px;
            }
        }
        @media (max-width: 480px) {
            .header h1 {
                font-size: 1.25rem;
            }
            .header p {
                font-size: 0.8rem;
            }
        }
        /* AdSense container styles */
        .ad-container {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 10px;
            margin: 20px 0;
            text-align: center;
        }
        .ad-label {
            font-size: 0.75rem;
            color: #6c757d;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        /* OCR Tool Specific Styles */
        .drop-zone {
            border: 2px dashed #667eea;
            border-radius: 12px;
            padding: 40px;
            text-align: center;
            background: #f8fafc;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        .drop-zone:hover {
            border-color: #764ba2;
            background: #f3f4f6;
        }
        .drop-zone.drag-over {
            border-color: #764ba2;
            background: #e9eeff;
        }
        .drop-zone-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 20px;
            color: #667eea;
        }
        .drop-zone-text {
            font-size: 1.1rem;
            color: #1a202c;
            margin-bottom: 8px;
        }
        .drop-zone-hint {
            font-size: 0.9rem;
            color: #718096;
        }
        .language-selector {
            margin-top: 30px;
        }
        .language-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 10px;
            margin-top: 15px;
        }
        .language-chip {
            padding: 8px 16px;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            background: #f8fafc;
            color: #4a5568;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: center;
        }
        .language-chip:hover {
            border-color: #667eea;
            color: #667eea;
        }
        .language-chip.selected {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }
        .file-preview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }
        .toolbar {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            justify-content: center;
        }
        .btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .btn-primary {
            background: #667eea;
            color: white;
        }
        .btn-primary:hover {
            background: #5a64d8;
        }
        .btn-secondary {
            background: #e2e8f0;
            color: #4a5568;
        }
        .btn-secondary:hover {
            background: #cbd5e0;
        }
        .ocr-results {
            margin-top: 40px;
        }
        .result-stats {
            display: flex;
            gap: 30px;
            margin: 20px 0;
            padding: 20px;
            background: #f8fafc;
            border-radius: 12px;
            justify-content: center;
        }
        .stat-item {
            text-align: center;
        }
        .stat-value {
            font-size: 1.5rem;
            font-weight: 600;
            color: #667eea;
        }
        .stat-label {
            font-size: 0.875rem;
            color: #718096;
        }
        .export-panel {
            margin-top: 30px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 12px;
        }
        .export-format-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-top: 15px;
        }
        .export-format-option {
            padding: 15px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            background: white;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .export-format-option:hover {
            border-color: #667eea;
        }
        .export-format-option.selected {
            border-color: #667eea;
            background: #f3f4ff;
        }
        .export-format-icon {
            font-size: 1.5rem;
            margin-bottom: 5px;
        }
        .export-format-name {
            font-size: 0.875rem;
            color: #4a5568;
        }
        .btn-success {
            background: #48bb78;
            color: white;
        }
        .btn-success:hover {
            background: #38a169;
        }
        @media (max-width: 768px) {
            .export-format-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
