/* ============================================================
   ABSTRICT · Settings Panel CSS
   ============================================================= */

/* ── Topbar Icon Buttons ────────────────────────────────────── */
.topbar-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius, 8px);
  background: none; border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
  position: relative;
}
.topbar-icon-btn:hover { border-color: var(--text-muted); color: var(--text); }
.topbar-icon-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Lanyard Badge ──────────────────────────────────────────── */
.lanyard-badge {
  gap: 6px; width: auto; padding: 4px 10px 4px 6px;
  font-size: 11px; font-weight: 600;
}
.lanyard-avatar {
  width: 20px; height: 20px; border-radius: 50%;
}
.lanyard-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.lanyard-activity {
  color: var(--text-secondary); max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Notification Badge ─────────────────────────────────────── */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger);
  color: #fff; font-size: 9px; font-weight: 700;
  display: none; align-items: center; justify-content: center;
  line-height: 1;
}

/* ── Settings Modal ─────────────────────────────────────────── */
#settingsOverlay .modal {
  background: var(--bg-card, var(--surface));
  color: var(--text);
}
.settings-modal { max-width: 440px; }
.settings-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0 0 16px; }
.settings-section {
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.settings-section:last-child { border-bottom: none; margin-bottom: 0; }
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 4px 0;
}
.settings-row-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.settings-icon { color: var(--text-muted); flex-shrink: 0; display: flex; }
.settings-row-text { display: flex; flex-direction: column; min-width: 0; }
.settings-row-label { font-size: 13px; font-weight: 600; color: var(--text); }
.settings-row-sub { font-size: 11px; color: var(--text-muted); }
.settings-input {
  padding: 6px 10px; border-radius: 8px;
  background: var(--bg-alt); border: 1px solid var(--border-subtle);
  color: var(--text); font-size: 12px; font-family: var(--mono);
  width: 120px; text-align: right;
}
.settings-input:focus { border-color: var(--accent); outline: none; }
.settings-lanyard-status {
  font-size: 12px; font-weight: 600; padding: 4px 8px;
  border-radius: 6px;
}
.settings-lanyard-status.connected { color: var(--success); background: rgba(34,197,94,.15); }
.settings-lanyard-status.disconnected { color: var(--text-muted); background: var(--bg-alt); }
.settings-lanyard-activity {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; margin: 6px 0;
  background: var(--bg-alt); border-radius: 8px;
  border-left: 3px solid #5865F2;
}
.lanyard-act-name { font-size: 12px; font-weight: 600; color: #5865F2; }
.lanyard-act-detail, .lanyard-act-state { font-size: 11px; color: var(--text-muted); }
.settings-notif-badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: var(--danger);
  color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.settings-notif-badge:empty { display: none; }
.settings-install-btn {
  padding: 6px 14px; border-radius: 8px;
  background: var(--accent); color: #fff; border: none;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: opacity 200ms;
}
.settings-install-btn:hover { opacity: .85; }
.settings-installed {
  font-size: 12px; font-weight: 600; color: var(--success);
  padding: 4px 8px; background: rgba(34,197,94,.15); border-radius: 6px;
}
.settings-version-tag {
  font-size: 10px; font-weight: 700; color: var(--accent);
  padding: 2px 8px; border-radius: 4px;
  background: rgba(99,102,241,.15);
}
.settings-about { margin-top: 8px; }
.settings-about p { font-size: 12px; color: var(--text-muted); margin: 0 0 4px; }
.settings-links a { color: var(--accent); text-decoration: none; font-size: 12px; }
.settings-links a:hover { text-decoration: underline; }

/* ── Notifications Panel ────────────────────────────────────── */
#notifOverlay .modal {
  background: var(--bg-card, var(--surface));
  color: var(--text);
}
.notif-modal { max-width: 440px; }
.notif-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.notif-header h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; }
.notif-clear-btn {
  padding: 4px 10px; border-radius: 6px;
  background: transparent; border: 1px solid var(--border-subtle);
  color: var(--text-muted); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: all 150ms;
}
.notif-clear-btn:hover { border-color: var(--danger); color: var(--danger); }
.notif-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 24px; }
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--bg-alt); transition: background 150ms;
}
.notif-item:hover { background: rgba(99,102,241,.08); }
.notif-item.unread { background: rgba(99,102,241,.1); border-left: 3px solid var(--accent); }
.notif-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.notif-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-body { font-size: 11px; color: var(--text-muted); }
.notif-time { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }

/* ── Contact / Support Form ─────────────────────────────────── */
.contact-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px; padding: 0 14px;
}
.contact-textarea {
  min-height: 120px !important; resize: vertical !important;
  font-family: var(--font) !important;
  line-height: 1.5 !important;
}
.contact-counter {
  text-align: right; font-size: 11px; color: var(--text-muted);
  padding: 2px 14px 0;
}
.settings-links-inline {
  display: flex; gap: 8px;
}
.settings-links-inline a {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--bg-alt); border: 1px solid var(--border-subtle);
  color: var(--text-secondary); font-size: 11px; font-weight: 600;
  text-decoration: none; transition: all 150ms;
}
.settings-links-inline a:hover {
  background: var(--border-subtle); color: var(--text); border-color: var(--border);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .settings-modal, .notif-modal { max-width: 100%; }
  .lanyard-badge .lanyard-activity { display: none; }
  .settings-input { width: 90px; }
}
