/* PDF to JPG Tool Styles */
.tool-breadcrumb { background: var(--gray-100); padding: 12px 0; }
.tool-breadcrumb .breadcrumb { margin: 0; font-size: 0.85rem; }
.tool-breadcrumb .breadcrumb-item a { color: var(--primary); }

.tool-header { padding: 50px 0 40px; background: linear-gradient(135deg, #fef9e7, #fdebd0); }
.tool-icon-large {
    width: 80px; height: 80px; border-radius: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    color: white; font-size: 2rem; margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(241, 196, 15, 0.3);
}
.tool-header h1 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.tool-desc { font-size: 1.05rem; color: var(--gray-600); max-width: 650px; margin: 0 auto; line-height: 1.7; }

.tool-workspace { padding: 40px 0 60px; }
.workspace-card {
    background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px; max-width: 900px; margin: 0 auto;
}

/* Upload */
.upload-zone {
    border: 3px dashed var(--gray-300); border-radius: 16px; padding: 60px 30px;
    text-align: center; transition: all 0.3s ease; cursor: pointer; background: var(--gray-100);
}
.upload-zone:hover, .upload-zone.dragover { border-color: #e67e22; background: rgba(230,126,34,0.03); }
.upload-icon { font-size: 3.5rem; color: var(--gray-400); margin-bottom: 16px; }
.upload-zone:hover .upload-icon { color: #e67e22; }
.upload-zone h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.upload-zone p { color: var(--gray-500); margin-bottom: 16px; }
.upload-hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 16px; margin-bottom: 0; }
.btn-upload {
    background: #e67e22; color: white; padding: 12px 28px; border-radius: 30px;
    font-weight: 600; cursor: pointer; transition: all 0.3s ease;
}
.btn-upload:hover { background: #d35400; color: white; transform: translateY(-2px); }

/* File Preview */
.preview-area { margin-top: 24px; }
.file-preview {
    display: flex; align-items: center; gap: 16px; padding: 16px 20px;
    background: var(--gray-100); border-radius: 12px; border: 1px solid var(--gray-200);
}
.file-icon { font-size: 2rem; color: #e74c3c; }
.file-info { flex: 1; }
.file-info strong { display: block; font-size: 0.95rem; color: var(--dark); }
.file-info span { font-size: 0.8rem; color: var(--gray-500); }

/* Mode Options */
.options-title {
    font-size: 1.1rem; font-weight: 700; color: var(--dark);
    margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--gray-200);
}
.mode-options { display: flex; gap: 16px; flex-wrap: wrap; }
.mode-card {
    flex: 1; min-width: 250px; display: flex; gap: 16px; padding: 20px;
    border: 2px solid var(--gray-200); border-radius: 14px;
    cursor: pointer; transition: all 0.2s ease; background: white; align-items: flex-start;
}
.mode-card:hover { border-color: var(--gray-400); }
.mode-card.active { border-color: #e67e22; background: rgba(230,126,34,0.03); box-shadow: 0 0 0 1px #e67e22; }
.mode-card-icon {
    width: 50px; height: 50px; border-radius: 12px; background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--gray-600); flex-shrink: 0;
}
.mode-card.active .mode-card-icon { background: #e67e22; color: white; }
.mode-card-content { flex: 1; }
.mode-card-content strong { display: block; font-size: 1rem; color: var(--dark); margin-bottom: 4px; }
.mode-card-content p { font-size: 0.82rem; color: var(--gray-600); line-height: 1.5; margin: 0 0 8px; }
.mode-badge {
    display: inline-block; padding: 3px 10px; border-radius: 12px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.mode-badge.page { background: rgba(46,204,113,0.15); color: #27ae60; }
.mode-badge.extract { background: rgba(155,89,182,0.15); color: #8e44ad; }

/* Convert */
.btn-convert {
    background: linear-gradient(135deg, #e67e22, #d35400); color: white;
    padding: 16px 48px; border-radius: 30px; font-weight: 700; font-size: 1.05rem;
    border: none; box-shadow: 0 4px 20px rgba(230,126,34,0.35); transition: all 0.3s ease;
}
.btn-convert:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(230,126,34,0.45); color: white; }

/* Progress */
.progress-area { padding: 40px 20px; }
.spinner-wrapper { position: relative; width: 100px; height: 100px; margin: 0 auto 24px; }
.spinner {
    width: 100px; height: 100px; border: 4px solid var(--gray-200);
    border-top-color: #e67e22; border-radius: 50%; animation: spin 1s linear infinite;
}
.spinner-wrapper > i {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; color: #e67e22;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-area h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.progress-area #progressText { color: var(--gray-600); margin-bottom: 20px; }
.progress-bar-wrapper { max-width: 500px; margin: 0 auto; }
.progress-bar-wrapper .progress { height: 12px; border-radius: 10px; background: var(--gray-200); }
.progress-bar-wrapper .progress-bar {
    background: linear-gradient(90deg, #e67e22, #f1c40f); border-radius: 10px;
    transition: width 0.3s ease; display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: white;
}
.progress-hint { margin-top: 16px; font-size: 0.82rem; color: var(--gray-500); }

/* Download */
.download-area { padding: 40px 20px; }
.download-icon { font-size: 4rem; color: #2ecc71; margin-bottom: 20px; }
.download-area h3 { font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.download-area > p { color: var(--gray-600); margin-bottom: 24px; }
.btn-download {
    background: linear-gradient(135deg, #2ecc71, #27ae60); color: white;
    padding: 16px 40px; border-radius: 30px; font-weight: 700; font-size: 1.05rem;
    display: inline-flex; align-items: center; transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(46,204,113,0.35);
}
.btn-download:hover { color: white; transform: translateY(-2px); }
.download-info { margin-top: 24px; }
.countdown-wrapper { font-size: 0.95rem; color: var(--gray-700); margin-bottom: 8px; }
.countdown-wrapper strong { color: var(--primary); font-size: 1.1rem; font-family: monospace; }
.download-warning { font-size: 0.82rem; color: var(--gray-500); }
.download-warning i { color: #f39c12; }

/* Error */
.error-area { padding: 40px 20px; }
.error-icon { font-size: 4rem; color: var(--primary); margin-bottom: 20px; }

/* How-to / FAQ */
.tool-howto { padding: 60px 0; background: var(--gray-100); }
.tool-howto h2 { font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.howto-step { text-align: center; padding: 24px; }
.howto-number {
    width: 48px; height: 48px; background: #e67e22; color: white; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
}
.howto-step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.howto-step p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

.tool-faq { padding: 60px 0; }
.tool-faq h2 { font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.tool-faq .accordion-item { border: 1px solid var(--gray-200); border-radius: 10px !important; margin-bottom: 10px; }
.tool-faq .accordion-button { font-weight: 600; font-size: 0.95rem; color: var(--dark); }
.tool-faq .accordion-button:not(.collapsed) { background: rgba(230,126,34,0.05); color: #e67e22; }
.tool-faq .accordion-button:focus { box-shadow: none; }
.tool-faq .accordion-body { font-size: 0.9rem; color: var(--gray-600); line-height: 1.7; }

@media (max-width: 767.98px) {
    .workspace-card { padding: 24px 16px; }
    .upload-zone { padding: 40px 20px; }
    .mode-options { flex-direction: column; }
    .mode-card { min-width: auto; }
    .btn-convert { width: 100%; }
    .tool-header h1 { font-size: 1.5rem; }
}
