/* QCS Platform — light theme overrides + settings cog widget. */

body.theme-light {
  --bg:             #f6f7f8;
  --bg-raised:      #ffffff;
  --bg-surface:     #fafbfc;
  --bg-input:       #ffffff;
  --bg-hover:       #eef0f2;
  --sidebar-bg:     #f0f1f3;
  --sidebar-hover:  #e6e8eb;
  --sidebar-active: #dde1e6;

  --text:           #14161a;
  --text-secondary: #2c333d;
  --text-muted:     #6b7480;

  --border:         rgba(0, 0, 0, 0.08);
  --border-strong:  rgba(0, 0, 0, 0.16);

  --accent-glow:        rgba(67, 160, 100, 0.10);
  --accent-glow-strong: rgba(67, 160, 100, 0.20);
  --accent:         #43a064;
  --accent-bright:  #2e8c54;
  --accent-dim:     #c5e6d3;
  --accent-muted:   #5da881;
  --accent-light:   #7cc093;
}

/* Settings cog (floating bottom-right) */
#qcs-cog {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 18px;
  z-index: 60;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  transition: all .15s;
}
#qcs-cog:hover { color: var(--accent); border-color: var(--accent); transform: rotate(60deg); }

.qcs-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.qcs-modal {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 24px 28px;
  width: 380px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  color: var(--text);
}
.qcs-modal h3 {
  font-size: 15px; font-weight: 700; margin: 0 0 16px;
  color: var(--text);
}
.qcs-row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.qcs-row label { font-size: 12px; color: var(--text-muted); }
.qcs-toggle-group { display: flex; gap: 6px; }
.qcs-tbtn {
  flex: 1; padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition: all .15s;
}
.qcs-tbtn:hover { background: var(--bg-hover); }
.qcs-tbtn.active {
  background: var(--accent); color: #0d0d0d; border-color: var(--accent);
  font-weight: 600;
}
#qcs-scale-input {
  width: 100%; cursor: pointer;
  accent-color: var(--accent);
}
#qcs-scale-val { color: var(--accent); font-family: monospace; }
.qcs-check {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px !important; color: var(--text) !important;
}
.qcs-check input { accent-color: var(--accent); }
.qcs-actions {
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.qcs-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.qcs-link:hover { text-decoration: underline; }
.qcs-close {
  padding: 7px 16px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}
.qcs-close:hover { background: var(--bg-hover); }
