.upload-container {
    text-align: center;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
}
.preview-container {
    margin: 20px auto;
    max-width: 800px;
}
#imagePreviews {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.preview-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    cursor: move;
}
.preview-item img {
    max-width: 100px;
    max-height: 100px;
    margin-right: 15px;
}
.preview-item-info {
    flex-grow: 1;
}
.preview-item-remove {
    color: red;
    cursor: pointer;
    margin-left: 15px;
}
.button-group {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.button-group button, .button-group a {
    padding: 10px 20px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
}
#convertToPdfBtn {
    background-color: #4CAF50;
}
#convertToPdfBtn:hover {
    background-color: #45a049;
}
#homeBtn {
    background-color: #2196F3;
}
#homeBtn:hover {
    background-color: #0b7dda;
}
#newPdfBtn {
    background-color: #ff9800;
}
#newPdfBtn:hover {
    background-color: #e68a00;
}
.button-group button:disabled, .button-group a.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    pointer-events: none;
}
#adArea1, #adArea2 {
    background-color: #f5f5f5;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #ddd;
}
.error-message {
    color: red;
    margin: 10px 0;
}
.drag-hint {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}
.sortable-ghost {
    opacity: 0.5;
    background: #c8ebfb;
}