/* 代码格式化工具专区共享样式（/code-format/*.html）
   仅放 Tailwind 难以表达的细节：状态指示器、加载条、双栏布局微调、输出区。 */

.cf-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.cf-status-dot.info { background-color: #0ea5e9; }
.cf-status-dot.success { background-color: #10b981; }
.cf-status-dot.error { background-color: #ef4444; }
.cf-status-dot.neutral { background-color: #94a3b8; }
.cf-status-dot.processing {
    animation: cfPulse 1.4s ease-in-out infinite;
}
@keyframes cfPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* 顶部加载进度条 */
.cf-progress {
    height: 3px;
    background: linear-gradient(90deg, #0ea5e9, #3b82f6, #8b5cf6, #0ea5e9);
    background-size: 200% 100%;
    animation: cfShimmer 1.8s linear infinite;
}
@keyframes cfShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* 代码输入/输出区：等宽 + 行高 */
.cf-codearea {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    line-height: 1.6;
    tab-size: 4;
}

/* 拖拽悬浮层 */
.cf-drop-overlay {
    transition: opacity 0.3s ease;
}
.cf-drop-active {
    border-color: #0ea5e9 !important;
    background-color: #f0f9ff !important;
}

/* 卡片悬停光晕（与全站风格一致） */
.cf-card-glow {
    transition: box-shadow 0.3s ease;
}
.cf-card-glow:hover {
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.12), 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* 输出区只读背景区分 */
.cf-output-readonly {
    background: #f8fafc;
}

/* 引擎徽标 */
.cf-engine-badge {
    font-size: 0.7rem;
    letter-spacing: 0.02em;
}
