/* assets/css/pdf-tools.css - Premium iLovePDF Inspired UI */

:root {
    --pdf-primary: #ef4444;
    --pdf-primary-soft: rgba(239, 68, 68, 0.08);
    --pdf-border-dashed: rgba(0, 0, 0, 0.1);
    --pdf-card-bg: #ffffff;
    --pdf-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* 1. Industrial Workspace (Drag & Drop) */
.pdf-workspace-premium {
    border: 3px dashed var(--pdf-border-dashed);
    border-radius: 2rem;
    background: #f8fafc;
    padding: 5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.pdf-workspace-premium:hover, .pdf-workspace-premium.dragover {
    border-color: var(--pdf-primary);
    background: var(--pdf-primary-soft);
    transform: scale(1.01);
}

.pdf-workspace-premium.dragover i {
    transform: translateY(-10px);
    color: var(--pdf-primary) !important;
}

.pdf-workspace-premium i {
    transition: all 0.3s ease;
    display: block;
}

/* 2. File Card Grid (SaaS Density) */
.pdf-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.pdf-file-card {
    background: var(--pdf-card-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 1.25rem;
    padding: 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--pdf-shadow);
    text-align: center;
}

.pdf-file-card:hover {
    border-color: var(--pdf-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.1);
}

.pdf-card-icon {
    width: 64px;
    height: 72px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--pdf-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.pdf-card-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.pdf-card-remove:hover {
    transform: scale(1.1);
    background: #b91c1c;
}

/* 3. Industrial Processing Nodes */
.pdf-processing-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 2rem;
}

.progress-industrial {
    height: 8px;
    border-radius: 99px;
    background: #f1f5f9;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    margin-top: 1.5rem;
}

.progress-industrial .progress-bar {
    background: var(--pdf-primary);
    background-image: linear-gradient(45deg, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progress-bar-stripes 1s linear infinite;
}

/* 4. Action Surface */
.pdf-action-bar {
    position: sticky;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Mobile Responsive Nodes */
@media (max-width: 767.98px) {
    .pdf-workspace-premium {
        padding: 3rem 1.5rem;
        border-radius: 1.5rem;
    }
    .pdf-file-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}
