/* public/assets/css/tools/dev/user-agent.css */
.ua-workspace {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 32px;
}

.ua-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ua-section-title h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-main);
}

/* 输入区域 */
.ua-input-wrapper {
    margin-bottom: 32px;
    background: var(--bg-body);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.ua-textarea {
    width: 100%;
    background: rgba(var(--primary-rgb, 0, 102, 204), 0.03);
    border: 2px dashed rgba(var(--primary-rgb, 0, 102, 204), 0.3);
    border-radius: 8px;
    padding: 16px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 1rem;
    color: var(--primary-color);
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
}

.ua-textarea:focus {
    border-style: solid;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb, 0, 102, 204), 0.1);
}

.ua-input-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

/* 按钮通用 */
.ua-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ua-btn-outline {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.ua-btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.ua-btn-primary {
    padding: 10px 24px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 0, 102, 204), 0.2);
}
.ua-btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

/* 6宫格解析结果网格 */
.ua-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.ua-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s;
}

.ua-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--primary-color);
}

.ua-card-icon { font-size: 2rem; margin-bottom: 4px; }
.ua-card-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.ua-card-value { font-size: 1.2rem; font-weight: 700; color: var(--text-main); word-break: break-word; }
.ua-card-sub { font-size: 0.9rem; color: var(--text-muted); }

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

/* 黑夜模式 */
[data-theme="dark"] .ua-input-wrapper { background: #0f172a; }
[data-theme="dark"] .ua-textarea { background: rgba(96, 165, 250, 0.05); border-color: rgba(96, 165, 250, 0.3); color: #60a5fa; }
[data-theme="dark"] .ua-textarea:focus { background: rgba(96, 165, 250, 0.1); }
[data-theme="dark"] .ua-card { background: #1e293b; border-color: #334155; }