.dropzone-container {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 45px 20px;
    text-align: center;
    background-color: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dropzone-container:hover, .dropzone-container.dragover {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
}
.dropzone-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: inline-block;
}

/* Page Previews Grid */
.page-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    min-height: 480px;
}
.page-item-card {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #ffffff;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    user-select: none;
    margin-top: 8px; /* space for badge overflow */
}
.page-item-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}
.page-item-card.unselected {
    opacity: 0.6;
}
.page-item-card canvas {
    max-width: 100%;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    margin-bottom: 8px;
    background-color: #f8fafc;
}

/* Green Checkmark Badge */
.page-item-card .select-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #10b981; /* Emerald green */
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
}
.page-item-card.unselected .select-badge {
    display: none;
}

/* Control Panel active styling */
.active-mode {
    background-color: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #2563eb !important;
}

.form-check-input:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}
