.gjt-pdf-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gjt-pdf-card {
    max-width: 640px;
    margin: 0 auto;
    background: #e5f0ff;
    border-radius: 18px;
    padding: 32px 26px 30px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid #d0e2ff;
    text-align: center;
}

.gjt-pdf-title {
    font-size: 1.9rem;
    margin: 0 0 6px;
    color: #0f172a;
    font-weight: 800;
}

.gjt-pdf-icon {
    font-size: 1.6rem;
    margin-right: 6px;
}

.gjt-pdf-subtitle {
    margin: 0 0 20px;
    color: #475569;
    font-size: 0.98rem;
}

.gjt-pdf-error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: left;
    margin-bottom: 16px;
}

.gjt-pdf-form {
    margin-top: 4px;
}

.gjt-upload-area {
    margin-bottom: 16px;
}

.gjt-upload-label {
    display: block;
    width: 100%;
    padding: 20px 18px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gjt-upload-label:hover {
    background: #e2e8f0;
}

.gjt-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.gjt-upload-main-text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
}

.gjt-upload-sub-text {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 3px;
}

.gjt-convert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.gjt-convert-button:hover {
    background: #1d4ed8;
}

.gjt-results {
    margin-top: 26px;
    text-align: left;
}

.gjt-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gjt-results-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.gjt-zip-download {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
}

.gjt-zip-download:hover {
    background: #020617;
}

.gjt-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.gjt-image-item {
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 8px 8px 10px;
    background: #f8fafc;
    text-align: center;
}

.gjt-image-item img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 6px;
    background: #e2e8f0;
}

.gjt-page-label {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 4px;
}

.gjt-image-download {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.82rem;
    border: none;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.gjt-image-download:hover {
    background: #1d4ed8;
}

@media (max-width: 640px) {
    .gjt-pdf-card {
        padding: 24px 16px 24px;
        border-radius: 16px;
    }

    .gjt-pdf-title {
        font-size: 1.5rem;
    }

    .gjt-convert-button {
        width: 100%;
    }
}
