/* 文本去除空行工具 - 专用样式 */

/* 文本处理区域头部 */
.text-processor-area {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.processor-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.processor-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* 处理选项 */
.processing-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.option-group {
    display: flex;
    align-items: center;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.option-label:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.option-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

.option-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

/* 文本处理容器 */
.text-processing-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* 文本面板样式 */
.text-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.text-panel:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.input-panel {
    border-left: 4px solid #10b981;
}

.output-panel {
    border-left: 4px solid #f59e0b;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
}

.panel-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-actions {
    display: flex;
    gap: 0.75rem;
}

.panel-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* 文本区域样式 */
.text-area {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 1.5rem;
    resize: vertical;
    min-height: 300px;
    color: #374151;
}

.text-area:focus {
    outline: none;
    background: rgba(99, 102, 241, 0.02);
}

.text-area::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #6b7280;
    gap: 1rem;
}

.text-stats {
    font-weight: 500;
}

.processing-result {
    color: #059669;
    font-weight: 600;
}

/* 处理操作区域 */
.processing-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border-radius: 16px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 160px;
}

.btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-large span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .text-processor-area {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .processor-title {
        font-size: 1.4rem;
    }

    .processing-options {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .option-label {
        padding: 0.5rem 0.75rem;
    }

    .processing-actions {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .btn-large {
        min-width: auto;
        width: 100%;
        padding: 1rem 2rem;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .panel-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .text-area {
        font-size: 0.85rem;
        min-height: 250px;
    }

    .panel-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}