/* STREAMPAD REFERENCE LOCK - Part 3: Topbar, Toolbar, Board */

/* === TOPBAR === */
.dashboard-server-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.01)),
    rgba(14,18,30,0.98);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 18px 40px rgba(0,0,0,0.28);
  flex-shrink: 0;
}

.server-inline { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #EDF1FF;
  background: transparent;
  padding: 0;
  border: none;
}

.status-pill strong { color: #20DF74; }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30DC7A;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(32,223,116,0.14), 0 0 12px rgba(32,223,116,0.20);
}

.status-dot-offline {
  background: #FB7185;
  box-shadow: 0 0 0 3px rgba(251,113,133,0.16), 0 0 12px rgba(251,113,133,0.20);
}

.server-inline .muted-text { color: #a5afc4; font-size: 12px; font-weight: 600; }

.dashboard-server-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.top-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  color: #EEF2FF;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, transform 120ms ease;
}

.top-action-btn:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }

.top-action-btn .btn-icon { width: 14px; height: 14px; flex-shrink: 0; }

.dashboard-server-bar .icon-only-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  color: #EEF2FF;
  font: inherit;
  cursor: pointer;
  transition: background 150ms ease;
}

.dashboard-server-bar .icon-only-btn .btn-icon { width: 16px; height: 16px; }

.dashboard-server-bar .icon-only-btn:hover { background: rgba(255,255,255,0.08); }

#settings-btn { margin-left: 6px; }
#settings-btn::before { left: -7px; height: 20px; background: rgba(255,255,255,0.09); }

.danger-btn {
  background: rgba(255,45,141,0.12) !important;
  border-color: rgba(255,45,141,0.30) !important;
  color: #FF70BD !important;
}
.danger-btn:hover { background: rgba(255,45,141,0.18) !important; }

/* === TOOLBAR === */
.dashboard-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.026), rgba(255,255,255,0.01)),
    rgba(14,18,30,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 16px 40px rgba(0,0,0,0.28);
  flex-shrink: 0;
}

.search-shell {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10,9,20,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.018);
  cursor: text;
}

.search-shell-icon { width: 16px; height: 16px; color: #8c86a5; flex-shrink: 0; }

.search-shell input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #EEF2FF;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.search-shell input::placeholder { color: #9CA3AF; }

.shortcut-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: #c4bddb;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.toolbar-select-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}

.toolbar-select-group .label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f88aa;
  margin: 0;
}

.toolbar-select-group select {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(45deg, transparent 50%, #c8c2db 50%),
    linear-gradient(135deg, #c8c2db 50%, transparent 50%),
    rgba(10,9,20,0.96);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%, 0 0;
  background-size: 5px 5px, 5px 5px, 100% 100%;
  background-repeat: no-repeat;
  color: #EEF2FF;
  padding: 0 28px 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  appearance: none;
  width: 100%;
}

.toolbar-segment-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toolbar-segment-group .label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8f88aa;
  margin: 0;
}

.compact-segments {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(12,11,22,0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.012);
}

.compact-segments .ghost-btn {
  min-width: 34px;
  min-height: 34px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  color: #d4cee8;
  box-shadow: none;
  font-family: inherit;
  cursor: pointer;
}

.compact-segments .ghost-btn.is-active {
  color: #fff3fb;
  border-color: rgba(255,45,141,0.50);
  background: linear-gradient(180deg, rgba(130,38,96,0.95), rgba(100,28,76,0.95));
  box-shadow: inset 0 0 0 1px rgba(255,150,210,0.12);
}

.toolbar-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #FF2D8D, #FF4DA6);
  color: white;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 28px rgba(255,45,141,0.35), inset 0 1px 0 rgba(255,255,255,0.14);
  transition: transform 150ms ease, box-shadow 150ms ease;
  flex-shrink: 0;
  margin-left: auto;
}

.toolbar-add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(255,45,141,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}

.toolbar-add-icon { font-size: 18px; line-height: 1; }

/* === BOARD === */
.dashboard-board {
  position: relative;
  flex: 1;
  min-height: clamp(360px, 55vh, 700px);
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,45,141,0.055), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(87,125,255,0.04), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.022), rgba(255,255,255,0.01)),
    rgba(14,18,30,0.96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 22px 56px rgba(0,0,0,0.34);
  overflow: auto;
}

body.pad-dialog-open .dashboard-board { padding-right: 430px; }

.dashboard-pads-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, var(--pad-column-width, 136px)));
  gap: 14px;
  align-content: start;
  width: 100%;
  position: relative;
  z-index: 1;
  justify-content: start;
}


