.pdf-to-image-wrapper {
    max-width: 1200px;
    text-align: center;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pdf-to-image-wrapper h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pdf-to-image-wrapper p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#pdf-upload {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

#pdf-upload + label {
    display: inline-block;
    padding: 12px 24px;
    background-color: #e2e8f0;
    color: #4a5568;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-right: 12px;
    transition: all 0.3s ease;
}

#pdf-upload + label:hover {
    background-color: #cbd5e0;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#convert-button {
    background-color: #4f46e5;
    color: white;
    margin-right: 12px;
}

#convert-button:hover {
    background-color: #4338ca;
}

#download-all-button {
    background-color: #059669;
    color: white;
}

#download-all-button:hover {
    background-color: #047857;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
    padding: 20px;
}

.image-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.image-item a {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: #4f46e5;
    font-weight: 500;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.image-item a:hover {
    color: #4338ca;
    background-color: #f1f5f9;
}

@media (max-width: 768px) {
    .pdf-to-image-wrapper h2 {
        font-size: 2rem;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    #pdf-upload + label,
    button {
        width: 100%;
        margin: 8px 0;
    }
}