/* public/assets/css/text/name-generator.css */
.ng-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #0ea5e9; --p-text: #0f172a; width: 100%; max-width: 1200px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.ng-header-main { font-size: 1.5rem; font-weight: 800; color: var(--p-text); margin-bottom: 8px; text-align: center; }
.ng-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* 双栏网格 */
.ng-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media(max-width: 850px) { .ng-editor-grid { grid-template-columns: 1fr; } }

/* 面板通用样式 */
.ng-panel { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; }
.ng-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--p-border); }
.ng-panel-title { font-size: 1rem; font-weight: 700; color: #334155; }
.ng-panel-body { padding: 24px 20px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.ng-panel-footer { padding: 16px 20px; background: #f8fafc; border-top: 1px solid var(--p-border); display: flex; justify-content: flex-end; }

.ng-badge { background: var(--p-primary); color: white; padding: 2px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }

/* 表单组件 */
.ng-form-group { display: flex; flex-direction: column; gap: 8px; }
.ng-label { font-size: 0.95rem; font-weight: 600; color: #475569; border-left: 3px solid var(--p-primary); padding-left: 8px; }

.ng-input { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; color: #1e293b; background: #ffffff; outline: none; transition: 0.2s; box-sizing: border-box; }
.ng-input:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1); }

/* 单选框组优化 */
.ng-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.ng-radio-label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #334155; cursor: pointer; background: #f1f5f9; padding: 8px 16px; border-radius: 8px; border: 1px solid transparent; transition: 0.2s; }
.ng-radio-label:hover { background: #e2e8f0; }
.ng-radio-label:has(input:checked) { background: #f0f9ff; border-color: var(--p-primary); color: var(--p-primary); font-weight: 600; }
.ng-radio-label input[type="radio"] { display: none; }

/* 文本输出区 */
.ng-textarea { flex: 1; min-height: 300px; width: 100%; border: none; padding: 20px; font-size: 1rem; line-height: 1.8; color: #1e293b; outline: none; resize: none; background: #ffffff; box-sizing: border-box; font-family: ui-monospace, monospace; }

/* 按钮 */
.ng-btn-primary, .ng-btn-success { padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: 0.2s; display: flex; align-items: center; gap: 8px; justify-content: center; width: 100%; }
.ng-btn-primary { background: var(--p-primary); color: white; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); }
.ng-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.ng-btn-success { background: #10b981; color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); width: auto; }
.ng-btn-success:hover:not(:disabled) { background: #059669; transform: translateY(-1px); }
.ng-btn-success:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }

/* ================= 黑夜模式 ================= */
[data-theme="dark"] .ng-tool-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .ng-header-main { color: #f8fafc; }
[data-theme="dark"] .ng-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .ng-panel-header, [data-theme="dark"] .ng-panel-footer { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .ng-panel-title { color: #cbd5e1; }
[data-theme="dark"] .ng-label { color: #cbd5e1; }
[data-theme="dark"] .ng-input { background: #020617; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .ng-textarea { background: #0f172a; color: #f8fafc; }
[data-theme="dark"] .ng-radio-label { background: #1e293b; color: #94a3b8; border-color: #334155; }
[data-theme="dark"] .ng-radio-label:hover { background: #334155; }
[data-theme="dark"] .ng-radio-label:has(input:checked) { background: rgba(14, 165, 233, 0.1); border-color: var(--p-primary); color: #38bdf8; }
[data-theme="dark"] .ng-btn-success:disabled { background: #334155; color: #64748b; }