/* Plain Text Extractor — tool-specific styles only */

/* Rich text input area */
.rich-input-area {
    min-height: 160px;
    max-height: 320px;
    overflow-y: auto;
    padding: var(--space-md);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    cursor: text;
    outline: none;
    transition: border-color 0.15s ease;
    white-space: pre-wrap;
    word-break: break-word;
}

.rich-input-area:focus {
    border-color: var(--accent-primary, #6366f1);
}

.rich-input-area:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted, #6b7280);
    pointer-events: none;
}

/* Input actions row */
.input-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    flex-wrap: wrap;
}

.stat-item {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Empty state */
.empty-state {
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
}

.empty-state-content {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-muted, #6b7280);
}

.empty-icon {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted, #6b7280);
    background: var(--bg-tertiary, #1f2937);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
}

.empty-state-content p {
    font-size: 14px;
    max-width: 320px;
    line-height: 1.5;
}

/* Options bar */
.options-bar {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

/* Toggle labels */
.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-primary, #6366f1);
}

.toggle-custom {
    /* Placeholder for custom toggle styling if design system provides it */
}

/* Output card */
.output-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.output-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-tertiary, #1f2937);
}

.output-card-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.output-card-actions {
    display: flex;
    gap: var(--space-sm);
}

.output-text {
    padding: var(--space-md);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

/* Pro features section */
.pro-features-section {
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pro-feature-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.pro-feature-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.pro-feature-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.pro-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-primary, #6366f1);
    background: color-mix(in srgb, var(--accent-primary, #6366f1) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-primary, #6366f1) 40%, transparent);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.pro-feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 var(--space-md) 0;
    line-height: 1.5;
}

.pro-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.section-hidden {
    display: none !important;
}

/* Batch upload */
.file-upload-zone {
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    margin-bottom: var(--space-md);
}

.file-upload-zone:hover,
.file-upload-zone.drag-active {
    border-color: var(--accent-primary, #6366f1);
    background: color-mix(in srgb, var(--accent-primary, #6366f1) 5%, transparent);
}

.upload-icon {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted, #6b7280);
    margin-bottom: var(--space-sm);
}

.upload-primary {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.upload-secondary {
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.batch-result {
    padding: var(--space-md);
    background: var(--bg-tertiary, #1f2937);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.batch-result p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Similar tools */
.similar-tools {
    margin-top: var(--space-xxl);
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-secondary);
}

.similar-tools h2 {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.similar-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-md);
    max-width: 960px;
    margin: 0 auto;
}

.similar-tool-card {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.similar-tool-card:hover {
    border-color: var(--accent-primary, #6366f1);
}

.similar-tool-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs) 0;
}

.similar-tool-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Copied feedback */
.button-copy.copied {
    background: var(--success, #10b981) !important;
    color: #fff !important;
}
