/* Neuronix theme for the OpenIM GUIs, added to both fronts by gui-theme-proxy
   (deploy/gui-theme-proxy.conf.template). To change colours, edit the variables below and reload
   the page: files here are mounted read-only and served with Cache-Control: no-cache.

   Both fronts use antd 5 with CSS-in-JS (hashPriority low: `:where(.css-xxx)` selectors).
   antd injects its <style> tags after this file, so overrides need !important. */
:root {
  --ccs-primary: #00bcaa;         /* neuronixtech.com teal */
  --ccs-primary-hover: #28d4c2;
  --ccs-primary-active: #009c8e;
  --ccs-primary-bg: #eaf8f4;      /* light fills: selected rows, menu items */
  --ccs-primary-ring: rgba(0, 188, 170, 0.18);
  --ccs-secondary: #03c475;       /* logo gradient start */
  --ccs-secondary-2: #06ebf7;     /* logo gradient end */
  --ccs-navy: #0c1d2c;            /* dark surfaces: web top bar */
  --ccs-bg: #ffffff;
  --ccs-text: #1a1a2e;
  --ccs-text-muted: #7a7a8c;
}

/* Buttons */
.ant-btn-primary:not(:disabled):not(.ant-btn-dangerous):not(.ant-btn-background-ghost) {
  background: var(--ccs-primary) !important;
  border-color: var(--ccs-primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}
.ant-btn-primary:not(:disabled):not(.ant-btn-dangerous):not(.ant-btn-background-ghost):hover {
  background: var(--ccs-primary-hover) !important;
  border-color: var(--ccs-primary-hover) !important;
}
.ant-btn-primary:not(:disabled):not(.ant-btn-dangerous):not(.ant-btn-background-ghost):active {
  background: var(--ccs-primary-active) !important;
  border-color: var(--ccs-primary-active) !important;
}
.ant-btn-default:not(:disabled):not(.ant-btn-dangerous):hover,
.ant-btn-dashed:not(:disabled):not(.ant-btn-dangerous):hover {
  color: var(--ccs-primary) !important;
  border-color: var(--ccs-primary) !important;
}
.ant-btn-link:not(:disabled):not(.ant-btn-dangerous),
.ant-btn-text:not(:disabled):not(.ant-btn-dangerous).ant-btn-color-primary {
  color: var(--ccs-primary) !important;
}
.ant-btn-link:not(:disabled):not(.ant-btn-dangerous):hover { color: var(--ccs-primary-hover) !important; }

/* Links (not menu or breadcrumb entries, which use the text colour) */
a:not(.ant-btn):not(.ant-menu a):not(.ant-breadcrumb a):not(.ant-dropdown-menu a):not(.ant-pro-base-menu a):not(.ant-pro-global-header-logo a):not(.ant-pro-layout-logo a) {
  color: var(--ccs-primary) !important;
}
.ant-typography a:hover { color: var(--ccs-primary-hover) !important; }

/* Inputs */
.ant-input:not(.ant-input-disabled):not(.ant-input-status-error):hover,
.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):not(.ant-input-affix-wrapper-status-error):hover,
.ant-input-number:not(.ant-input-number-disabled):hover,
.ant-picker:not(.ant-picker-disabled):hover,
.ant-select:not(.ant-select-disabled):not(.ant-select-status-error):hover .ant-select-selector {
  border-color: var(--ccs-primary-hover) !important;
}
.ant-input:not(.ant-input-status-error):focus,
.ant-input-focused,
.ant-input-affix-wrapper-focused:not(.ant-input-affix-wrapper-status-error),
.ant-input-affix-wrapper:not(.ant-input-affix-wrapper-status-error):focus-within,
.ant-input-number-focused,
.ant-picker-focused,
.ant-select-focused:not(.ant-select-status-error) .ant-select-selector {
  border-color: var(--ccs-primary) !important;
  box-shadow: 0 0 0 2px var(--ccs-primary-ring) !important;
}
/* An affix wrapper draws the border; its inner input must not draw a second ring. */
.ant-input-affix-wrapper .ant-input:focus { box-shadow: none !important; }

