/* DIGI-GRAFF — styles for the graffiti wall window.
   Loaded after styles.css; the :has rule below re-skins the Win95 window
   content for this app only (same pattern as .dreamnet-root). */

/* Window content override: dark wall background, no padding. */
.window__content:has(.dg-root) {
  background: #181818;
  color: #e8e8e8;
  padding: 0;
  border-color: #333;
}

.dg-root {
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  font-family: Tahoma, Verdana, sans-serif;
  background: #181818;
}

/* Toolbar: classic Win95 silver bar, wrapping on narrow windows. */
.dg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px;
  background: #c0c0c0;
  border-bottom: 2px solid #808080;
  color: #000;
}

.dg-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  border-right: 1px solid #808080;
}

.dg-group:last-child {
  border-right: none;
}

.dg-label {
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}

/* Win95-style push buttons. */
.dg-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 3px 9px;
  background: #c0c0c0;
  color: #000;
  border: 2px outset #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.dg-btn:active,
.dg-btn.is-active {
  border-style: inset;
  background: #a8a8a8;
}

.dg-btn:disabled {
  color: #808080;
  cursor: default;
}

.dg-btn--submit {
  font-weight: bold;
  background: #ff2ea6;
  color: #fff;
  border-color: #ff7ac2;
}

.dg-color {
  width: 32px;
  height: 24px;
  padding: 0;
  border: 1px solid #808080;
  background: #fff;
  cursor: pointer;
}

.dg-range {
  width: 80px;
  vertical-align: middle;
}

.dg-input {
  font-family: inherit;
  font-size: 12px;
  padding: 3px 5px;
  border: 2px inset #ffffff;
  background: #fff;
  color: #000;
}

/* Status line under the toolbar. */
.dg-status {
  font-size: 11px;
  padding: 4px 8px;
  background: #000;
  color: #ff2ea6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Canvas fills the rest of the window. */
.dg-canvas-wrap {
  flex: 1;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  background: #181818;
}

.dg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  image-rendering: pixelated;
}

.dg-hint {
  font-size: 11px;
  padding: 5px 8px;
  background: #c0c0c0;
  color: #333;
  border-top: 2px solid #808080;
}

/* Admin dashboard panel (hidden until Moderate is toggled). */
.dg-admin {
  background: #f0f0f0;
  color: #000;
  border-bottom: 2px solid #808080;
  padding: 6px 8px;
  max-height: 45%;
  overflow-y: auto;
}

.dg-admin-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #ccc;
}

.dg-admin-thumb {
  image-rendering: pixelated;
  border: 1px solid #808080;
  background: #181818;
  flex-shrink: 0;
}

.dg-admin-meta {
  font-size: 11px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
