/* ============================================
   Mission Control — Dark Dashboard Theme
   ============================================ */

:root {
  /* Background layers */
  --bg-root: #0a0a0b;
  --bg-surface: #111113;
  --bg-elevated: #18181b;
  --bg-hover: #1f1f23;
  --bg-active: #27272a;

  /* Borders */
  --border: #27272a;
  --border-light: #1f1f23;
  --border-hover: #3f3f46;

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #71717a;
  --text-muted: #52525b;

  /* Accent — electric blue */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-muted: rgba(59, 130, 246, 0.15);
  --accent-glow: rgba(59, 130, 246, 0.25);

  /* Status colors */
  --green: #22c55e;
  --green-muted: rgba(34, 197, 94, 0.15);
  --yellow: #eab308;
  --yellow-muted: rgba(234, 179, 8, 0.15);
  --red: #ef4444;
  --red-muted: rgba(239, 68, 68, 0.15);
  --orange: #f97316;
  --orange-muted: rgba(249, 115, 22, 0.15);
  --purple: #a855f7;
  --purple-muted: rgba(168, 85, 247, 0.15);
  --cyan: #06b6d4;
  --cyan-muted: rgba(6, 182, 212, 0.15);

  /* Layout */
  --top-bar-height: 48px;
  --sidebar-width: 320px;
  --grid-gap: 12px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;
}

/* ============ Reset ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-root);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ============ App Layout ============ */
.app-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============ Top Bar ============ */
.top-bar {
  height: var(--top-bar-height);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(17, 17, 19, 0.85);
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
}

.logo-svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-title {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-left: 6px;
  font-weight: 400;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 0;
}

/* Status pills */
.status-pills {
  display: flex;
  gap: 8px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.status-online {
  color: var(--green);
  background: var(--green-muted);
  border-color: rgba(34, 197, 94, 0.2);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.icon-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn.active {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--accent);
}

/* User */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  color: white;
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.user-role {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* ============ Dashboard Grid ============ */
.dashboard {
  flex: 1;
  padding: var(--grid-gap);
  padding-top: calc(var(--grid-gap) + 4px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: var(--grid-gap);
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  min-height: 400px;
}

/* ============ Widget Card ============ */
.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: visible;
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  position: relative;
}

.widget:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.widget.is-dragging {
  opacity: 0.6;
  transform: scale(0.98);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.widget.drag-over {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

/* Widget Header */
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  flex-shrink: 0;
}

.widget-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.widget-icon svg {
  width: 15px;
  height: 15px;
}

.widget-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.widget-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.widget-menu-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  opacity: 0;
}
.widget:hover .widget-menu-btn {
  opacity: 1;
}
.widget-menu-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.widget-menu-btn svg {
  width: 14px;
  height: 14px;
}

/* Drag handle */
.drag-handle {
  cursor: grab;
  display: none;
}
.drag-handle:active {
  cursor: grabbing;
}
body.edit-mode .drag-handle {
  display: flex;
}

/* Widget Body */
.widget-body {
  flex: 1;
  padding: 4px 14px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 13px;
}

/* Resize handle */
.resize-handle {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
  display: none;
}
body.edit-mode .resize-handle {
  display: block;
}
.widget:hover .resize-handle {
  opacity: 0.5;
}
.resize-handle:hover {
  opacity: 1 !important;
}
.resize-handle::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-tertiary);
  border-bottom: 2px solid var(--text-tertiary);
  border-radius: 0 0 2px 0;
}

/* ============ Widget Panel (Sidebar) ============ */
.widget-panel {
  position: fixed;
  top: 0;
  right: -var(--sidebar-width);
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 300ms var(--ease);
  display: flex;
  flex-direction: column;
}

.widget-panel.open {
  transform: translateX(0);
}

.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.panel-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.panel-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

/* Catalog items */
.catalog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  background: var(--bg-elevated);
}

.catalog-item:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.catalog-item.is-active {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.catalog-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.catalog-icon svg {
  width: 18px;
  height: 18px;
}

.catalog-info {
  flex: 1;
  min-width: 0;
}

.catalog-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.catalog-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.catalog-action {
  flex-shrink: 0;
}

.catalog-action .icon-btn {
  width: 28px;
  height: 28px;
  border: none;
}

/* ============ Widget Content Styles ============ */

/* Stat cards row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.stat-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.stat-change {
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--bg-active);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 600ms var(--ease);
}

/* List items */
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.list-item:last-child {
  border-bottom: none;
}

.list-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.7rem;
  flex-shrink: 0;
  color: white;
}

.list-content {
  flex: 1;
  min-width: 0;
}

