.containert {
            max-width: 100%;
            margin: 0px auto;
            background: #F5F5FA;
            border-radius: 15px;
            padding: 20px;
            overflow: hidden;
        }
        
        .header-t, .headert {
            padding: 5px;
            text-align: center;
            background-color: #F5F5FA;
            color: #47474F;
            position: relative;
            padding-bottom: 20px;
        }
        
        .header-t h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            font-weight: 700;
            position: relative;
            display: inline-block;
        }
        
        .header-t h1::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 280px;
            height: 3px;
            background: linear-gradient(90deg, #DF1D2D, #488ECA);
            border-radius: 3px;
        }
        
        .header-t p {
            opacity: 0.9;
            font-size: 15px;
        }
        
        
        
        .main-content {
            padding: 24px;
        }
        
      
      /* Upload Section - Modern 3D Style */
.upload-section {
    position: relative;
    padding: 1.5rem;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(145deg, #fff 0%, #fff 100%);
    box-shadow: 
        0 15px 35px rgba(37, 117, 252, 0.5),
        inset 0 -4px 12px rgba(229, 50, 45, 0.7),
        inset 0 4px 12px rgba(149, 97, 226, 0.6);
    border: 0px double rgba(208, 222, 251, 1);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(0);
    width: 90%;
    margin: 0 auto 50px auto;
}    

/* Shiny Overlay Effect */
.upload-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.3) 30%,
        transparent 60%
    );
    transform: rotate(30deg);
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

        /* Upload Content */
.upload-icon {
    font-size: 2rem;
    margin-bottom: 0rem;
    color: #ff0000;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.upload-text {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    color: #333;
    letter-spacing: -0.5px;
    font-family: "Exo 2", sans-serif;
}

.upload-hint {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #707070;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
        .btn-upload {
            position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 2.2rem;
    background: linear-gradient(45deg, #fff, #fff);
    border: 5px double #E5322D;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 
        0 6px 16px rgba(255, 138, 0, 0.35),
        0 4px 8px rgba(255, 32, 112, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
    margin-bottom:15px;
        }
        
        .btn-upload:hover {
            background-color: #488ECA;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }
        
        .btn-upload::before {
            content: '';
    position: absolute;
    top: -10px;
    left: -30%;
    width: 60%;
    height: 150%;
    background: linear-gradient(
        to right,
        rgba(197, 215, 250, 0) 0%,
        rgba(197, 215, 250, 0.4) 50%,
        rgba(197, 215, 250, 0) 100%
    );
    transform: rotate(25deg);
    z-index: -1;
    transition: left 0.6s ease;
        }
        
        .btn-upload:hover::before {
            left: 100%;
        }
        
        #pdf-upload {
            display: none;
        }
        
        /* Pages Grid */
        .pages-container {
            display: none;
            margin-bottom: 24px;
        }
        
        .pages-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
            margin-top: 16px;
            border:2px dashed #ddd;
            padding:20px;
            border-radius:15px;
        }
        
        .page-card {
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            transition: all 0.2s;
            border: 1px solid #e5e7eb;
            position: relative;
        }
        
        .page-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .page-card.selected {
            border: 2px solid #DF1D2D;
        }
        
        .page-card.dragging {
            opacity: 0.5;
            border: 2px dashed #DF1D2D;
        }
        
        .page-number {
            position: absolute;
            top: 8px;
            left: 8px;
            background-color: #DF1D2D;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;
            z-index: 2;
        }
        
        .page-canvas {
            width: 100%;
            height: auto;
            display: block;
            background-color: #f9fafb;
        }
        
        .page-actions {
            display: flex;
            justify-content: space-between;
            padding: 8px;
            background-color: white;
            border-top: 1px solid #e5e7eb;
        }
        
        .page-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: #6b7280;
            transition: color 0.2s;
            padding: 4px;
        }
        
        .page-btn:hover {
            color: #DF1D2D;
        }
        
        /* Toolbar */
        .toolbar {
            display: none;
            justify-content: space-between;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .toolbar-group {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        
        .btn-toolbar {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 16px;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            outline: none;
            font-size: 14px;
            gap: 6px;
            background-color: #FFD9DF;
            color: #111827;
        }
        
        .btn-toolbar:hover {
            background-color: #e5e7eb;
        }
        
        .btn-toolbar.primary {
            background-color: #DF1D2D;
            color: white;
        }
        
        .btn-toolbar.primary:hover {
            background-color: #4338ca;
        }
        
        .btn-toolbar.danger {
            background-color: #ef4444;
            color: white;
        }
        
        .btn-toolbar.danger:hover {
            background-color: #dc2626;
        }
        
        /* Action Buttons */
        .action-buttons {
            display: none;
            justify-content: center;
            gap: 16px;
            margin-top: 24px;
            flex-wrap: wrap;
        }
        
        .btn-primary {
            background-color: #DF1D2D;
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #4338ca;
        }
        
        .btn-secondary {
            background-color: #f3f4f6;
            color: #111827;
        }
        
        .btn-secondary:hover {
            background-color: #e5e7eb;
        }
        
        /* Loading indicator */
        .loading {
            display: none;
            margin: 20px 0;
            text-align: center;
            color: #DF1D2D;
        }
        
        .loading i {
            animation: spin 1s linear infinite;
        }
        
        /* Animations */
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .pages-list {
                grid-template-columns: 1fr 1fr;
            }
            
            .toolbar {
                flex-direction: column;
            }
            
            .toolbar-group {
                justify-content: center;
            }
            
            .action-buttons {
                flex-direction: column;
                gap: 12px;
            }
            
            .btn {
                width: 100%;
            }
        }
        
        /* Dropzone for reordering */
        .dropzone {
            border: 2px dashed #DF1D2D;
            background-color: rgba(223, 29, 45, 0.05);
            border-radius: 8px;
            min-height: 20px;
            margin: 4px 0;
        }
        
        /* Page selection counter */
        .selection-counter {
            background-color: #DF1D2D;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 14px;
            margin-left: 8px;
        }