/* public/assets/css/tools/text/invisible-character.css */

.invis-workspace {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

@media (max-width: 900px) {
    .invis-workspace {
        grid-template-columns: 1fr;
    }
}

.invis-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.invis-panel-title {
    margin: 0 0 20px 0;
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
}

/* 选项卡列表 */
.invis-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.invis-opt-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.invis-opt-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.invis-opt-content {
    background: var(--bg-body);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.invis-opt-card:hover .invis-opt-content {
    border-color: rgba(var(--primary-rgb, 0, 102, 204), 0.4);
    background: rgba(var(--primary-rgb, 0, 102, 204), 0.02);
}

.invis-opt-card input[type="radio"]:checked + .invis-opt-content {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb, 0, 102, 204), 0.05);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 0, 102, 204), 0.1);
}

.invis-opt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.invis-opt-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-main);
}

.invis-opt-badge {
    font-size: 0.8rem;
    font-family: monospace;
    background: rgba(0,0,0,0.05);
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.invis-opt-card input[type="radio"]:checked + .invis-opt-content .invis-opt-badge {
    background: var(--primary-color);
    color: #fff;
}

.invis-opt-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 魔法复制按钮 */
.invis-btn-magic {
    width: 100%;
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb, 0, 102, 204), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.invis-btn-magic:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(var(--primary-rgb, 0, 102, 204), 0.4);
}

.invis-btn-magic:active {
    transform: translateY(1px);
}

/* 测试沙盒 */
.invis-sandbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 2px dashed rgba(var(--primary-rgb, 0, 102, 204), 0.3);
    border-radius: 12px;
    background: var(--bg-body);
    overflow: hidden;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.invis-sandbox:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 0, 102, 204), 0.1);
}

.invis-textarea {
    flex: 1;
    min-height: 200px;
    width: 100%;
    border: none;
    background: transparent;
    padding: 24px;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-main);
    resize: none;
    outline: none;
}

.invis-status-bar {
    background: rgba(var(--primary-rgb, 0, 102, 204), 0.05);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(var(--primary-rgb, 0, 102, 204), 0.1);
}

.invis-count-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.invis-count-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: monospace;
}

.invis-tip-box {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #fffbeb;
    border-radius: 12px;
    border: 1px solid #fde68a;
}

.invis-tip-icon { font-size: 1.5rem; }
.invis-tip-text { font-size: 0.9rem; color: #d97706; line-height: 1.5; }

/* Toast */
.invis-toast {
    position: fixed; top: 24px; left: 50%; transform: translate(-50%, -20px);
    background: #10b981; color: #fff; padding: 12px 24px; border-radius: 50px;
    font-weight: 600; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    opacity: 0; visibility: hidden; transition: all 0.4s; z-index: 9999;
}
.invis-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

[data-theme="dark"] .invis-tip-box { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }