* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #111;
    color: white;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* --- Home Screen Styling --- */
#homeScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

#homeScreen h1 {
    font-size: 34px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 1.5px;
    color: #fff;
}

#fileList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

.file-btn {
    background: #1c1c1e;
    color: #f5f5f7;
    padding: 20px 24px;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.file-btn:hover, .file-btn:focus {
    background: #2c2c2e;
    transform: scale(1.02);
    outline: none;
}

/* --- Toolbar and Canvas UI --- */
#toolbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

button {
    padding: 10px 18px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #2a2a2a;
    color: white;
}

button:hover {
    background: #333;
}

/* Sizing for Lucide SVGs */
.lucide {
    width: 20px;
    height: 20px;
}

#viewerContainer {
    height: calc(100vh - 70px);
    overflow: auto;
    text-align: center;
}

canvas {
    margin: 20px auto;
    display: block;
    background: white;
    max-width: 100%;
}

#pageInfo {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

#pageJump {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #2a2a2a;
    color: white;
    width: 130px;
    text-align: center;
    outline: none;
}

#pageJump::placeholder {
    color: #888;
}

#pageJump::-webkit-outer-spin-button,
#pageJump::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#pageJump[type=number] {
    -moz-appearance: textfield;
}

canvas.dark-mode {
    filter: invert(0.9) hue-rotate(180deg);
}
