/* Styles for the navigation menu */
nav {
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
}
nav a {
    margin: 0 15px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    text-decoration: underline;
}

/* Other styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#content {
    flex: 1;
    padding: 50px;
    text-align: center;
}
#dropArea, #jpgFilesInput, #pdfFileInput, #pdfSplitInput {
    border: 2px dashed #ccc;
    border-radius: 20px;
    padding: 50px;
    margin: 20px auto;
    color: #ccc;
    cursor: pointer;
    max-width: 600px;
}
#dropArea.hover, #jpgFilesInput.hover, #pdfFileInput.hover, #pdfSplitInput.hover {
    border-color: #333;
    color: #333;
}
input[type="file"] {
    display: none;
}
button.action-button {
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    position: relative; /* Added to position the progress bar */
    overflow: hidden;   /* Added to contain the progress bar */
}

button.action-button:hover {
    background-color: #45a049;
}

/* Progress bar inside action-button */
button.action-button .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 0;
    transition: width 0.1s linear;
}
button.save-all-button {
    padding: 10px 22px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}
button.save-all-button:hover {
    background-color: #0b7dda;
}
button.save-all-button .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 0;
    transition: width 0.1s linear;
}
#downloadLink {
    display: none;
    margin-top: 20px;
}
#fileList, #imagesContainer, #splitLinksContainer {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
#fileList li, #imagesContainer img, #splitLinksContainer a {
    background: #f0f0f0;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    display: block;
}
#privacyMessage {
    font-size: 14px;
    color: #777;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
footer {
    text-align: center;
    font-size: 14px;
    color: #777;
    padding: 20px;
}
footer a {
    color: #777;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Accessibility improvements */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ffffff;
    }
    nav {
        background-color: #1e1e1e;
    }
    nav a {
        color: #ccc;
    }
    #dropArea, #jpgFilesInput, #pdfFileInput, #pdfSplitInput {
        border-color: #555;
        color: #aaa;
    }
    #dropArea.hover, #jpgFilesInput.hover, #pdfFileInput.hover, #pdfSplitInput.hover {
        border-color: #bbb;
        color: #fff;
    }
    #fileList li, #imagesContainer img, #splitLinksContainer a {
        background: #1e1e1e;
    }
    #privacyMessage {
        color: #aaa;
    }
    footer {
        color: #aaa;
    }
    footer a {
        color: #aaa;
    }
}

/* Styles for the preview container in PDF to JPG and Split PDF */
#previewContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
#previewContainer .preview-div {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    max-width: 200px;
    text-align: center;
}
#previewContainer img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.mobile-platform {
    padding-bottom: 50px; /* Adjust the value as needed */
}
