/* public/assets/css/tools/text/small-text.css */

.smalltext-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 顶部输入框 */
.smalltext-input-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.3s;
}
.smalltext-input-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 0, 102, 204), 0.1);
}

.smalltext-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.smalltext-box-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 700;
}

.smalltext-btn-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
.smalltext-btn-clear:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.smalltext-textarea {
    width: 100%;
    min-height: 120px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-main);
    resize: vertical;
    outline: none;
    transition: all 0.2s;
}

/* 下方卡片网格 */
.smalltext-output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.smalltext-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s;
}
.smalltext-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: rgba(var(--primary-rgb, 0, 102, 204), 0.3);
}

.smalltext-card-header {
    background: var(--bg-surface);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smalltext-card-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 700;
}

.smalltext-btn-copy {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
.smalltext-btn-copy:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.smalltext-out-box {
    padding: 20px 16px;
    min-height: 120px;
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    word-break: break-all;
    flex: 1;
}
.smalltext-out-box:empty::before {
    content: "......";
    color: var(--text-muted);
    opacity: 0.3;
}

/* Toast */
.smalltext-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;
}
.smalltext-toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

[data-theme="dark"] .smalltext-card { background: #0f172a; border-color: #334155; }
[data-theme="dark"] .smalltext-card-header { background: #1e293b; border-color: #334155; }