/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0b141a;
  color: #e9edef;
  font-size: 14px;
}

/* ===== App Layout (3 columns) ===== */
.app {
  display: grid;
  grid-template-columns: 320px 1fr 0.75fr;
  grid-template-rows: 100vh;
  height: 100vh;
  min-width: 1200px;
  overflow: hidden;
}

/* ===== Left Panel — Chat List ===== */
.chat-list-panel {
  background: #111b21;
  border-right: 1px solid #2a3942;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.chat-list-header {
  background: #202c33;
  color: #e9edef;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.chat-list-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.header-user {
  font-size: 12px;
  opacity: 0.7;
  cursor: pointer;
  color: #8696a0;
}

.header-user:hover { opacity: 1; color: #e9edef; }

.search-box {
  padding: 8px 12px;
  background: #111b21;
}

.search-box input {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: #202c33;
  color: #e9edef;
  font-size: 13px;
  outline: none;
}

.search-box input::placeholder { color: #8696a0; }

.chat-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* Chat item */
.chat-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #222e35;
  transition: background 0.15s;
}

.chat-item:hover { background: #202c33; }
.chat-item.active { background: #2a3942; }

.chat-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2a3942;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #e9edef;
  font-weight: 600;
  flex-shrink: 0;
  margin-right: 12px;
}

.channel-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  border: 2px solid #111b21;
}

.badge-telegram { background: #0088cc; }
.badge-whatsapp { background: #00a884; }
.badge-max { background: #7c3aed; }

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-info-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.chat-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e9edef;
}

.chat-phone {
  font-size: 12px;
  color: #8696a0;
  margin-left: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.chat-time {
  font-size: 12px;
  color: #8696a0;
  flex-shrink: 0;
  margin-left: 8px;
}

.chat-last-msg {
  font-size: 13px;
  color: #8696a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-unread {
  background: #00a884;
  color: #111b21;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ===== Center Panel — Messages ===== */
.chat-panel {
  display: flex;
  flex-direction: column;
  background: #0b141a;
  position: relative;
  border-right: 1px solid #2a3942;
  overflow: hidden;
  min-height: 0;
}

.chat-panel-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8696a0;
  font-size: 16px;
}

.chat-header {
  background: #202c33;
  color: #e9edef;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid #2a3942;
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chat-header-right {
  flex-shrink: 0;
  margin-left: 12px;
}

.chat-header-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.chat-header-channel {
  font-size: 12px;
  color: #8696a0;
  white-space: nowrap;
}

/* Wait timer */
.wait-timer {
  font-size: 13px;
  color: #f39c12;
  font-weight: 500;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(243, 156, 18, 0.1);
}
.wait-timer.urgent { color: #e74c3c; background: rgba(231, 76, 60, 0.1); }

/* Favorite button */
.favorite-btn {
  background: none;
  border: none;
  color: #8696a0;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.favorite-btn.is-favorite { color: #f1c40f; }
.favorite-btn:hover { color: #f1c40f; }

/* Message delivery ticks */
.ticks { margin-left: 4px; font-size: 13px; font-weight: 700; letter-spacing: -3px; }
.ticks-sent { color: #667781; }
.ticks-delivered { color: #8696a0; }
.ticks-read { color: #53bdeb; text-shadow: 0 0 4px rgba(83, 189, 235, 0.6); }
.ticks-failed { color: #e74c3c; text-shadow: 0 0 4px rgba(231, 76, 60, 0.4); cursor: pointer; }
.ack-btn { cursor: pointer; padding: 4px 8px; margin: -4px -4px; border-radius: 4px; display: inline-block; user-select: none; -webkit-user-select: none; }
.ack-btn:hover { text-shadow: 0 0 8px rgba(134, 150, 160, 0.8); transform: scale(1.3); background: rgba(255,255,255,0.1); }

/* Favorite star in chat list */
.chat-fav-star { color: #f1c40f; margin-right: 4px; font-size: 13px; }

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 40px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Message bubble */
.message {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  position: relative;
  word-wrap: break-word;
  line-height: 1.4;
}

.message-in {
  background: #202c33;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.message-out {
  background: #005c4b;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.message-admin {
  background: #1a3a5c;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.message-system {
  background: #2a2a3a;
  align-self: flex-end;
  border-top-right-radius: 0;
  border: 1px solid #444;
  max-width: 70%;
  opacity: 0.9;
}

.message-sender {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 2px;
}

.message-sender.liza { color: #00a884; }
.message-sender.admin { color: #53bdeb; }
.message-sender.client { color: #e9a537; }
.message-sender.system { color: #9e9e9e; }

.message-text {
  font-size: 14px;
  color: #e9edef;
  white-space: pre-wrap;
}

.message-time {
  font-size: 11px;
  color: #8696a0;
  text-align: right;
  margin-top: 2px;
}

/* Date separator */
.date-separator {
  text-align: center;
  margin: 16px 0 8px;
}

.date-separator span {
  background: #182229;
  color: #8696a0;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
}

/* Historical messages */
.message.historical {
  opacity: 0.7;
}

.history-separator {
  text-align: center;
  margin: 16px 0 8px;
}

.history-separator span {
  background: #1a3a2a;
  color: #6aaf8a;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
}

/* Input area */
.input-area {
  display: flex;
  align-items: flex-end;
  padding: 8px 16px;
  background: #202c33;
  gap: 8px;
}

.input-area textarea {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 18px;
  font-size: 14px;
  outline: none;
  background: #2a3942;
  color: #e9edef;
  font-family: inherit;
  resize: none;
  line-height: 1.4;
  max-height: 120px;
  overflow-y: auto;
  height: 40px;
}

.input-area textarea::placeholder { color: #8696a0; }

.send-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #00a884;
  color: #111b21;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.send-btn:hover { background: #06cf9c; }
.send-btn:disabled { background: #2a3942; color: #8696a0; cursor: not-allowed; }

/* ===== Right Panel — Info (all sections visible) ===== */
.info-panel {
  background: #111b21;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.info-panel-header {
  background: #202c33;
  color: #e9edef;
  padding: 12px 16px;
  min-height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #2a3942;
}

.info-panel-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.info-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  min-height: 0;
}

/* Info section */
.info-section {
  padding: 12px 16px;
  border-bottom: 1px solid #2a3942;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: #00a884;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-btn {
  background: none;
  border: 1px solid #444;
  color: #8696a0;
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.refresh-btn:hover { color: #00a884; border-color: #00a884; }
.refresh-btn:disabled { opacity: 0.5; cursor: wait; }
.refresh-btn.spinning { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toggles grid */
.toggles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #1a2730;
  border-radius: 8px;
}

.toggle-card-name {
  font-size: 13px;
  color: #e9edef;
}

/* iOS-style toggle */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #374045;
  border-radius: 24px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #8696a0;
  left: 3px;
  bottom: 3px;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider { background: #00a884; }
.toggle input:checked + .toggle-slider::before { background: #111b21; transform: translateX(20px); }

/* Client settings */
.client-settings {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #2a3942;
}

.settings-header {
  font-size: 11px;
  font-weight: 600;
  color: #8696a0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}

.setting-row span {
  font-size: 13px;
  color: #e9edef;
}

/* Client info card */
.client-card { margin-bottom: 0; }

.client-field {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid #222e35;
}

.client-field:last-child { border-bottom: none; }

.client-field .label { color: #8696a0; }
.client-field .value { color: #e9edef; }

/* Visit history */
.visit-item {
  padding: 8px 0;
  border-bottom: 1px solid #222e35;
  font-size: 13px;
}

.visit-item:last-child { border-bottom: none; }

.visit-date {
  font-weight: 600;
  color: #00a884;
}

.visit-service { color: #e9edef; }

.visit-staff {
  color: #8696a0;
  font-size: 12px;
}

.visit-price {
  font-weight: 600;
  float: right;
  color: #e9edef;
}

/* Notes */
.notes-text {
  font-size: 13px;
  color: #8696a0;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Loading / empty state */
.loading {
  text-align: center;
  padding: 16px;
  color: #8696a0;
  font-size: 13px;
}

/* ===== Escalation blink ===== */
@keyframes escalation-blink {
  0%, 100% { border-color: #e74c3c; box-shadow: 0 0 8px rgba(231, 76, 60, 0.6); }
  50% { border-color: transparent; box-shadow: none; }
}

.chat-item.escalated {
  border: 2px solid #e74c3c;
  animation: escalation-blink 1.2s ease-in-out infinite;
  border-radius: 8px;
  margin: 2px 4px;
}

/* ===== Header toggle inline ===== */
.info-panel-header {
  justify-content: space-between;
}
.toggle-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toggle-label-inline {
  font-size: 12px;
  color: #8696a0;
  margin-right: 6px;
  white-space: nowrap;
}

/* ===== Client info compact (2 columns) ===== */
.client-info-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}
.client-info-compact .client-field { border-bottom: none; padding: 4px 0; }
.client-field-full { grid-column: 1 / -1; }

/* ===== Client settings 2 columns ===== */
.client-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 24px;
}
.client-settings-grid .setting-row { padding: 3px 0; }

/* ===== Tabs (AI / Visits) ===== */
.tabbed-section { padding: 0 !important; border-bottom: none !important; flex: 1; display: flex; flex-direction: column; min-height: 200px; }
.tab-header {
  display: flex;
  border-bottom: 1px solid #2a3942;
  background: #1a2730;
}
.tab-btn {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  color: #8696a0;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.tab-btn:hover { color: #e9edef; }
.tab-btn.active { color: #00a884; border-bottom-color: #00a884; }
.tab-content { padding: 12px 16px; flex: 1; overflow-y: auto; }

/* ===== Suggestion area ===== */
.suggestion-empty { text-align: center; color: #8696a0; font-size: 13px; padding: 20px 0; }
.suggestion-loading { text-align: center; color: #8696a0; font-size: 13px; padding: 20px 0; }

.suggestion-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.suggestion-label {
  font-size: 12px;
  font-weight: 600;
  color: #00a884;
  text-transform: uppercase;
}
.suggestion-intent {
  font-size: 11px;
  color: #8696a0;
  background: #202c33;
  padding: 2px 8px;
  border-radius: 4px;
}
.suggestion-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #8696a0;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.suggestion-close:hover { color: #e9edef; }

.suggestion-text {
  width: 100%;
  background: #202c33;
  color: #e9edef;
  border: 1px solid #2a3942;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
  outline: none;
  line-height: 1.4;
}
.suggestion-text:focus { border-color: #00a884; }

.suggestion-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}
.suggestion-btn {
  padding: 7px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}
.suggestion-btn:hover { opacity: 0.85; }
.suggestion-btn.insert { background: #2a3942; color: #e9edef; }
.suggestion-btn.send { background: #00a884; color: #111b21; }

/* Suggestion edited state */
#suggestionArea.edited .suggestion-text { border-color: #f39c12; }
#suggestionArea.edited .suggestion-label { color: #f39c12; }

/* ===== Needs response indicator with pulse ===== */
.chat-item.needs-response {
  border-left: 3px solid #f39c12;
  animation: pulse-unanswered 0.8s ease-in-out infinite;
}
@keyframes pulse-unanswered {
  0%, 100% { background-color: rgba(243, 156, 18, 0.05); }
  50% { background-color: rgba(243, 156, 18, 0.2); }
}
.chat-item.needs-response:hover { animation: none; }

/* ===== Undelivered message indicator (red right border) ===== */
.chat-item.undelivered {
  border-right: 3px solid #e74c3c;
}
.chat-item.needs-response.undelivered {
  border-left: 3px solid #f39c12;
  border-right: 3px solid #e74c3c;
}

/* ===== Chat Filters ===== */
.chat-filters {
  display: flex;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid #2a3942;
}
.filter-btn {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #2a3942;
  border-radius: 16px;
  background: transparent;
  color: #8696a0;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active {
  background: #00a884;
  color: #fff;
  border-color: #00a884;
}
.filter-btn:hover:not(.active) { border-color: #00a884; color: #e0e0e0; }

/* ===== Mark Answered Button ===== */
.chat-header-actions { display: flex; align-items: center; gap: 10px; }
.mark-answered-btn {
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.mark-answered-btn.answered {
  border: 1px solid #00a884;
  background: #00a884;
  color: #fff;
}
.mark-answered-btn.answered:hover { background: #00795c; border-color: #00795c; }
.mark-answered-btn.unanswered {
  border: 1px solid #888;
  background: transparent;
  color: #888;
  animation: pulse-btn 1s ease-in-out infinite;
}
.mark-answered-btn.unanswered:hover { background: #444; color: #fff; animation: none; }
@keyframes pulse-btn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.resolve-escalation-btn {
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid #e74c3c;
  background: #e74c3c;
  color: #fff;
  animation: pulse-btn 1s ease-in-out infinite;
}
.resolve-escalation-btn:hover { background: #c0392b; border-color: #c0392b; animation: none; }

/* ===== Quick Replies ===== */
.quick-replies-wrapper {
  position: relative;
  flex-shrink: 0;
}

.quick-replies-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #2a3942;
  color: #e9edef;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.quick-replies-btn:hover {
  background: #3a4a54;
  color: #f39c12;
}

.quick-replies-dropdown {
  position: absolute;
  bottom: 48px;
  left: 0;
  width: 320px;
  max-height: 420px;
  background: #1a2730;
  border: 1px solid #2a3942;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

.qr-list {
  flex: 1;
  overflow-y: auto;
  max-height: 220px;
  padding: 4px 0;
}

.qr-empty {
  text-align: center;
  color: #8696a0;
  font-size: 13px;
  padding: 16px;
}

.qr-item {
  position: relative;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #222e35;
}

.qr-item:last-child { border-bottom: none; }
.qr-item:hover { background: #202c33; }

.qr-item-title {
  font-size: 13px;
  color: #e9edef;
  font-weight: 500;
}

.qr-tooltip {
  display: none;
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  max-height: 180px;
  overflow-y: auto;
  background: #202c33;
  color: #e9edef;
  border: 1px solid #2a3942;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 110;
}

.qr-item:hover .qr-tooltip { display: block; }

/* Manage section */
.qr-manage-section {
  border-top: 1px solid #2a3942;
}

.qr-manage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  color: #8696a0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.qr-manage-header:hover { color: #e9edef; }

.qr-manage-arrow {
  font-size: 10px;
}

.qr-manage-body {
  padding: 0 14px 10px;
  max-height: 240px;
  overflow-y: auto;
}

.qr-manage-list {
  margin-bottom: 8px;
}

.qr-manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #222e35;
}

.qr-manage-item:last-child { border-bottom: none; }

.qr-manage-title {
  font-size: 13px;
  color: #e9edef;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-manage-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.qr-manage-edit, .qr-manage-delete {
  background: none;
  border: 1px solid #374045;
  color: #8696a0;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color 0.2s, border-color 0.2s;
}

.qr-manage-edit:hover { color: #00a884; border-color: #00a884; }
.qr-manage-delete:hover { color: #e74c3c; border-color: #e74c3c; }

.qr-add-btn {
  width: 100%;
  padding: 8px;
  background: #202c33;
  border: 1px dashed #374045;
  border-radius: 6px;
  color: #8696a0;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.qr-add-btn:hover { color: #00a884; border-color: #00a884; }

/* Quick reply form */
.qr-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qr-form-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #374045;
  border-radius: 6px;
  background: #0b141a;
  color: #e9edef;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.qr-form-input:focus { border-color: #00a884; }

.qr-form-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #374045;
  border-radius: 6px;
  background: #0b141a;
  color: #e9edef;
  font-size: 13px;
  outline: none;
  resize: vertical;
  min-height: 50px;
  font-family: inherit;
  line-height: 1.4;
}

.qr-form-textarea:focus { border-color: #00a884; }

.qr-form-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.qr-form-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.2s;
}

.qr-form-btn:hover { opacity: 0.85; }
.qr-form-btn.save { background: #00a884; color: #111b21; }
.qr-form-btn.cancel { background: #374045; color: #e9edef; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(134, 150, 160, 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(134, 150, 160, 0.65); }
