/* PDF Get Image (Extract Images) Local Tool Page Styles */
.pdf-getimg-page {
    padding-bottom: 60px;
}

/* Hero Section Refinements */
.pdf-getimg-page .tool-hero {
    border-bottom: 1px solid var(--border-soft);
    padding: 32px 0 28px;
    margin-bottom: 30px;
}

.pdf-getimg-page .tool-hero__main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.pdf-getimg-page .tool-hero__copy h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin: 12px 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-getimg-page .tool-hero__desc {
    font-size: 15px;
    color: var(--text-sub);
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 16px;
}

.pdf-getimg-page .tool-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-getimg-page .tool-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-main);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pdf-getimg-page .tool-hero__meta span i {
    color: #0284c7;
}

/* Side Tip Card */
.pdf-getimg-page .tool-hero__aside {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    width: 280px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.pdf-getimg-page .tool-hero__aside strong {
    display: block;
    font-size: 14px;
    color: #0284c7;
    margin-bottom: 6px;
}

.pdf-getimg-page .tool-hero__aside p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
    line-height: 1.5;
}

/* Upload Area & File Card */
.pdf-getimg-page .upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-getimg-page .upload-area:hover,
.pdf-getimg-page .upload-area.dragover {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.03);
}

.pdf-getimg-page .upload-content i {
    color: #0284c7;
    margin-bottom: 12px;
}

.pdf-getimg-page .upload-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.pdf-getimg-page .upload-content p {
    font-size: 13px;
    color: var(--text-sub);
    margin: 0;
}

/* PDF File Details Card */
.pdf-file-card {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pdf-file-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.pdf-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fee2e2;
    color: #ef4444;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-file-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pdf-file-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-file-meta {
    font-size: 13px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-file-meta .page-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

/* Options Panel */
.getimg-options-panel {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.getimg-options-panel .form-group {
    margin-bottom: 12px;
}

.getimg-options-panel label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}

/* Extracted Images Preview Panel */
.getimg-preview-panel {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.getimg-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.getimg-preview-head h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.getimg-preview-head h4 i {
    color: #0284c7;
}

.getimg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.getimg-thumb-card {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: all 0.2s ease;
}

.getimg-thumb-card:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.1);
}

.getimg-thumb-preview {
    height: 120px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.getimg-thumb-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.getimg-thumb-meta {
    padding: 6px 8px;
    background: #f1f5f9;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    border-top: 1px solid var(--border-main);
    display: flex;
    justify-content: space-between;
}

/* Progress Panel */
.getimg-progress-container {
    background: #f8fafc;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.getimg-progress-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* Result Card */
.getimg-result-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    text-align: center;
}

.getimg-result-card.empty-result {
    background: #fefce8;
    border-color: #fef08a;
}

.getimg-result-icon {
    width: 52px;
    height: 52px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

.getimg-result-card.empty-result .getimg-result-icon {
    background: #eab308;
    box-shadow: 0 4px 10px rgba(234, 179, 8, 0.25);
}

.getimg-result-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: #0369a1;
    margin-bottom: 6px;
}

.getimg-result-card.empty-result h4 {
    color: #854d0e;
}

.getimg-result-meta {
    font-size: 13.5px;
    color: #075985;
    margin-bottom: 18px;
}

.getimg-result-card.empty-result .getimg-result-meta {
    color: #713f12;
}

.btn-download-zip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-download-zip:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* Guide Table */
.getimg-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 13.5px;
}

.getimg-guide-table th,
.getimg-guide-table td {
    padding: 10px 14px;
    border: 1px solid var(--border-main);
    text-align: left;
}

.getimg-guide-table th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--text-main);
}

.getimg-guide-table tr:nth-child(even) td {
    background: #fafafa;
}

.badge-mode {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    background: #e0f2fe;
    color: #0369a1;
}

/* Core Advantages Grid */
.pdf-getimg-page .tool-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.pdf-getimg-page .tool-benefit-item {
    background: #ffffff;
    border: 1px solid var(--border-main);
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.pdf-getimg-page .tool-benefit-item:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.pdf-getimg-page .tool-benefit-item i {
    font-size: 22px;
    color: #0284c7;
    background: #e0f2fe;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-getimg-page .tool-benefit-item div {
    flex: 1;
}

.pdf-getimg-page .tool-benefit-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.pdf-getimg-page .tool-benefit-item span {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
    display: block;
}

.pdf-getimg-page .tool-benefit-tag {
    font-style: normal;
    font-size: 11.5px;
    font-weight: 600;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .pdf-getimg-page .tool-hero__main {
        flex-direction: column;
    }
    .pdf-getimg-page .tool-hero__aside {
        width: 100%;
    }
    .pdf-getimg-page .tool-benefit-list {
        grid-template-columns: 1fr;
    }
}
