// Custom.scss
// Option B: Include parts of Bootstrap

// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
@import "../../node_modules/bootstrap/scss/functions";

// 2. Include Bootstrap variables before our custom config
@import "../../node_modules/bootstrap/scss/variables";
@import "../../node_modules/bootstrap/scss/variables-dark";

// 3. Include our base design system variables (in dependency order)
@import "spacing";         // Spacing and sizing variables (no dependencies)
@import "colors";          // Color variables and functions (no dependencies)
@import "effects";         // Shadows, borders, transitions (no dependencies)
@import "typography";      // Typography system (no dependencies)
@import "z-index";         // Z-index management (no dependencies)
@import "breakpoints";     // Responsive breakpoints (no dependencies)
@import "mixins";          // Component mixins (may depend on above)
@import "config";          // Configuration and feature toggles (depends on above)

// 4. Include any default variable overrides here

// 5. Include remainder of required Bootstrap stylesheets (including any separate color mode stylesheets)
@import '../../node_modules/bootswatch/dist/cyborg/_variables.scss';
// 5. Include any default map overrides here

// 5. Include remainder of required parts
@import "../../node_modules/bootstrap/scss/maps";
@import "../../node_modules/bootstrap/scss/mixins";
@import "../../node_modules/bootstrap/scss/root";

// 6. Optionally include any other parts as needed
@import "../../node_modules/bootstrap/scss/utilities";
@import "../../node_modules/bootstrap/scss/reboot";
@import "../../node_modules/bootstrap/scss/type";
@import "../../node_modules/bootstrap/scss/images";
@import "../../node_modules/bootstrap/scss/containers";
@import "../../node_modules/bootstrap/scss/grid";
@import "../../node_modules/bootstrap/scss/helpers";

// 7. Optionally include utilities API last to generate classes based on the Sass map in `_utilities.scss`
@import "../../node_modules/bootstrap/scss/utilities/api";

// 8. Add additional custom code here

.dash-graph {
  border: 1px solid $primary-border-color;
}

#symbol {
  display: none;
}

a
{
  text-decoration: none;
}

@include color-mode(dark) {
  a
  {
    color: $dark-mode-link;
    text-decoration: none;
    &:hover {
      color: $dark-mode-link-hover;
    }
  }
}

.body-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.body-background {
  background-image: url('/assets/images/pexels-pixabay-531880.jpg');
  background-size: cover;
  background-position: center;
}  .form-container {
    background-color: $form-overlay-bg;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 12px $shadow-medium;
    max-width: 350px;
    width: 100%;
  }

//$color-mode-type: data;
#sidebar {
  border-right: 1px solid $primary-border-color;
}

// Dark mode styles
@include color-mode(dark) {
  #sidebar {
    background-color: $accordion-bg;
    &:hover {
      left: 0px;
      background-color: $accordion-bg;
    }
  }
}


// Light mode styles
@include color-mode(light) {
  #sidebar {
    background-color: $sidebar-bg-light;
    &:hover {
      left: 0px;
      background-color: $sidebar-bg-light;
    }
}
}


/* Dark mode styles */
[side-bar='sidebar-open'] {
  @include color-mode(dark) {
    #sidebar {
      background-color: $accordion-bg;
      //color: #fff;
    }
  }
}

[side-bar='sidebar-close'] {
  #sidebar {
    left: -312px;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.5);

    // Default background color
    background-color: $sidebar-bg-hover;
  }

  #page-content {
    margin-left: 8px;
  }
}


#sidebar {
  //background-color: #EDEDED;
  text-align: center;
  padding: 1rem;
  z-index: 100;
  h2 {
    text-align: left;
    margin-bottom: 0;
  }
}

.accordion-button, .accordion-item {
  background-color: $accordion-bg;
}

@include color-mode(light) {
  .accordion-button, .accordion-item {
    background-color: $sidebar-bg-light;
    color: #000;
  }

  .form-select {
    border: $border-color $border-width solid;
  }
}

