/* ══════════════════════════════════════════════════════════════════
   delete-pdf-pages.html — page-specific styles (loaded after base.css).
   Font-face, reset, .container, .uz upload zone, generic grid-cols,
   and .rts-* related-tools-strip are covered by base.css.
   This page keeps its own red/"delete"-themed thumbnail-picker
   component since it's semantically distinct from the generic
   indigo page-picker in base.css (selecting a page here means
   marking it for deletion, not just extraction).
   ══════════════════════════════════════════════════════════════════ */

/* .glass-card:hover uses a red shadow here (delete semantics) instead
   of base.css's indigo — redeclare the full rule so it wins the cascade. */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
}

/* ── Thumbnail picker (red = marked for deletion) ── */
.thumbnails-container {
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.thumbnails-container::-webkit-scrollbar {
    width: 10px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.page-thumbnail {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-thumbnail:hover {
    border-color: #6366f1;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.page-thumbnail.selected {
    border-color: #ef4444;
    background: #fef2f2;
    transform: scale(0.95);
}

.page-thumbnail canvas {
    width: 100%;
    height: auto;
    display: block;
    animation: fadeIn .25s ease;
}

.page-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    color: white;
    padding: 0.5rem 0.25rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.delete-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.125rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

.selection-info {
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.selection-info-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
}

.selection-count {
    background: linear-gradient(135deg, #6366f1, #7c3aed);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

@media (max-width: 768px) {
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .thumbnails-container {
        max-height: 500px;
    }
}

@media (max-width: 480px) {
    .thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}
