/* public/assets/css/system/ble-rgb.css */

.rgb-wrapper { padding: 32px; border-radius: var(--radius-lg); position: relative; }
.rgb-header { text-align: center; margin-bottom: 32px; }
.rgb-title { font-size: 2rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; letter-spacing: -0.5px; }
.rgb-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.6; }

.rgb-workspace { max-width: 800px; margin: 0 auto; background: #0f172a; border: 1px solid #1e293b; border-radius: 16px; padding: 24px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); color: #f8fafc; }

/* 顶部操作面板 */
.rgb-control-panel { display: flex; justify-content: space-between; align-items: center; background: #1e293b; padding: 16px 24px; border-radius: 12px; margin-bottom: 32px; border: 1px solid #334155; }
.rgb-device-info { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.1rem; }
.cyber-font { font-family: 'Courier New', Courier, monospace; letter-spacing: 1px; }

.rgb-status-dot { width: 12px; height: 12px; border-radius: 50%; background: #64748b; box-shadow: 0 0 8px rgba(100, 116, 139, 0.5); transition: 0.3s; }
.rgb-status-dot.active { background: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.8); }

.rgb-actions { display: flex; gap: 12px; }
.rgb-btn-primary { padding: 10px 24px; font-weight: 700; background: #3b82f6; color: #fff; border: none; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.rgb-btn-primary:hover { background: #2563eb; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.rgb-btn-outline { padding: 10px 20px; font-weight: 600; background: transparent; color: #94a3b8; border: 1px solid #475569; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.rgb-btn-outline:hover { color: #f8fafc; border-color: #f8fafc; background: rgba(255,255,255,0.05); }
.rgb-btn-danger { padding: 10px 20px; font-weight: 700; background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); border-radius: 8px; cursor: pointer; transition: 0.2s; }
.rgb-btn-danger:hover { background: #ef4444; color: #fff; }

/* 发光球体预览 */
.rgb-preview-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; margin-bottom: 24px; background: #0b1120; border-radius: 16px; border: 1px solid #1e293b; overflow: hidden; }
.rgb-orb { width: 140px; height: 140px; border-radius: 50%; background: #1e293b; box-shadow: 0 0 0 rgba(0,0,0,0); position: relative; transition: all 0.3s ease; }
.rgb-orb-inner { position: absolute; top: 10%; left: 10%; width: 80%; height: 80%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(255,255,255,0)); opacity: 0; transition: opacity 0.3s; }
.rgb-orb.is-on .rgb-orb-inner { opacity: 1; }

.rgb-hex-display { margin-top: 32px; font-size: 1.5rem; font-weight: 800; font-family: monospace; color: #64748b; letter-spacing: 2px; transition: color 0.3s; }

/* 控制台区 */
.rgb-dashboard { background: #1e293b; border-radius: 12px; padding: 24px; border: 1px solid #334155; opacity: 0.5; pointer-events: none; transition: 0.3s; }
.rgb-dashboard.active { opacity: 1; pointer-events: auto; }

.rgb-control-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid #334155; }
.rgb-control-row:last-child { border-bottom: none; padding-bottom: 0; }
.rgb-control-label { font-weight: 700; color: #cbd5e1; font-size: 1.05rem; }

/* 苹果风 Switch 开关 */
.rgb-switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.rgb-switch input { opacity: 0; width: 0; height: 0; }
.rgb-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #475569; transition: .4s; }
.rgb-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .rgb-slider { background-color: #10b981; }
input:checked + .rgb-slider:before { transform: translateX(22px); }
.rgb-slider.round { border-radius: 34px; }
.rgb-slider.round:before { border-radius: 50%; }

/* 原生取色器美化 */
.rgb-color-input { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 60px; height: 40px; background: transparent; border: none; cursor: pointer; padding: 0; }
.rgb-color-input::-webkit-color-swatch-wrapper { padding: 0; }
.rgb-color-input::-webkit-color-swatch { border: 2px solid #475569; border-radius: 8px; box-sizing: border-box; }

/* 亮度滑块美化 */
.rgb-range { -webkit-appearance: none; width: 200px; height: 6px; background: #475569; border-radius: 3px; outline: none; }
.rgb-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 0 10px rgba(0,0,0,0.5); }

/* 预设按钮 */
.rgb-preset-group { display: flex; gap: 12px; }
.rgb-preset-btn { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #475569; cursor: pointer; transition: 0.2s; }
.rgb-preset-btn:hover { transform: scale(1.1); border-color: #fff; }

.rgb-info-card { background: var(--bg-surface); padding: 24px; border-radius: 16px; border: 1px solid var(--border-color); max-width: 800px; margin: 0 auto; }

@media (max-width: 768px) {
    .rgb-control-panel { flex-direction: column; gap: 16px; align-items: stretch; text-align: center; }
    .rgb-device-info { justify-content: center; }
    .rgb-actions { flex-direction: column; }
    .rgb-control-row { flex-direction: column; align-items: flex-start; gap: 16px; }
    .preset-row { flex-direction: column; align-items: flex-start; }
    .rgb-range { width: 100%; }
}