//.modebar-container {
//  display: none;
//}

#collapse *:first-child {
  margin-top: 1rem;
}  .navbar-toggler {

    &:hover {
      /* text-decoration: none; */
      background-color: $navbar-hover-dark;
    }

    background: none;
    border: 1px solid $navbar-border;
  padding: 9px;
  cursor: pointer;
  border-radius: 5px;
  i.fa-bars {
    font-size: 22px;
  }
}

// Light mode hover style for navbar-toggler
@include color-mode(light) {
  .navbar-toggler:hover {
    background-color: $navbar-hover-light;
  }
}

#page-content {
  padding: 14px;
  //height: 100vh;
  //width: 100%;
}

@media (min-width: 48em) {
  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
    transition: margin 0.3s ease-in-out, padding 0.3s ease-in-out;

    &.collapsed {
      margin-left: -15.5rem;
      padding-right: 0.5rem;

      #sidebar-toggle {
        top: -2rem;
      }

      ~#page-content {
        margin-left: 4.5rem;
      }

      >*:not(:first-child) {
        margin-left: -6rem;
        margin-right: 6rem;
      }
    }
  }

  #sidebar-toggle {
    display: inline-block;
    position: relative;
    top: 0;
    transition: top 0.3s ease-in-out;
  }

  /* reveal the blurb on a large screen */
  #blurb {
    display: block;
  }


  #collapse {
    display: block;
  }

  /* set margins of the main content so that it doesn't overlap the sidebar */
  #page-content {
    margin-left: 18rem;
    transition: margin-left 0.3s ease-in-out;
  }
}

.custom-label {
  display: inline-block;
  margin-right: 15px;
}

.color-box {
  width: 25px;
  height: 2px;
  display: inline-block;
  margin: 0 5px;
  vertical-align: middle;
}

.checklist-text {
  display: inline-block;
  vertical-align: middle;
}

.checklist-container {
  position: relative;
  height: 720px;
  /* Modify this according to your requirement */
  -ms-overflow-style: none;
}

#my_checklist {
  position: absolute;
  height: 100%;
  overflow-y: scroll;
  box-sizing: content-box;
  margin-top: 20px;
  margin-left: -120px;

  /*
    &::-webkit-scrollbar {
      width: 0;
    }
    */
}

#sidebar-buttons {
  position: absolute;
  bottom: 20px;
}

.dash-graph {
  margin-top: 15px;
}

h2 {
  margin-bottom: 22px;
}

.sourceText {
  font-size: 12px;
}

#color-mode-switch {
  position: absolute;
  right: 80px;
  top: 15px;
  #switch {
    margin-top: 0px;
  }
}

.shares {
  //width: calc(100% - 8px);
  height: 100vh;
}

.accordion-body {
  &.with-links {
    display: grid;
    row-gap: 8px;
  }
}

#cot-markets {
  height: calc(100vh - 130px);
}

#user-avatar2 {
  position: absolute;
  right: 20px;
  top: 10px;
}

.hr-with-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0 0 10px 0;
  &::before, &::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid grey;
  }
  span {
    padding: 0 10px;
  }
}

.social-login {
  a {
    display: flex;
    align-items: center;
    text-align: center;
    text-decoration: none;
  }

  span {
    flex: 1;
  }

  .btn-facebook {
    background-color: $facebook-blue;
    color: white;
  }
  
  .btn-google {
    background-color: $google-red;
    color: white;
  }
  
  .btn-facebook:hover,
  .btn-google:hover {
    opacity: 0.8;
  }
}

// Error pages styles
@import "error-pages";

// Shared spinner styles for centered loading indicators
.spinner {
    position: fixed;
    /* height: 100vh; */
    top: calc(50vh - 0px);
    left: calc(50vw);
    /* transform: translate(-50%, -50%); */
    z-index: 1000;
}
