/* PEPS Ventures Boardroom — Brand Override */
/* Primary: #cca747 (gold), replaces PEPS Ventures blue #1976d2 */

:root {
  --mat-sys-primary: #cca747 !important;
  --mat-sys-on-primary: #000000 !important;
  --mat-sys-primary-container: #f5e8c0 !important;
  --mat-sys-on-primary-container: #3d2f00 !important;
  --mat-sys-secondary: #a08030 !important;
  --mat-sys-tertiary: #b89440 !important;
}

/* Filled/raised buttons */
.mat-mdc-raised-button.mat-primary,
.mat-mdc-fab.mat-primary,
.mat-mdc-mini-fab.mat-primary {
  --mdc-filled-button-container-color: #cca747 !important;
  --mdc-filled-button-label-text-color: #000000 !important;
  background-color: #cca747 !important;
  color: #000 !important;
}

/* Text buttons and icon buttons */
.mat-mdc-button.mat-primary,
.mat-mdc-icon-button.mat-primary {
  --mdc-text-button-label-text-color: #cca747 !important;
  color: #cca747 !important;
}

/* Outlined buttons */
.mat-mdc-outlined-button.mat-primary {
  --mdc-outlined-button-label-text-color: #cca747 !important;
  --mdc-outlined-button-outline-color: #cca747 !important;
  color: #cca747 !important;
  border-color: #cca747 !important;
}

/* Checkboxes, radio, slide-toggle */
.mat-mdc-checkbox.mat-primary .mdc-checkbox__ripple { background: #cca747 !important; }
.mat-mdc-checkbox.mat-primary .mdc-checkbox__native-control:checked ~ .mdc-checkbox__background { border-color: #cca747 !important; background-color: #cca747 !important; }
.mat-mdc-slide-toggle.mat-primary { --mdc-switch-selected-track-color: #cca747 !important; --mdc-switch-selected-handle-color: #a08030 !important; }

/* Progress bars and spinners */
.mat-primary .mdc-linear-progress__bar-inner { border-color: #cca747 !important; }
.mat-primary .mdc-circular-progress__determinate-circle,
.mat-primary .mdc-circular-progress__indeterminate-circle-graphic { stroke: #cca747 !important; }

/* Tabs */
.mat-mdc-tab-group.mat-primary .mdc-tab-indicator__content--underline,
.mat-mdc-tab-nav-bar.mat-primary .mdc-tab-indicator__content--underline { border-color: #cca747 !important; }
.mat-mdc-tab-group.mat-primary .mat-mdc-tab:not(.mat-mdc-tab-disabled).mdc-tab--active .mdc-tab__text-label { color: #cca747 !important; }

/* Links */
a:not(.mat-mdc-button):not(.mat-mdc-raised-button):not(.mat-mdc-outlined-button) { color: #b89440; }

/* Selection/focus rings */
:focus-visible { outline-color: #cca747 !important; }

/* FAB */
.mat-mdc-fab, .mat-mdc-mini-fab { background-color: #cca747 !important; color: #000 !important; }


/* ===== PEPS OVERRIDE v2 ===== */

/* Header / Navigation toolbar background — change from PEPS Ventures teal to dark navy */
mat-toolbar,
mat-toolbar.mat-toolbar,
mat-toolbar.mat-primary,
.mat-toolbar,
.mat-toolbar.mat-primary,
os-top-bar,
os-top-bar mat-toolbar,
.os-top-bar {
  background-color: #1a1a2e !important;
  color: #ffffff !important;
}

/* Logo container inside toolbar */
os-top-bar .logo,
os-top-bar img,
os-top-bar a img,
.os-top-bar .logo,
.os-top-bar img {
  filter: none !important;
}

/* Sidebar/drawer background */
mat-sidenav, .mat-sidenav, mat-drawer, .mat-drawer {
  background-color: #13131f !important;
}

/* Sidebar nav links */
mat-sidenav a, .mat-sidenav a, mat-nav-list a {
  color: #e0d5b8 !important;
}

mat-sidenav a:hover, .mat-sidenav a:hover {
  color: #cca747 !important;
  background-color: rgba(204,167,71,0.1) !important;
}

/* Active nav item */
mat-sidenav .active, .mat-sidenav .active, mat-nav-list .active {
  color: #cca747 !important;
  border-left: 3px solid #cca747 !important;
}

/* Footer — hide PEPS Ventures text and replace */
os-footer, app-footer, .footer-copyright, footer {
  font-size: 12px !important;
}

/* The copyright span — attempt CSS content replacement */
os-legal-notice-link, app-legal-notice-link {
  display: none !important;
}


/* ===== PEPS OVERRIDE v3 — hide pepsventures.com links ===== */

/* Hide any anchor tag whose href points to pepsventures.com */
a[href*="pepsventures.com"],
a[href*="pepsventures.com"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Also hide any button or element with an openslides URL in common attributes */
[href*="pepsventures.com"],
[href*="pepsventures.com"] {
  display: none !important;
}

/* Hide the empty-page openslides links */
.empty-page a[href*="openslides"],
.empty-state a[href*="openslides"],
[class*="empty"] a[href*="openslides"] {
  display: none !important;
}
