/* ===============================================================
   Straßenwärter Tool – Dashboard (Design 4 / Modernized v4)
   -------------------------------------------------------------
   Goals:
   - Same information, much cleaner & more "pro".
   - Uses theme tokens from styles/theme.css
   - Blue accent is the primary highlight.
   =============================================================== */

/* Container */
.dash-v11{
  padding: 22px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header */
.dash-v11 .dash-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 2px;
}

.dash-v11 .dash-head .title{
  display:flex;
  flex-direction: column;
  gap: 4px;
}

.dash-v11 .dash-head h2{
  margin:0;
  font-size: 22px;
  letter-spacing: .2px;
}

.dash-v11 .dash-head .sub{
  color: var(--muted-2);
  font-weight: 600;
  font-size: 13px;
}

/* Header actions are inside cards in v2 */

/* Generic card */
.dash-v11 .dcard{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px var(--shadow);
  backdrop-filter: blur(var(--blur));
  overflow: hidden;
}

.dash-v11 .dcard .dcard-head{
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.dash-v11 .dcard .dcard-title{
  margin:0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
}

.dash-v11 .dcard .dcard-body{
  padding: 14px 16px 16px;
}

.dash-v11 .muted{
  color: var(--muted-2);
}

/* Buttons (dashboard-scoped so existing pages keep working) */
.dash-v11 .btn,
.dash-v11 button.btn{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 750;
  cursor:pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dash-v11 .btn:hover{ background: rgba(255,255,255,.10); border-color: var(--border-2); }
.dash-v11 .btn:active{ transform: scale(.99); }

.dash-v11 .btn.primary{
  background: linear-gradient(120deg, rgba(37, 99, 235, .92), rgba(59, 130, 246, .92));
  border-color: rgba(37,99,235,.55);
  box-shadow: 0 10px 22px rgba(37,99,235,.20);
}

/* KPI strip */
.dash-v11 .kpi-strip{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.dash-v11 .kpi{
  padding: 14px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: 0 10px 22px var(--shadow);
}

.dash-v11 .kpi .k-label{ color: var(--muted-2); font-weight: 800; font-size: 12px; letter-spacing: .25px; }
.dash-v11 .kpi .k-value{ margin-top: 6px; font-size: 20px; font-weight: 900; }
.dash-v11 .kpi .k-sub{ margin-top: 2px; color: var(--muted-2); font-size: 12px; font-weight: 650; }

/* Time KPI */
.dash-v11 .kpi .k-time{
  margin-top: 6px;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .4px;
}

/* Weather KPI (nice look) */
.dash-v11 .kpi.weather{
  border-color: rgba(37,99,235,.32);
  background:
    radial-gradient(520px 220px at 75% 0%, rgba(37,99,235,.22), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.dash-v11 .kpi.weather .k-weather{
  margin-top: 6px;
  display:flex;
  gap: 10px;
  align-items: stretch;
  justify-content: space-between;
}

.dash-v11 .kpi.weather .k-weather-left{ min-width: 0; }
.dash-v11 .kpi.weather .k-temp{ font-size: 26px; font-weight: 950; line-height: 1.1; }
.dash-v11 .kpi.weather .k-temp .unit{ font-size: 16px; font-weight: 900; margin-left: 2px; color: var(--muted); }
.dash-v11 .kpi.weather .k-cond{ font-weight: 850; color: var(--text); margin-top: 2px; }
.dash-v11 .kpi.weather .k-loc{ color: var(--muted-2); font-weight: 750; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.dash-v11 .kpi.weather .k-wind{ color: var(--muted-2); font-weight: 650; font-size: 12px; margin-top: 4px; }

.dash-v11 .kpi.weather .k-weather-right{
  position: relative;
  width: 56px;
  display:flex;
  align-items:flex-start;
  justify-content:flex-end;
}

.dash-v11 .kpi.weather .wx-icon{ font-size: 38px; }
.dash-v11 .kpi.weather .wx-glow{
  position:absolute;
  top: 10px;
  right: 2px;
  width: 58px;
  height: 58px;
  filter: blur(18px);
  background: rgba(59,130,246,.35);
  border-radius: 999px;
  pointer-events:none;
}

.dash-v11 .kpi.accent{
  border-color: rgba(37,99,235,.40);
  background: radial-gradient(650px 220px at 20% 0%, rgba(37,99,235,.22), transparent 70%),
              linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

/* Main grid */
.dash-v11 .dash-grid{
  display:grid;
  gap: 16px;
  align-items:start;
}

.dash-v11 .dash-grid.dash-grid-v2{
  grid-template-columns: 0.95fr 1.05fr;
}

.dash-v11 .dash-col{
  display:flex;
  flex-direction:column;
  gap: 16px;
}

/* v2 header layout helpers */
.dash-v11 .dcard-head-flex{ justify-content: space-between; }
.dash-v11 .dcard-head-flex .hint{
  font-size: 12px;
  font-weight: 750;
  max-width: 55%;
  text-align: right;
  line-height: 1.2;
}
.dash-v11 .dhead-actions{ display:flex; align-items:center; gap: 10px; }

/* Reports list */
.dash-v11 .report-list{ display:flex; flex-direction:column; gap: 10px; }

.dash-v11 .report-item{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 14px;
  padding: 12px 12px;
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dash-v11 .report-item .r-date{ font-weight: 900; color: var(--accent); }
.dash-v11 .report-item .r-title{ margin-top: 2px; font-weight: 850; color: var(--text); }
.dash-v11 .report-item .r-meta{ margin-top: 2px; color: var(--muted-2); font-weight: 650; font-size: 13px; }
.dash-v11 .report-item .r-actions{ display:flex; gap: 8px; align-items:center; }
.dash-v11 .btn.small{ padding: 8px 10px; font-size: 13px; border-radius: 12px; }

/* Shortcuts tiles */
.dash-v11 .tiles{
  display:grid;
  gap: 10px;
}

.dash-v11 .tiles.tiles-compact{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-v11 .tile{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  padding: 12px 10px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  cursor:pointer;
  color: var(--text);
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.dash-v11 .tile .ico{ font-size: 20px; }
.dash-v11 .tile .lbl{ font-size: 12px; font-weight: 850; color: var(--muted-2); }
.dash-v11 .tile:hover{ transform: translateY(-2px); border-color: rgba(37,99,235,.38); background: rgba(37,99,235,.07); }

/* Tickets head readability */
.dash-v11 .tickets-head{
  background: radial-gradient(520px 120px at 10% 0%, rgba(37,99,235,.22), transparent 70%);
}
.dash-v11 .tickets-head .dcard-title{ color: var(--text); }

/* Support */
.dash-v11 .support-body{ color: var(--muted-2); font-weight: 650; }

/* Responsive */
@media (max-width: 1100px){
  .dash-v11 .kpi-strip{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-v11 .dash-grid{ grid-template-columns: 1fr; }
  .dash-v11 .tiles.tiles-compact{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 640px){
  .dash-v11{ padding: 16px 12px 24px; }
  .dash-v11 .tiles.tiles-compact{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dash-v11 .report-item{ flex-direction: column; }
  .dash-v11 .report-item .r-actions{ justify-content:flex-start; }
}
