    /* Reset/default styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    html,
    body {
        margin: 0;
        padding: 0;
        background: #212020;
        font-family: Arial, sans-serif;
        min-height: 100vh;
    }


    .main-container {
        display: flex;
        padding-top: 70px;
        ;
        flex-direction: column;
        align-items: center;
        padding: 3rem;
        gap: 2rem;
        position: relative;
        z-index: 1;
        min-height: 100vh;
    }

    .text-box {
        background-color: rgba(70, 70, 70, 0.271);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 2rem;
        color: rgb(176, 176, 176);
        text-align: center;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        width: 100%;
        max-width: 1000px;
        margin-bottom: 2rem;
    }

    .ui-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgba(70, 70, 70, 0.271);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        padding: 2rem;
        color: rgb(176, 176, 176);
        text-align: center;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        width: 90%;
        max-width: 1000px;
    }

    #pdfUpload {
        margin-top: 1rem;
        padding: 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid #555;
        border-radius: 4px;
        color: rgb(176, 176, 176);
    }

    #thumbnails {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
        justify-items: center;
        margin-bottom: 1.5rem;
        width: 100%;
        padding: 1rem 0;
    }

    .thumb-cell {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.05);
        padding: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
        width: 100%;
        max-width: 180px;
        box-sizing: border-box;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .thumb-cell:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .thumb-cell canvas {
        max-width: 100%;
        width: 100%;
        height: auto;
        display: block;
        border: 1px solid #555;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .thumb-cell .page-info {
        margin-top: 0.5rem;
        font-size: 0.8rem;
        color: rgb(200, 200, 200);
        text-align: center;
        word-break: break-word;
    }

    button {
        margin-top: 1rem;
        padding: 0.5rem 1rem;
        background: #739775;
        border: none;
        color: white;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease;
        font-size: 1rem;
    }

    button:hover {
        background: #025e13;
    }

    button:disabled {
        background: #555;
        cursor: not-allowed;
    }

    .loading {
        color: rgb(176, 176, 176);
        font-style: italic;
        margin: 1rem 0;
    }

    .drag-ghost {
        opacity: 0.5;
    }

    .top-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: #111;
        display: flex;
        align-items: center;
        padding: 0 2rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        z-index: 100;
    }

    .nav-item {
        color: #739775;
        text-decoration: none;
        margin-right: 2rem;
        font-weight: bold;
        transition: color 0.2s ease;
    }

    .nav-item:hover {
        color: #025e13;
    }