/* Checkbox, radio, switch */
.ant-checkbox-checked:not(.ant-checkbox-disabled) .ant-checkbox-inner,
.ant-checkbox-indeterminate:not(.ant-checkbox-disabled) .ant-checkbox-inner::after {
  background-color: var(--ccs-primary) !important;
  border-color: var(--ccs-primary) !important;
}
.ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner,
.ant-checkbox:not(.ant-checkbox-disabled):hover .ant-checkbox-inner {
  border-color: var(--ccs-primary) !important;
}
.ant-radio-checked:not(.ant-radio-disabled) .ant-radio-inner {
  background-color: var(--ccs-primary) !important;
  border-color: var(--ccs-primary) !important;
}
.ant-radio-wrapper:not(.ant-radio-wrapper-disabled):hover .ant-radio-inner { border-color: var(--ccs-primary) !important; }
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  color: var(--ccs-primary) !important;
  border-color: var(--ccs-primary) !important;
}
.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before { background-color: var(--ccs-primary) !important; }
.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
  background: var(--ccs-primary) !important;
  color: #fff !important;
}
.ant-switch.ant-switch-checked:not(.ant-switch-disabled) { background: var(--ccs-primary) !important; }
.ant-switch.ant-switch-checked:not(.ant-switch-disabled):hover { background: var(--ccs-primary-hover) !important; }

/* Tabs, menus, pagination, tables, select options, date picker */
.ant-tabs-ink-bar { background: var(--ccs-primary) !important; }
.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn,
.ant-tabs-tab:hover { color: var(--ccs-primary) !important; }
.ant-menu-item-selected,
.ant-menu-submenu-selected > .ant-menu-submenu-title,
.ant-dropdown-menu-item-selected {
  color: var(--ccs-primary) !important;
}
.ant-menu-light .ant-menu-item-selected,
.ant-menu-light > .ant-menu .ant-menu-item-selected { background-color: var(--ccs-primary-bg) !important; }
.ant-menu-inline .ant-menu-selected::after,
.ant-menu-inline .ant-menu-item-selected::after { border-color: var(--ccs-primary) !important; }
.ant-pagination-item-active { border-color: var(--ccs-primary) !important; }
.ant-pagination-item-active a,
.ant-pagination-item:hover a,
.ant-pagination-prev:hover .ant-pagination-item-link,
.ant-pagination-next:hover .ant-pagination-item-link { color: var(--ccs-primary) !important; }
.ant-table-tbody > tr.ant-table-row-selected > td { background: var(--ccs-primary-bg) !important; }
.ant-select-item-option-selected:not(.ant-select-item-option-disabled) { background-color: var(--ccs-primary-bg) !important; }
.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,
.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner { background: var(--ccs-primary) !important; }
.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner::before { border-color: var(--ccs-primary) !important; }
.ant-picker-active-bar { background: var(--ccs-primary) !important; }

/* Feedback: spinner, progress, steps, info icons, upload drop zone */
.ant-spin { color: var(--ccs-primary) !important; }
.ant-spin-dot-item { background-color: var(--ccs-primary) !important; }
.ant-progress-status-normal .ant-progress-bg,
.ant-progress-status-active .ant-progress-bg { background: var(--ccs-primary) !important; }
.ant-steps-item-process .ant-steps-item-icon { background: var(--ccs-primary) !important; border-color: var(--ccs-primary) !important; }
.ant-steps-item-finish .ant-steps-item-icon { border-color: var(--ccs-primary) !important; }
.ant-steps-item-finish .ant-steps-item-icon .ant-steps-icon { color: var(--ccs-primary) !important; }
.ant-message-info .anticon,
.ant-message-loading .anticon,
.ant-notification-notice-icon-info,
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon { color: var(--ccs-primary) !important; }
.ant-upload-wrapper .ant-upload-drag:not(.ant-upload-disabled):hover { border-color: var(--ccs-primary) !important; }

/* Text selection */
::selection { background: var(--ccs-primary-ring); }

/* Login heading (both GUIs, built by brand.js): "Welcome to Neuronix" / product (bold, brand
   colour) / Chat or Admin Portal, one per line, centred. */
.ccs-welcome { text-align: center; line-height: 1.4; width: 100%; }
.ccs-welcome > .ccs-welcome-product,
.ccs-welcome > .ccs-welcome-sub { display: block; }
.ccs-welcome > .ccs-welcome-product { color: var(--ccs-primary); font-weight: 700; }
.ccs-welcome > .ccs-welcome-sub { font-weight: 400; }

/* Product name in the admin sidebar header after login (brand.js): "Neuronix" plain,
   the product name bold in brand colour. */
.ccs-brand-product { color: var(--ccs-primary); font-weight: 700; }
