@use './variables' as *;
@use './bootstrap/variables' as *;
@use './theme/mixins/page-editor-mode-manager';

$primary: #00b5b7;
$themecolor: #16282d;
$accentcolor: #00fff5;

:root {
  // Background colors
  $bgcolor-global: $themecolor;
  $bgcolor-inline-code: #1f1f22; //optional
  $bgcolor-card: darken($themecolor, 5%);
  $bgcolor-blinked-section: rgba($primary, 0.4);
  $bgcolor-keyword-highlighted: darken($grw-marker-red, 30%);

  // Font colors
  $color-global: #95abba;
  $color-reversal: $gray-900;
  $color-header: #95abba;
  $color-link: $accentcolor;
  $color-link-hover: lighten($color-link, 20%);
  $color-link-wiki: $accentcolor;
  $color-link-wiki-hover: darken($color-link-wiki, 5%);
  $color-link-nabvar: #a7a7a7;
  $color-inline-code: #c7254e; // optional
  $color-search: $primary;

  // List Group colors
  // $color-list: $color-global;
  $bgcolor-list: transparent;
  // $color-list-hover: $color-reversal;
  $color-list-active: white;
  // $bgcolor-list-active: $primary;

  // Table colors
  // $color-table: #; // optional
  $bgcolor-table: darken($themecolor, 3%); // optional
  // $border-color-table: #; // optional
  // $color-table-hover: #; // optional
  // $bgcolor-table-hover: #; // optional

  // Navbar
  $bgcolor-navbar: #01181a;
  $bgcolor-search-top-dropdown: #00c2c4;
  $border-image-navbar: linear-gradient(90deg, #6cfff9 0%, #0034c1 45%, #6cfff9 100%);

  // Logo colors
  $bgcolor-logo: darken($themecolor, 10%);
  $fillcolor-logo-mark: #dedede;

  // Sidebar
  $bgcolor-sidebar: #052e2f;
  $bgcolor-sidebar-nav-item-active: rgba(#969494, 0.3); // optional
  $text-shadow-sidebar-nav-item-active: 0px 0px 10px #969494; // optional

  // Sidebar contents
  $color-sidebar-context: #2cfbff;
  $bgcolor-sidebar-context: #184040;

  // Sidebar list group
  $bgcolor-sidebar-list-group: #162126; // optional

  // Sidebar resize button
  $color-resize-button: #0e2329;
  $bgcolor-resize-button: #00c2c4;
  $color-resize-button-hover: #0e2329;
  $bgcolor-resize-button-hover: lighten($bgcolor-resize-button, 5%);

  // Tabs
  $bordercolor-nav-tabs: #4c9eb4; // optional
  // $color-nav-tabs-link-active: #; //optional
  $bordercolor-nav-tabs-hover: #295561 #295561 $bordercolor-nav-tabs; // optional
  // $bordercolor-nav-tabs-active: # # $bgcolor-global; // optional

  // Icon colors
  $color-editor-icons: $color-global;

  // Border colors
  $border-color-theme: #407483;
  $bordercolor-inline-code: #4d4d4d; // optional

  // admin theme box
  $color-theme-color-box: lighten($primary, 20%);

  @import './theme/apply-colors';
  @import './theme/apply-colors-dark';

  //Button
  .btn-group.grw-page-editor-mode-manager {
    .btn.btn-outline-primary {
      @include page-editor-mode-manager.btn-page-editor-mode-manager(lighten($primary, 10%), $primary, darken($primary, 10%), darken($primary, 20%));
    }
  }

  // headers
  @for $i from 1 through 6 {
    h#{$i} {
      color: white;
    }
  }

  pre {
    color: #95abba;
    background-color: #1f1f22;
  }
}
