/* PDF to Images - Single Responsive Styles */
.pdf2img-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.pdf2img-wrapper { max-width: 900px; margin: 0 auto; }

.pdf2img-title {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.pdf2img-heart { font-size: 2.8rem; animation: pulse 2s infinite; }

.pdf2img-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-family: 'Poppins', sans-serif;
}

.pdf2img-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow);
}

/* Upload Area */
.upload-area {
    border: 3px dashed var(--border);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg);
}
.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}
.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.upload-content h3 { margin: 0.5rem 0; color: var(--text); }
.upload-content p { color: var(--text-light); margin-bottom: 1.5rem; }

.upload-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
}

/* Preview Section */
.preview-section .file-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.page-count { color: var(--primary); }

.pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.page-preview {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.page-preview:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.page-preview img {
    width: 100%;
    height: auto;
    display: block;
}
.page-number {
    text-align: center;
    padding: 0.5rem;
    background: var(--bg);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Actions */
.pdf2img-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.pdf2img-action-btn {
    flex: 1;
    min-width: 160px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.pdf2img-action-btn:hover { transform: translateY(-2px); }

.download-all-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

/* Download Card (same style as before) */
.download-card-container { margin-top: 2.5rem; }
.download-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 500px;
    margin: 0 auto;
    color:#2d2d44;
}
.dark-mode .download-card {
    background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}

/* Tips & SEO */
.pdf2img-tips, .pdf2img-seo {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Mobile */
@media (max-width: 767px) {
    .pdf2img-title { font-size: 2.4rem; }
    .pages-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .pdf2img-card { padding: 1.5rem; }
}