body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f0f0f0;
}

h1 {
    text-align: center;
    color: #333;
}

.collapsible {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
}

.active, .collapsible:hover {
    background-color: #ccc;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f1f1f1;
}

#drop-area {
    border: 2px dashed #007bff;
    border-radius: 20px;
    width: 100%;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#drop-area.highlight {
    border-color: #0056b3;
    background-color: #e6f2ff;
}

#file-input {
    display: none;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #0056b3;
}

#generate-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
}

#clear-files-button {
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 14px;
    background-color: #6c757d;
    width: auto;
}

#file-list {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#file-list h3 {
    margin-top: 0;
    color: #333;
}

#file-list .file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

#file-list .file-item:last-child {
    border-bottom: none;
}

#file-list .remove-file {
    color: #dc3545;
    cursor: pointer;
}

#progress-area {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    background-color: #e0e0e0;
    padding: 3px;
    border-radius: 3px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2);
}

.progress-bar-fill {
    display: block;
    height: 22px;
    background-color: #28a745;
    border-radius: 3px;
    transition: width 500ms ease-in-out;
}

#combine-slides {
    margin-top: 10px;
}

#stats-area {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#stats-area ul {
    list-style-type: none;
    padding-left: 0;
}

#stats-area li {
    margin-bottom: 5px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.github-icon {
display: inline-block;
width: 24px;
height: 24px;
background-image: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>');
background-repeat: no-repeat;
background-size: contain;
vertical-align: middle;
margin-left: 10px;
}

.github-btn {
text-decoration: none;
color: #333;
}

.github-btn:hover {
text-decoration: underline;
}

.drag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.drag-item {
    border: 1px solid #ccc;
    padding: 5px;
    cursor: move;
    position: relative;
}
.drag-item img {
    max-width: 200px;
    max-height: 200px;
}
.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    cursor: pointer;
}

.image-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}
.drag-item {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
}
.image-wrapper {
    position: relative;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}
.image-wrapper img {
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
}

.removed-slides-list {
    list-style-type: none;
    padding-left: 0;
}

.removed-slides-list li {
    background-color: #ffebee;
    border-left: 3px solid #f44336;
    padding: 5px 10px;
    margin-bottom: 5px;
    border-radius: 3px;
}

#removed-slides-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

#removed-slides-summary {
    font-weight: bold;
    font-size: 1.1em;
    background-color: #fff8e1;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ffe082;
}

#mode-selector {
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

#mode-selector label {
    margin-right: 20px;
    cursor: pointer;
}

#json-input-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

#json-input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    resize: vertical;
}

.error-message {
    color: #dc3545;
    margin: 10px 0;
    padding: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.prompt-container {
    position: relative;
    margin: 10px 0;
}

.toggle-prompt-button {
    padding: 5px 10px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

.toggle-prompt-button:hover {
    background-color: #5a6268;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.copy-button:hover {
    background-color: #0056b3;
}

.deepseek-link {
    display: inline-block;
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.deepseek-link:hover {
    background-color: #218838;
}

#ai-prompt {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    white-space: pre-wrap;
    font-family: monospace;
    margin: 0;
}