:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f4f4f9;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glow-color: rgba(37, 117, 252, 0.5);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm-2-20v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM20 2v4h2v-4h4V2h-4V0h-2v2h-4v2h4zM0 20v4h2v-4h4V2h-4v4H2v10h2V10h10V8H4v2H2v4H0v2h2v-2h2v-2H2V8H0v12z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

header h1 svg {
    width: 40px;
    height: 40px;
    fill: var(--primary-color);
}


.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 1rem 0;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}


.input-container {
    text-align: center;
    margin-bottom: 3rem;
}

#pdf-input {
    display: none;
}

label[for="pdf-input"] {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    font-weight: 600;
}

label[for="pdf-input"] svg {
    width: 24px;
    height: 24px;
    fill: white;
}

label[for="pdf-input"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px var(--glow-color), 0 4px 15px rgba(0, 0, 0, 0.2);
}

#output-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.image-container {
    border: none;
    padding: 1rem;
    border-radius: 15px;
    text-align: center;
    background-color: var(--card-bg-color);
    box-shadow: 0 10px 30px var(--shadow-color), 0 1px 4px var(--shadow-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.1);
}

.file-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.image-container a {
    display: block;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 0.75rem;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-container a:hover {
    box-shadow: 0 7px 20px var(--glow-color), 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}