/* Text Cleaner & Filter - Modern SaaS UI */
.tcf-tool-wrapper {
    max-width: 920px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tcf-tool-wrapper.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tcf-header {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.tcf-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.tcf-tool {
    padding: 40px;
}

.tcf-section {
    margin-bottom: 32px;
}

.tcf-input-section,
.tcf-output-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.tcf-tool-wrapper.dark-mode .tcf-input-section,
.tcf-tool-wrapper.dark-mode .tcf-output-section {
    background: #1e2937;
    border-color: #334155;
}

.tcf-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e2937;
}

.tcf-tool-wrapper.dark-mode .tcf-label {
    color: #e2e8f0;
}

.tcf-textarea {
    width: 100%;
    min-height: 260px;
    resize: vertical;
    padding: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    font-family: ui-monospace, monospace;
    transition: border 0.2s;
}

.tcf-textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.tcf-counters {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

.tcf-tool-wrapper.dark-mode .tcf-counters {
    color: #94a3b8;
}

.tcf-options {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.tcf-tool-wrapper.dark-mode .tcf-options {
    background: #1e2937;
    border-color: #334155;
}

.tcf-options label {
    display: block;
    margin: 14px 0;
    font-size: 15px;
    cursor: pointer;
}

.tcf-options input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #3b82f6;
}

.tcf-options input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 6px;
}

.tcf-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tcf-btn-primary {
    background: #3b82f6;
    color: white;
}

.tcf-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.tcf-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.tcf-tool-wrapper.dark-mode .tcf-btn-secondary {
    background: #334155;
    color: #cbd5e1;
}

.tcf-output-wrapper {
    position: relative;
}

.tcf-output-box {
    width: 100%;
    min-height: 260px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    font-family: ui-monospace, monospace;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-y: auto;
    max-height: 380px;
    resize: none;
}

.tcf-tool-wrapper.dark-mode .tcf-output-box {
    background: #1e2937;
    border-color: #475569;
    color: #e2e8f0;
}

.tcf-output-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tcf-output-actions .tcf-btn {
    flex: 1;
    justify-content: center;
}

.tcf-seo-content {
    padding: 40px;
    background: #f8fafc;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    font-size: 15.5px;
    line-height: 1.75;
    color: #334155;
}

.tcf-tool-wrapper.dark-mode .tcf-seo-content {
    background: #1e2937;
    color: #cbd5e1;
    border-top-color: #334155;
}

.tcf-seo-content h2 {
    font-size: 24px;
    margin-top: 42px;
    margin-bottom: 16px;
    color: #1e2937;
}

.tcf-tool-wrapper.dark-mode .tcf-seo-content h2 {
    color: #e2e8f0;
}

.tcf-seo-content ul, .tcf-seo-content ol {
    padding-left: 22px;
}

@media (max-width: 768px) {
    .tcf-tool {
        padding: 24px 20px;
    }
    .tcf-header {
        padding: 24px 20px;
    }
}