/**=====================
     15. Alert CSS start
==========================**/
.alert-dismissible {
  .close {
    padding: 10px 1.25rem;
    top:2px;
    &:hover{
      color: $dark-color;
    }
  }
}
.card-body{
  .alert{
    &:last-child{
      margin-bottom: 0;
    }
  }
}
$alert-name:primary,
secondary,
success,
danger,
warning,
info,
light,
dark;

$alert-color :$primary-color,
$secondary-color,
$success-color,
$danger-color,
$warning-color,
$info-color,
$light-color,
$dark-color;

@each $var in $alert-name {
  $i: index($alert-name, $var);
  .alert-#{$var}{
    background-color: rgba(nth($alert-color, $i), 0.8);
    border-color: rgba(nth($alert-color, $i), 0.9);
    color: $white;
    .progress {
      height: 5px;
      background-color: darken(nth($alert-color, $i), 1%);
      border-radius: 0;
    }
    .progress-bar{
      background-color: lighten(nth($alert-color, $i), 50%);
    }
    .alert-link{
      color: nth($alert-color, $i);
      @if($var == "light"){
        color: $dark-color;
      }
    }
    @if($var == "light"){
      color: $dark-color;
      background-color: $light-color;
    }
    hr{
      border-top-color: nth($alert-color, $i);
    }
  }
  .alert-#{$var}.dark {
    .alert-link{
      color: $white;
      @if($var == "light"){
        color: $dark-color;
      }
    }
    background-color: nth($alert-color, $i) !important;
    border-color: nth($alert-color, $i) !important;
    color: $auth-bg-color;

    @if($var == "light"){
      color: $dark-color;
    }
  }
  .alert-#{$var}.outline,.alert-#{$var}.outline-2x {
    background-color: $transparent-color !important;
    border-color: nth($alert-color, $i) !important;
    color: nth($alert-color, $i);
    @if($var == "light"){
      color: $dark-color;
    }
  }
  .alert-#{$var}.inverse{
    &:before{
      top: 16px;
      content: "";
      position: absolute;
      left: 54px;
      width: 0;
      height: 0;
      border-left: 7px solid nth($alert-color, $i);
      border-top: 7px solid transparent;
      border-bottom: 7px solid transparent;
    }
    background-color: transparent;
    padding: 13px 20px 13px 65px;
    border-color: nth($alert-color, $i);
    color: $theme-body-font-color;
    i{
      padding: 17px 20px;
      display: inline-block;
      background-color: nth($alert-color, $i) !important;
      color: $white;
      border-radius: 3px 0 0 3px;
      position: absolute;
      left: 0;
      top: 0;
      height:100%;
    }
  }
}
.outline-2x{
  border-width: 2px;
  padding: 11px 1.25rem;
}
.alert{
  border-radius: 0.15rem;
  padding: 15px;
  .progress{
    margin-top: 15px;
  }
  [data-notify = 'message']{
    display: block;
  }
  i{
    margin-right: 5px;
    font-size: 16px;
  }
  p{
    margin-bottom: 0;
  }
  .close{
    opacity: 1;
    span{
      font-size: 24px;
      font-weight: 400;
      display: inline-block;
      border-radius: 3px;
      text-shadow: none;
      padding: 0 5px;
    }
  }

}
/**=====================
     15. Alert CSS end
==========================**/