* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', 'Segoe UI', 'Noto Sans Hindi', sans-serif;
            background: #f5f5f5;
            overflow: hidden;
            height: 100vh;
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: #c0392b;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #a93226;
        }

        /* Top Bar - Newspaper Style */
        .top-bar {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
            color: white;
            padding: 12px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            z-index: 100;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            border-bottom: 3px solid #e74c3c;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo-icon {
            font-size: 2rem;
            color: #e74c3c;
            background: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }

        .logo-text h1 {
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: 1px;
            background: linear-gradient(135deg, #fff, #ffd89b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .logo-text p {
            font-size: 0.7rem;
            opacity: 0.8;
            letter-spacing: 2px;
        }

        .action-buttons {
            display: flex;
            gap: 12px;
        }

        .action-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }

        .action-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .action-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .action-btn.pdf {
            background: #e74c3c;
            color: white;
            box-shadow: 0 4px 15px rgba(231,76,60,0.3);
        }

        .action-btn.clip {
            background: #3498db;
            color: white;
            box-shadow: 0 4px 15px rgba(52,152,219,0.3);
        }

        .action-btn.archive {
            background: #27ae60;
            color: white;
            box-shadow: 0 4px 15px rgba(39,174,96,0.3);
        }

        .action-btn:hover {
            transform: translateY(-2px);
            filter: brightness(1.05);
        }

        /* Navigation Buttons Styling */
        .nav-btn {
            position: fixed;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(231, 76, 60, 0.9);
            color: white;
            width: 55px;
            height: 55px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            z-index: 9999;
            border: 2px solid white;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            backdrop-filter: blur(5px);
        }

        .nav-btn:hover {
            background: rgba(231, 76, 60, 1);
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        .nav-btn:active {
            transform: translateY(-50%) scale(0.95);
        }

        .nav-btn.left-btn { 
            left: 200px; 
        }
        
        .nav-btn.right-btn { 
            right: 25px; 
        }

        /* Main Container */
        .main-container {
            display: flex;
            margin-top: 75px;
            height: calc(100vh - 75px);
        }

        /* Left Sidebar - Thumbnails */
        .thumbnails-sidebar {
            width: 200px;
            background: linear-gradient(180deg, #2c3e50 0%, #1a252f 100%);
            color: white;
            overflow-y: auto;
            padding: 15px;
            transition: width 0.3s ease;
            box-shadow: 4px 0 15px rgba(0,0,0,0.1);
        }

        .thumbnails-sidebar::-webkit-scrollbar {
            width: 4px;
        }

        .thumbnails-sidebar h3 {
            font-size: 1rem;
            margin-bottom: 20px;
            text-align: center;
            padding-bottom: 12px;
            border-bottom: 2px solid #e74c3c;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .thumbnail-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .thumbnail-item {
            cursor: pointer;
            text-align: center;
            transition: all 0.3s ease;
            padding: 8px;
            border-radius: 12px;
            background: rgba(255,255,255,0.05);
        }

        .thumbnail-item:hover {
            background: rgba(231,76,60,0.3);
            transform: translateX(5px);
        }

        .thumbnail-item.active {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            box-shadow: 0 4px 15px rgba(231,76,60,0.4);
        }

        .thumbnail-img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            border: 2px solid #7f8c8d;
            transition: all 0.3s ease;
        }

        .thumbnail-item.active .thumbnail-img {
            border-color: #f1c40f;
        }

        .thumbnail-page-num {
            font-size: 0.7rem;
            margin-top: 6px;
            font-weight: 600;
        }

        /* Main Viewer Area */
        .viewer-area {
            flex: 1;
            background: #e8e8e8;
            position: relative;
            overflow: auto;
            padding: 30px;
        }

        .viewer-area::-webkit-scrollbar {
            width: 8px;
        }

        .pdf-viewer {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 25px;
        }

        .page-container {
            background: white;
            box-shadow: 0 8px 30px rgba(0,0,0,0.2);
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            transition: transform 0.3s ease;
            max-width: 100%;
        }

        .page-container:hover {
            transform: scale(1.01);
            box-shadow: 0 12px 40px rgba(0,0,0,0.25);
        }

        .page-image {
            display: block;
            max-width: 100%;
            height: auto;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        /* Page Number Overlay */
        .page-number-badge {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            backdrop-filter: blur(5px);
            z-index: 10;
        }

        /* Cropper Overlay */
        .cropper-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.95);
            z-index: 10000;
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(10px);
        }

        .cropper-container {
            max-width: 90vw;
            max-height: 80vh;
            background: white;
            padding: 15px;
            border-radius: 15px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }

        .cropper-image {
            max-width: 100%;
            max-height: 70vh;
        }

        .cropper-controls {
            margin-top: 25px;
            display: flex;
            gap: 20px;
        }

        .cropper-controls button {
            padding: 12px 28px;
            border: none;
            border-radius: 50px;
            cursor: pointer;
            font-weight: 600;
            font-size: 1rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-share {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            color: white;
        }

        .btn-share:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(39,174,96,0.4);
        }

        .btn-cancel {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
        }

        .btn-cancel:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(231,76,60,0.4);
        }

        /* Archive Panel */
        .archive-panel {
            position: fixed;
            top: 75px;
            right: -400px;
            width: 380px;
            height: calc(100vh - 75px);
            background: linear-gradient(135deg, #ffffff, #f8f9fa);
            box-shadow: -5px 0 30px rgba(0,0,0,0.2);
            z-index: 1000;
            transition: right 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            overflow-y: auto;
            padding: 25px;
        }

        .archive-panel.open {
            right: 0;
        }

        .archive-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid #e74c3c;
        }

        .archive-header h3 {
            color: #2c3e50;
            font-size: 1.3rem;
        }

        .close-archive {
            cursor: pointer;
            font-size: 28px;
            color: #e74c3c;
            transition: all 0.3s ease;
        }

        .close-archive:hover {
            transform: rotate(90deg);
        }

        .calendar-input {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            font-size: 1rem;
            margin-bottom: 25px;
            transition: all 0.3s ease;
        }

        .calendar-input:focus {
            outline: none;
            border-color: #e74c3c;
            box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
        }

        .archive-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 400px;
            overflow-y: auto;
        }

        .archive-item {
            padding: 12px 18px;
            background: white;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid #e0e0e0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .archive-item:hover {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            transform: translateX(-8px);
            border-color: transparent;
        }

        .archive-item i {
            font-size: 1.2rem;
        }

        /* Loading Spinner */
        .loading-spinner {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.9);
            color: white;
            padding: 25px 50px;
            border-radius: 60px;
            display: none;
            z-index: 10000;
            text-align: center;
            backdrop-filter: blur(10px);
            gap: 12px;
            font-size: 1.1rem;
        }

        /* Empty State */
        .empty-state-icon {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-state-icon i {
            font-size: 64px;
            color: #bdc3c7;
            margin-bottom: 20px;
        }

        /* Responsive */
        @media (max-width: 992px) {
            .thumbnails-sidebar {
                width: 140px;
            }
            
            .nav-btn.left-btn { 
                left: 150px; 
            }
            
            .action-btn span {
                display: none;
            }
            
            .action-btn {
                padding: 10px 14px;
            }
        }

        @media (max-width: 768px) {
            .thumbnails-sidebar {
                width: 100px;
            }
            
            .nav-btn.left-btn { 
                left: 110px; 
            }
            
            .nav-btn {
                width: 45px;
                height: 45px;
            }
            
            .logo-text h1 {
                font-size: 1.1rem;
            }
            
            .logo-icon {
                width: 35px;
                height: 35px;
                font-size: 1.3rem;
            }
            
            .archive-panel {
                width: 300px;
            }
        }

        @media (max-width: 576px) {
            .thumbnails-sidebar {
                display: none;
            }
            
            .nav-btn.left-btn { 
                left: 10px; 
            }
            
            .top-bar {
                padding: 8px 15px;
            }
        }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .page-container {
            animation: fadeIn 0.5s ease-out;
        }

        /* Toast Notification */
        .toast-notification {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0,0,0,0.8);
            color: white;
            padding: 12px 24px;
            border-radius: 50px;
            z-index: 10001;
            display: none;
            backdrop-filter: blur(10px);
            gap: 10px;
            font-size: 0.9rem;
        }
