 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
            color: #333;
            min-height: 100vh;
            scrollbar-width: none;
        }

        Hide scrollbar for Chrome, Safari and Opera
        body::-webkit-scrollbar {
            display: none;
        }

        .container {
            width: 100%;
            max-width: 1440px;
            margin: 0 auto;
        }

        /* Header */
        .header {
            position: sticky;
            top: 0;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            z-index: 100;
            padding: 15px 20px;
            border-bottom: 1px solid #e5e5e5;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
        }

        .logo img{
            width: 120px;
            height: auto;
            margin-top: 10px;
        }

        .logo-mark {
            color: #ff7a45;
            font-weight: 700;
        }

        .controls {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        button {
            background: #ff7a45;
            color: white;
            border: none;
            padding: 8px 14px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        button:hover {
            background: #ff6a2f;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(255, 122, 69, 0.3);
        }

        button:active {
            transform: translateY(0);
        }

        button:disabled {
            background: #ccc;
            cursor: not-allowed;
            opacity: 0.6;
        }

        /* Main Content */
        .viewer {
            display: flex;
            overflow-x: hidden;
            position: relative;
            height: 100vh;
        }

        .pages-container {
            width: 100%;
            height: 100%;
            overflow-y: auto;
            scroll-behavior: smooth;
            position: relative;
            scrollbar-width: none;
        }

        /* Hide scrollbar for Chrome, Safari and Opera */
        .pages-container::-webkit-scrollbar {
            display: none;
        }

        .page-wrapper {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            background: white;
            position: relative;
            flex-shrink: 0;
            page-break-after: always;
        }

        .page-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: white;
            display: block;
        }

        .text-layer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            pointer-events: none;
            white-space: pre-wrap;
            word-wrap: break-word;
            padding: 20px;
            font-size: 12px;
            line-height: 1.6;
            overflow: hidden;
        }

        /* Thumbnail Panel */
        .thumbnail-panel {
            width: 120px;
            background: #f9f9f9;
            border-left: 1px solid #e5e5e5;
            overflow-y: auto;
            overflow-x: hidden;
            display: none;
            position: sticky;
            right: 0;
            height: 100vh;
            scrollbar-width: none;
        }

        /* Hide scrollbar for Chrome, Safari and Opera */
        .thumbnail-panel::-webkit-scrollbar {
            display: none;
        }

        .thumbnail-panel.visible {
            display: block;
        }

        .thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all 0.2s;
            opacity: 0.7;
        }

        .thumbnail:hover {
            opacity: 1;
        }

        .thumbnail.active {
            border-color: #ff7a45;
            opacity: 1;
            box-shadow: 0 0 0 2px rgba(255, 122, 69, 0.3);
        }

        /* Footer - Hidden */

        /* Responsive */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 10px;
            }

            .logo {
                font-size: 16px;
            }

            .controls {
                width: 100%;
                justify-content: center;
            }

            button {
                padding: 8px 12px;
                font-size: 12px;
            }

            .thumbnail-panel {
                display: none !important;
            }
        }

        /* Print Styles */
        @media print {
            .header, .footer, .controls, .thumbnail-panel {
                display: none;
            }

            .page-wrapper {
                page-break-after: always;
                break-after: page;
            }
        }

        /* Loading animation */
        .loading {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ff7a45;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }