// 
// _demos.scss
// 



.grid-example{
  background-color: rgba($primary, 0.05);
  border-radius: 5px;
  font-weight: $font-weight-medium;
  padding: 10px 20px;
  font-size: .8rem;
}

// Modals

.bs-example-modal {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: 1;
    display: block;
  }

[dir="rtl"]{
  .modal-open{
    padding-left: 0px !important;
  }
}

// Icon demo ( Demo only )
.icon-demo-content {
    color: var(--#{$prefix}gray-500);
  
    i, svg{
      display: inline-flex;
      width: 40px;
      height: 40px;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      color: var(--#{$prefix}body-color);
      transition: all 0.4s;
      border: 1px solid var(--#{$prefix}border-color);
      border-radius: 50%;
      margin-right: 16px;
      vertical-align: middle;
    }

    svg {
      padding: 10px;
    }
  
    .col-lg-4 {
      margin-top: 24px;
  
      &:hover {
        i, svg{
          background-color: rgba(var(--bs-primary-rgb), 0.2);
          color: rgba(var(--bs-primary-rgb), 1);
        }
    }
  }
}




// Grid

.grid-structure {
    .grid-container {
        background-color: var(--#{$prefix}secondary-bg);
        margin-top: 10px;
        font-size: .8rem;
        font-weight: $font-weight-medium;
        padding: 10px 20px;
    }
}


// card radio

.card-radio{
  background-color: var(--#{$prefix}white);
  border: 2px solid var(--#{$prefix}border-color);
  border-radius: $border-radius;
  padding: 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  &:hover{
    cursor: pointer;
  }
}

.card-radio-label{
  display: block;
}


.card-radio-input{
  display: none;
  &:checked + .card-radio {
    border-color: $primary !important;
  }
}

.spin-left:before {
  animation: spin-left 2s infinite linear;
}

.spin-right:before {
  animation: spin-right 2s infinite linear;
}

@keyframes spin-left {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-359deg);
  }
}


@keyframes spin-right {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

.tooltip, .popover{
  z-index: 9;
}