/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  width: 100%;
  margin-top: 10px;
  padding-bottom: 40px;
}

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

.dash-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
              rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: 22px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}

.dash-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.7), transparent);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease);
  border-radius: 999px;
}

.dash-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99,102,241,0.2);
  box-shadow: var(--shadow-2);
}

.dash-card:hover::before { opacity: 1; }

.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.dash-head h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.2px;
  font-weight: 900;
  background: linear-gradient(135deg, #f8fafc 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-head small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2), 0 0 20px rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.4);
  background: rgba(99,102,241,0.06);
}

.kpi-label {
  display: block;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kpi-val {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #f8fafc 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dash-divider {
  height: 1px;
  width: 100%;
  background: rgba(255,255,255,0.07);
  margin: 18px 0;
}

.dash-list { display: flex; flex-direction: column; gap: 10px; }

.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}

.dash-row:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.04);
  transform: translateX(2px);
  cursor: pointer;
}

.dash-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.dash-name {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.dash-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.mini-charts { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 8px; }

.mini-title {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.bar-wrap { display: flex; flex-direction: column; gap: 10px; }

.bar-row {
  display: grid;
  grid-template-columns: 86px 1fr 34px;
  align-items: center;
  gap: 10px;
}

.bar-row span { font-size: 12px; color: rgba(255,255,255,0.85); font-weight: 700; }

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--primary-gradient);
  border-radius: 999px;
  transition: width var(--dur-3) var(--ease);
}

@media (max-width: 980px) {
  .dash-grid  { grid-template-columns: 1fr; }
  .dash-kpis  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .dash-kpis { grid-template-columns: 1fr; }
}


/* ============================================================
   TOASTS
   ============================================================ */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: white;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-show { opacity: 1; transform: translateY(0) scale(1); }

.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-message { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.4; }

.toast-success { border-left: 3px solid #4ade80; box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07), 0 0 24px rgba(74,222,128,0.14); }
.toast-error   { border-left: 3px solid #ef4444; box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07), 0 0 24px rgba(239,68,68,0.14); }
.toast-warning { border-left: 3px solid #f59e0b; box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07), 0 0 24px rgba(245,158,11,0.14); }
.toast-info    { border-left: 3px solid #60a5fa; box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07), 0 0 24px rgba(96,165,250,0.14); }

