/* PDF to Image Converter - Styles */

.pdf-frontend-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.pdf-header {
    text-align: center;
    margin-bottom: 40px;
}

.pdf-header h1 {
    font-size: 32px;
    color: #1e293b;
    margin-bottom: 10px;
}

.pdf-header p {
    font-size: 16px;
    color: #64748b;
}

/* Mode Selector */
.pdf-mode-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.pdf-mode-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-mode-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
}

.pdf-mode-btn.active {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Upload Area */
.pdf-upload-area {
    border: 3px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.pdf-upload-area:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

.pdf-upload-area.drag-over {
    border-color: #6366f1;
    background: #eef2ff;
    transform: scale(1.02);
}

.pdf-upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.pdf-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.pdf-upload-subtext {
    font-size: 14px;
    color: #64748b;
}

.pdf-upload-area input[type="file"] {
    display: none;
}

/* Options */
.pdf-options {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pdf-option-group {
    margin-bottom: 15px;
}

.pdf-option-group:last-child {
    margin-bottom: 0;
}

.pdf-option-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.pdf-option-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
}

/* File List */
.pdf-file-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pdf-file-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.pdf-file-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pdf-file-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 5px 0;
    word-break: break-word;
}

.pdf-file-meta {
    font-size: 12px;
    color: #64748b;
}

.pdf-file-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.pdf-file-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.pdf-status-waiting {
    background: #f1f5f9;
    color: #475569;
}

.pdf-status-converting {
    background: #dbeafe;
    color: #1e40af;
}

.pdf-status-done {
    background: #dcfce7;
    color: #166534;
}

.pdf-status-error {
    background: #fee2e2;
    color: #991b1b;
}

/* Drag Handle */
.pdf-drag-handle {
    cursor: move;
    color: #94a3b8;
    font-size: 18px;
    margin-right: 10px;
}

/* Actions */
.pdf-actions {
    text-align: center;
}

.pdf-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pdf-btn-primary {
    background: #6366f1;
    color: white;
}

.pdf-btn-primary:hover {
    background: #4f46e5;
}

.pdf-btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Result */
.pdf-result {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
}

.pdf-result-link {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
}

.pdf-result-link:hover {
    background: #16a34a;
}

/* Sortable Placeholder */
.pdf-sortable-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
}