/* ChirpStack arayüzü için Sensgreen teması
   Kaynak: SensUI Design System, tokens.css (light tema)
   Her değerin yanında geldiği token yazıyor. */

.css-var-root {
  /* Marka: Evergreen (tek ana eylem rengi) */
  --ant-color-primary: #1c5f3d !important;              /* sg-brand / forest-600 */
  --ant-color-primary-hover: #144d2f !important;        /* sg-brand-hover / forest-700 */
  --ant-color-primary-active: #0e3f26 !important;       /* sg-brand-pressed / forest-800 */
  --ant-color-primary-text: #1c5f3d !important;
  --ant-color-primary-text-hover: #144d2f !important;
  --ant-color-primary-text-active: #0e3f26 !important;
  --ant-color-primary-border: #c5dacb !important;       /* forest-200 */
  --ant-color-primary-border-hover: #8fbca0 !important; /* forest-300 */

  /* Bağlantılar */
  --ant-color-link: #1c5f3d !important;                 /* sg-text-link */
  --ant-color-link-hover: #144d2f !important;
  --ant-color-link-active: #0e3f26 !important;

  /* Seçim ve hover: yeşil değil, mürekkep tonu (sg-bg-selected / sg-bg-hover) */
  --ant-color-primary-bg: rgba(26, 31, 27, 0.07) !important;
  --ant-color-primary-bg-hover: rgba(26, 31, 27, 0.10) !important;
  --ant-control-item-bg-active: rgba(26, 31, 27, 0.07) !important;
  --ant-control-item-bg-active-hover: rgba(26, 31, 27, 0.10) !important;
  --ant-control-item-bg-hover: rgba(26, 31, 27, 0.04) !important;
  --ant-color-bg-text-hover: rgba(26, 31, 27, 0.04) !important;
  --ant-color-bg-text-active: rgba(26, 31, 27, 0.07) !important;
  --ant-color-fill-secondary: rgba(26, 31, 27, 0.07) !important;
  --ant-color-fill-tertiary: rgba(26, 31, 27, 0.04) !important;
  --ant-control-outline: rgba(26, 31, 27, 0.14) !important;

  /* Zeminler: Sage */
  --ant-color-bg-layout: #f1f3ed !important;            /* sg-bg-canvas */
  --ant-color-bg-container: #fbfcf8 !important;         /* sg-bg-surface */
  --ant-color-bg-elevated: #ffffff !important;          /* sg-bg-raised */
  --ant-layout-light-sider-bg: #e9ede5 !important;      /* sg-bg-sidebar */
  --ant-layout-header-bg: #fbfcf8 !important;

  /* Metin */
  --ant-color-text: #1a1f1b !important;                 /* sg-text-1 */
  --ant-color-text-heading: #1a1f1b !important;
  --ant-color-text-secondary: #4c534c !important;       /* sg-text-2 */
  --ant-color-text-description: #636a62 !important;     /* sg-text-3 */
  --ant-color-text-tertiary: #636a62 !important;
  --ant-color-text-disabled: #9ea59c !important;        /* sg-text-disabled */
  --ant-color-text-placeholder: #80877e !important;

  /* Çizgiler */
  --ant-color-border: #c4cbc2 !important;               /* sg-border-strong */
  --ant-color-border-secondary: #dbe0d8 !important;     /* sg-border-default */
  --ant-color-split: #e3e8e0 !important;                /* sg-border-subtle */

  /* Durum renkleri */
  --ant-color-success: #4f7f1f !important;
  --ant-color-success-bg: #e8efdc !important;
  --ant-color-success-border: #c6d6ae !important;
  --ant-color-warning: #9a6412 !important;
  --ant-color-warning-bg: #f4ead6 !important;
  --ant-color-warning-border: #e3cd9f !important;
  --ant-color-error: #b3261e !important;
  --ant-color-error-hover: #a5231c !important;
  --ant-color-error-active: #98201a !important;
  --ant-color-error-bg: #f6e1de !important;
  --ant-color-error-border: #ebb9b3 !important;
  --ant-color-info: #3a6390 !important;
  --ant-color-info-bg: #e3eaf1 !important;
  --ant-color-info-border: #bfd0e2 !important;

  /* Köşeler */
  --ant-border-radius-xs: 3px !important;
  --ant-border-radius-sm: 5px !important;
  --ant-border-radius: 6px !important;
  --ant-border-radius-lg: 8px !important;

  /* Butonlar: mavi gölgeyi kaldır */
  --ant-button-primary-shadow: none !important;
  --ant-button-danger-shadow: none !important;
  --ant-button-default-shadow: 0 1px 2px 0 rgba(26, 31, 27, 0.06) !important; /* sg-shadow-1 */

  /* Sol menü: seçili öğe mürekkep, zemin kenar çubuğu rengi */
  --ant-menu-item-bg: #e9ede5 !important;
  --ant-menu-sub-menu-item-bg: #e9ede5 !important;
  --ant-menu-item-color: #4c534c !important;
  --ant-menu-item-hover-color: #1a1f1b !important;
  --ant-menu-item-hover-bg: rgba(26, 31, 27, 0.04) !important;
  --ant-menu-item-active-bg: rgba(26, 31, 27, 0.07) !important;
  --ant-menu-item-selected-color: #1a1f1b !important;
  --ant-menu-item-selected-bg: rgba(26, 31, 27, 0.07) !important;
  --ant-menu-sub-menu-item-selected-color: #1a1f1b !important;

  /* Tablo başlığı */
  --ant-table-header-bg: #f1f3ed !important;
  --ant-table-header-color: #4c534c !important;
  --ant-table-row-hover-bg: rgba(26, 31, 27, 0.04) !important;
  --ant-table-border-color: #dbe0d8 !important;
}

/* ChirpStack'in kendi yerleşim sınıfları */
body {
  background: #f1f3ed;
  color: #1a1f1b;
}

.layout-header {
  background: #fbfcf8 !important;
  border-bottom: 1px solid #dbe0d8;
  box-shadow: none !important;
}

.layout-menu,
.layout-menu .ant-menu {
  background: #e9ede5 !important;
}

.layout-menu {
  border-inline-end: 1px solid #dbe0d8;
}