.list-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-subtitle {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.list-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

/* Mini bar chart */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 50px;
  margin-top: 8px;
}

.mini-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  transition: height 600ms var(--ease);
  min-width: 8px;
  position: relative;
}

.mini-bar:hover {
  opacity: 0.8;
}

.mini-bar-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Channel status */
.channel-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.channel-row:last-child {
  border-bottom: none;
}

.channel-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-icon svg {
  width: 14px;
  height: 14px;
}

.channel-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 500;
}

.channel-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.channel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Activity timeline */
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 30px;
  bottom: -8px;
  width: 1px;
  background: var(--border-light);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot svg {
  width: 13px;
  height: 13px;
}

.timeline-content {
  flex: 1;
  min-width: 0;
}

.timeline-text {
  font-size: 0.8rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.timeline-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Automation row */
.auto-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.auto-row:last-child {
  border-bottom: none;
}

.auto-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auto-icon svg {
  width: 15px;
  height: 15px;
}

.auto-info {
  flex: 1;
  min-width: 0;
}

.auto-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
}

.auto-detail {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.auto-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg-active);
  border-radius: 10px;
  transition: background var(--duration) var(--ease);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform var(--duration) var(--ease);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(16px);
}

/* ============ Donut Chart ============ */
.donut-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 8px;
}

.donut-chart {
  width: 100px;
  height: 100px;
  position: relative;
}

.donut-chart svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-chart circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.donut-label {
  font-size: 0.6rem;
  color: var(--text-tertiary);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ============ Toast ============ */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.8rem;
  box-shadow: var(--shadow-lg);
  animation: toast-in 300ms var(--ease);
  max-width: 320px;
}

.toast.toast-out {
  animation: toast-out 300ms var(--ease) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* ============ Edit mode indicator ============ */
body.edit-mode .widget {
  border-style: dashed;
}

body.edit-mode .grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ============ Grid placeholder ============ */
.grid-placeholder {
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  background: var(--accent-muted);
  opacity: 0.5;
  pointer-events: none;
  transition: all 150ms var(--ease);
}

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .top-bar-center {
    display: none;
  }
}

@media (max-width: 768px) {
  .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
  }
  .grid > .widget {
    width: 100% !important;
    min-height: 200px !important;
    grid-column: unset !important;
    grid-row: unset !important;
  }
  .top-bar {
    padding: 0 12px;
    height: 50px;
  }
  .top-bar-center {
    display: none;
  }
  .top-bar-right .btn,
  .top-bar-right .icon-btn {
    display: none;
  }
  .top-bar-right .user-info {
    display: flex;
  }
  .user-details {
    display: none;
  }
  .btn span {
    display: none;
  }
  .logo-subtitle {
    display: none;
  }
  .logo-title {
    font-size: 14px;
  }
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  .dashboard {
    padding: 8px;
    padding-bottom: 70px;
  }
  .widget-body {
    padding: 12px;
    font-size: 13px;
  }
  .widget-header {
    padding: 10px 12px;
  }
  .widget-title {
    font-size: 13px;
  }
  /* Make stat numbers readable */
  .stat-value, .stat-number {
    font-size: 24px !important;
  }
  .stat-label {
    font-size: 11px !important;
  }
  /* Team performance bars */
  .team-member {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .grid > .widget {
    min-height: 160px !important;
  }
  .top-bar {
    height: 44px;
  }
  .logo-icon {
    display: none;
  }
}

/* ============ Animations ============ */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.grid > .widget {
  animation: fade-in 400ms var(--ease) both;
}

.grid > .widget:nth-child(1) { animation-delay: 0ms; }
.grid > .widget:nth-child(2) { animation-delay: 60ms; }
.grid > .widget:nth-child(3) { animation-delay: 120ms; }
.grid > .widget:nth-child(4) { animation-delay: 180ms; }
.grid > .widget:nth-child(5) { animation-delay: 240ms; }
.grid > .widget:nth-child(6) { animation-delay: 300ms; }

/* ============ Empty state ============ */
.empty-grid {
  grid-column: 1 / -1;
  grid-row: 1 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}

.empty-grid svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.empty-grid p {
  font-size: 0.9rem;
}
/* Widgets expand to fit ALL content — no inner scrolling */
.widget-body {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
  flex: none !important;
}
.widget {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Make grid rows taller so content fits */
.grid {
  grid-auto-rows: auto !important;
}

/* Fix Quick Actions grid on desktop */
.widget-body [style*="grid-template-columns: repeat(3"] {
  grid-template-columns: repeat(3, 1fr) !important;
}


