﻿body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 1rem;
    background-color: #f5f5f5;
}

.container {
    max-width: 95%;
    margin: 0 auto;
}

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

.pdf-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 200px;
    border-radius: 4px;
    border: dashed 2px #00438B;
    background-color: rgba(28, 124, 226, 0.1);
}

    .pdf-container.dragover {
        background-color: #F4F6F9;
        border-color: #00346B;
    }


.pdf-item {
    width: 176px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
    cursor: move;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s;
    transform: translateY(-2px);
}


.pdf-preview {
    width: 100%;
    height: 250px;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

    .pdf-preview canvas {
        max-width: 100%;
        max-height: 100%;
    }

.pdf-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.pdf-info {
    font-size: 12px;
    color: #666;
}

.sortable-ghost {
    opacity: 0.5;
    background-color: #f0f0f0;
}

.file-input-container {
    margin-bottom: 1.25rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

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

.btn-select {
    background-color: #4caf50;
    color: white;
}

    .btn-select:hover {
        background-color: #45a049;
    }

input[type="file"] {
    display: none;
}

.order-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    .remove-btn:hover {
        opacity: 1;
    }
