body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f0f0f0;
    text-align: center;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #7456f1;
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    width: 150px; /* Increased size */
    margin-right: 20px;
}

.upload-section {
    border: 2px dashed #7456f1;
    padding: 50px;
    margin: 20px;
    border-radius: 10px;
    background-color: white;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

body.dark-mode .upload-section {
    background-color: #333;
    border-color: #7456f1;
}

.upload-section:hover {
    background-color: #e6e6ff;
    transform: scale(1.05);
}

body.dark-mode .upload-section:hover {
    background-color: #444;
}

.upload-section p {
    margin-top: 10px;
    color: #7456f1;
    font-size: 16px;
}

body.dark-mode .upload-section p {
    color: #a5a5ff;
}

#fileInput {
    display: none;
}

.big-button {
    background-color: #28a745; /* Green color */
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.big-button i {
    margin-right: 10px;
}

.big-button:hover {
    background-color: #218838; /* Darker green on hover */
    transform: scale(1.05);
}

#imageContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-preview {
    margin: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: white;
    width: 200px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

body.dark-mode .image-preview {
    background-color: #333;
    border-color: #555;
}

.image-preview:hover {
    transform: scale(1.05);
}

.image-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.image-preview .details {
    font-size: 12px;
}

.image-preview .details .original-size {
    color: red;
}

.image-preview .details .compressed-size, .image-preview .details .compression-rate {
    color: green;
    display: none;
}

.download-button {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.download-button:hover {
    background-color: #5e44c9;
    transform: scale(1.05);
}

.preview-button {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.preview-button:hover {
    background-color: #5e44c9;
    transform: scale(1.05);
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
    width: 100%;
}

.warning-message {
    color: red;
    font-size: 16px;
    margin: 10px;
}

#scrollToTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

/* Dark Mode Toggle Switch */
.dark-mode-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dark-mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.4s;
    border-radius: 34px;
}

.toggle-slider {
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-label {
    background-color: #2196F3;
}

input:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

/* Uploading Bar */
.uploading-bar-container {
    display: none;
    width: 100%;
    margin: 20px 0;
    background-color: #f3f3f3;
    border-radius: 25px;
}

.uploading-bar {
    height: 30px;
    width: 0;
    background-color: #7456f1;
    border-radius: 25px;
    text-align: center;
    color: white;
    line-height: 30px;
    transition: width 0.4s ease;
}

/* FAQ Section */
.faq-section {
    padding: 20px;
    background-color: #f9f9f9;
}

body.dark-mode .faq-section {
    background-color: #333;
    color: white;
}

.faq-item {
    margin: 10px 0;
}

.faq-question {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

body.dark-mode .faq-question {
    background-color: #5e44c9;
}

.faq-question:hover {
    background-color: #5e44c9;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #e6e6ff;
    border-left: 3px solid #7456f1;
}

body.dark-mode .faq-answer {
    background-color: #444;
    border-left-color: #5e44c9;
}
/* Other existing styles */

.zip-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #7456f1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#zipLoadingText {
    margin-top: 10px;
    font-size: 14px;
    color: #7456f1;
}

body.dark-mode #zipLoadingText {
    color: #a5a5ff;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dark-mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.4s;
    border-radius: 34px;
}

.toggle-slider {
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-label {
    background-color: #2196F3;
}

input:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

/* Uploading Bar */
.uploading-bar-container {
    display: none;
    width: 100%;
    margin: 20px 0;
    background-color: #f3f3f3;
    border-radius: 25px;
}

.uploading-bar {
    height: 30px;
    width: 0;
    background-color: #7456f1;
    border-radius: 25px;
    text-align: center;
    color: white;
    line-height: 30px;
    transition: width 0.4s ease;
}

/* FAQ Section */
.faq-section {
    padding: 20px;
    background-color: #f9f9f9;
}

body.dark-mode .faq-section {
    background-color: #333;
    color: white;
}

.faq-item {
    margin: 10px 0;
}

.faq-question {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

body.dark-mode .faq-question {
    background-color: #5e44c9;
}

.faq-question:hover {
    background-color: #5e44c9;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #e6e6ff;
    border-left: 3px solid #7456f1;
}

body.dark-mode .faq-answer {
    background-color: #444;
    border-left-color: #5e44c9;
}
/* Other existing styles */

#downloadAllButton {
    position: relative;
}

#downloadAllButton .spinner {
    display: none;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#zipLoadingText {
    margin-top: 10px;
    font-size: 14px;
    color: #7456f1;
    display: none;
}

body.dark-mode #zipLoadingText {
    color: #a5a5ff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dark-mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.4s;
    border-radius: 34px;
}

.toggle-slider {
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-label {
    background-color: #2196F3;
}

input:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

/* Uploading Bar */
.uploading-bar-container {
    display: none;
    width: 100%;
    margin: 20px 0;
    background-color: #f3f3f3;
    border-radius: 25px;
}

.uploading-bar {
    height: 30px;
    width: 0;
    background-color: #7456f1;
    border-radius: 25px;
    text-align: center;
    color: white;
    line-height: 30px;
    transition: width 0.4s ease;
}

/* FAQ Section */
.faq-section {
    padding: 20px;
    background-color: #f9f9f9;
}

body.dark-mode .faq-section {
    background-color: #333;
    color: white;
}

.faq-item {
    margin: 10px 0;
}

.faq-question {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

body.dark-mode .faq-question {
    background-color: #5e44c9;
}

.faq-question:hover {
    background-color: #5e44c9;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #e6e6ff;
    border-left: 3px solid #7456f1;
}

body.dark-mode .faq-answer {
    background-color: #444;
    border-left-color: #5e44c9;
}
/* Other existing styles */

#downloadAllButton {
    position: relative;
}

#downloadAllButton .spinner {
    display: none;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#zipLoadingText {
    margin-top: 10px;
    font-size: 14px;
    color: #7456f1;
    display: none;
}

body.dark-mode #zipLoadingText {
    color: #a5a5ff;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Supported File Types */
.supported-file-types {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.supported-file-types h2 {
    margin-bottom: 10px;
}

.supported-file-types p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

body.dark-mode .supported-file-types {
    background-color: #333;
    border-color: #555;
}

body.dark-mode .supported-file-types p {
    color: #fff;
}

.supported-file-types strong {
    color: #fff;
    background-color: #7456f1;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 5px;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .supported-file-types strong {
    background-color: #a5a5ff;
    color: #333;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dark-mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.4s;
    border-radius: 34px;
}

.toggle-slider {
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-label {
    background-color: #2196F3;
}

input:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

/* Uploading Bar */
.uploading-bar-container {
    display: none;
    width: 100%;
    margin: 20px 0;
    background-color: #f3f3f3;
    border-radius: 25px;
}

.uploading-bar {
    height: 30px;
    width: 0;
    background-color: #7456f1;
    border-radius: 25px;
    text-align: center;
    color: white;
    line-height: 30px;
    transition: width 0.4s ease;
}

/* FAQ Section */
.faq-section {
    padding: 20px;
    background-color: #f9f9f9;
}

body.dark-mode .faq-section {
    background-color: #333;
    color: white;
}

.faq-item {
    margin: 10px 0;
}

.faq-question {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

body.dark-mode .faq-question {
    background-color: #5e44c9;
}

.faq-question:hover {
    background-color: #5e44c9;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #e6e6ff;
    border-left: 3px solid #7456f1;
}

body.dark-mode .faq-answer {
    background-color: #444;
    border-left-color: #5e44c9;
}
/* Other existing styles */

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f0f0f0;
    text-align: center;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background-color: #7456f1;
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    width: 150px;
    margin-right: 20px;
}

.upload-section {
    border: 2px dashed #7456f1;
    padding: 50px;
    margin: 20px;
    border-radius: 10px;
    background-color: white;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
}

body.dark-mode .upload-section {
    background-color: #333;
    border-color: #7456f1;
}

.upload-section:hover {
    background-color: #e6e6ff;
    transform: scale(1.05);
}

body.dark-mode .upload-section:hover {
    background-color: #444;
}

.upload-section p {
    margin-top: 10px;
    color: #7456f1;
    font-size: 16px;
}

body.dark-mode .upload-section p {
    color: #a5a5ff;
}

#fileInput {
    display: none;
}

.big-button {
    background-color: #28a745; /* Green color */
    color: white;
    border: none;
    padding: 15px 30px;
    margin: 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.big-button i {
    margin-right: 10px;
}

.big-button:hover {
    background-color: #218838; /* Darker green on hover */
    transform: scale(1.05);
}

#imageContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.image-preview {
    margin: 10px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: white;
    width: 200px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

body.dark-mode .image-preview {
    background-color: #333;
    border-color: #555;
}

.image-preview:hover {
    transform: scale(1.05);
}

.image-preview img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.image-preview .details {
    font-size: 12px;
}

.image-preview .details .original-size {
    color: red;
}

.image-preview .details .compressed-size, .image-preview .details .compression-rate {
    color: green;
    display: none;
}

.download-button {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.download-button:hover {
    background-color: #5e44c9;
    transform: scale(1.05);
}

.preview-button {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 5px 10px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.preview-button:hover {
    background-color: #5e44c9;
    transform: scale(1.05);
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
    width: 100%;
}

.warning-message {
    color: red;
    font-size: 16px;
    margin: 10px;
}

#scrollToTopButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
}

/* Dark Mode Toggle Switch */
.dark-mode-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.dark-mode-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: background-color 0.4s;
    border-radius: 34px;
}

.toggle-slider {
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: transform 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-label {
    background-color: #2196F3;
}

input:checked + .toggle-label .toggle-slider {
    transform: translateX(26px);
}

/* Uploading Bar */
.uploading-bar-container {
    display: none;
    width: 100%;
    margin: 20px 0;
    background-color: #f3f3f3;
    border-radius: 25px;
}

.uploading-bar {
    height: 30px;
    width: 0;
    background-color: #7456f1;
    border-radius: 25px;
    text-align: center;
    color: white;
    line-height: 30px;
    transition: width 0.4s ease;
}

/* FAQ Section */
.faq-section {
    padding: 20px;
    background-color: #f9f9f9;
}

body.dark-mode .faq-section {
    background-color: #333;
    color: white;
}

.faq-item {
    margin: 10px 0;
}

.faq-question {
    background-color: #7456f1;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s;
}

body.dark-mode .faq-question {
    background-color: #5e44c9;
}

.faq-question:hover {
    background-color: #5e44c9;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #e6e6ff;
    border-left: 3px solid #7456f1;
}

body.dark-mode .faq-answer {
    background-color: #444;
    border-left-color: #5e44c9;
}

/* Supported File Types */
.supported-file-types {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.supported-file-types h2 {
    margin-bottom: 10px;
}

.supported-file-types p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

body.dark-mode .supported-file-types {
    background-color: #333;
    border-color: #555;
}

body.dark-mode .supported-file-types p {
    color: #fff;
}

.supported-file-types strong {
    color: #fff;
    background-color: #7456f1;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 0 5px;
    display: inline-block;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode .supported-file-types strong {
    background-color: #a5a5ff;
    color: #333;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .upload-section {
        padding: 30px;
    }

    .upload-section h2 {
        font-size: 18px;
    }

    .upload-section p {
        font-size: 14px;
    }

    .big-button {
        padding: 12px 24px;
        font-size: 16px;
    }

    .image-preview {
        width: 100%;
        margin: 10px 0;
        padding: 10px;
    }

    .image-preview img {
        width: 100%;
        height: auto;
    }

    .image-preview .details {
        font-size: 14px;
    }

    .supported-file-types {
        padding: 15px;
        margin: 15px 0;
    }

    .supported-file-types p {
        font-size: 14px;
    }

    .supported-file-types strong {
        padding: 3px 8px;
        margin: 3px;
        font-size: 14px;
    }

    .faq-section {
        padding: 15px;
    }

    .faq-question {
        padding: 8px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 8px;
        font-size: 14px;
    }
}
/* Other existing styles */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.5s;
}

body.dark-mode .modal-content {
    background-color: #333;
    color: #fff;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#previewImage {
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); }
    to { transform: translateY(0); }
}
