body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    color: #0056b3;
    text-align: center;
    margin-bottom: 20px;
}

.upload-section, .queue-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fdfdfd;
}

input[type="file"] {
    display: block;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 18px);
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#uploadStatus, #queueStatus {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #495057;
    display: none; /* Kezdetben rejtett */
}

#uploadStatus.success { background-color: #d4edda; color: #155724; }
#uploadStatus.error { background-color: #f8d7da; color: #721c24; }

#thumbnailPreviewContainer {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

#thumbnailCanvas {
    border: 1px solid #ccc;
    background-color: #fff;
    display: block;
    margin: 10px auto;
}

.sortable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sortable-list li {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: grab;
    transition: background-color 0.2s ease;
}

.sortable-list li:hover {
    background-color: #f9f9f9;
}

.sortable-list li.sortable-ghost {
    opacity: 0.4;
    background-color: #e0e0e0;
}

.sortable-list li img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 3px;
}

.sortable-list li span {
    flex-grow: 1;
    font-weight: bold;
    color: #333;
}

.sortable-list li .delete-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.sortable-list li .delete-button:hover {
    background-color: #c82333;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
#modalViewerContainer {
    width: 100%;
    height: 60vh;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.close-modal {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
#modalDimensions {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    text-align: center;
}
.preview-trigger {
    cursor: pointer;
}
