
//$primary-color: rgb(15, 92, 128);
$primary-color: rgb(139, 44, 60);

$secondary-color: rgb(211, 240, 238);

$primary-color-muted: lighten($primary-color, 15%);

$color-light: lighten($primary-color, 15%);
$color-dark: darken($primary-color, 12%);
$color-darker: darken($primary-color, 20%);

$dark: rgb(49, 49, 49);
$highlight-color:yellow;
$border-light: 1px solid rgb(230, 230, 230);
$sidemenu-break-width: 720px;
// variables
$border-radius: 1rem;

$input-background:rgb(239, 255, 255);
$input-border: rgba($primary-color, 0.2);

$institutions: (
  cs:orange,
  cs-ad: #f1dc61,
  cs-pl: #ff7996,
  cs-fi: #92ccff,
  cs-pay: #9e97ff,
  cs-acc: rgb(41, 129, 156),
  cs-budget: #0099ff,
  cs-pt: #42f8b2,
  cs-mdtu: #6adb60,
  cs-eng: rgb(231, 110, 221),
  cs-audit: #757575
);

html{
  height: 100%;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #ececec;
  font-family: 'Yaldevi', sans-serif !important;
}

// sass imports
@import "sass/mixins";
@import "sass/bootstrap";
@import "sass/layout";
@import "sass/appbar";
@import "sass/navbar";
@import "sass/card";
@import "sass/statcard";
@import "sass/switch";
@import "sass/form";
@import "sass/tag";
@import "sass/text";
@import "sass/list";
@import "sass/scrollbar";
@import "sass/carousel";
@import "sass/pickday";
@import "sass/tree";
@import "sass/sidemenu";
@import "sass/slider";
@import "sass/alert";
@import "sass/pill";
@import "sass/print";
@import "sass/chosen";
@import "sass/timeline";
@import "sass/loginpage";
@import "sass/floatinglabels";
@import "sass/chartjs";

a {
  text-decoration: none;
  color: black;
}

a:hover {
  text-decoration: none;
  color: $color-dark;
}

.text-en{
    font-family: 'Tahoma'!important;
}

img {
  max-width: 100%;
}

h1 {
  color: $primary-color;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin: 1rem;
}

h2 {
  @extend h1;
  font-size: 1.8rem;
}

.lang-en {
  font-family: 'Yaldevi', sans-serif !important;
}

.paragraph {
  text-align: justify;
  text-justify: inter-word;
}

.grayscale{
  filter: grayscale(100%);
}

.btn {

  font-size: 1rem;
  color: white;
  padding: 0.25rem 0.8rem;
  font-size: 1rem;
  transition: background-color 0.5s;

  &.btn-block {
    width: 100%;
  }

  &.btn-round {
    border-radius: 1.5rem;
  }

}

.showonhover {
  opacity: 0;
  pointer-events: none;  /* Prevent clicks when hidden */
  transition: opacity 0.5s ease;
  &:hover{
    opacity: 1;
    pointer-events: auto;
  }
}

.btn-primary {
  background-color: $primary-color;
  border: 1px solid $primary-color;
  border-color: $color-light;
}

.btn-primary:hover {
  background-color: $color-dark;
  border-color: $primary-color;
}

.btn-primary:active {
  background-color: $color-darker;
  border-color: $color-darker;
}

.btn-secondary {
  background-color: rgb(61, 61, 61);
  border-color: rgb(61, 61, 61);
}

.btn-secondary:hover {
  background-color: rgb(48, 48, 48);
}

.btn-active {
  background-color: $color-darker !important;
  border-color: $color-darker;
}

.btn-action{
  background-color: rgb(111, 185, 255);
  border-color: rgb(61, 61, 61);
}
.btn-new{
  padding: 0.2rem 0.1rem;
  background-color: rgb(66, 202, 53);
  border-radius: 2rem;
  color: white;
}

.btn-group.btn-group-block {
  display: flex;
}

.btn-group-block .btn {
  flex: 1;
}

.box-xl {
  max-width: 1280px;
}

.box-lg {
  max-width: 960px;
}

.box-md {
  max-width: 720px;
}

.box-sm {
  max-width: 600px;
}

.box-xs {
  max-width: 480px;
}

[class*="box-"] {
  margin: auto;
}

.z-5 {
  z-index: 5;
}

.z-3 {
  z-index: 3;
}

// text styles
.right {
  text-align: right;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.center-xy {
  text-align: center;
  margin: auto;
}

.center-box {
  vertical-align: middle;
}

.inline {
  display: inline-block;
}

.block {
  display: inline-block;
}

.gm-style .gm-style-iw {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.4rem;
}

.grayscale {
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.hide {
  display: none;
}

.spinner {
  font-size: 2.5rem;
  text-align: center;
  padding: 1rem;
  margin: auto;
}

i {
  min-width: 1.6rem;
  text-align: center;
  margin: auto;
}

.institute-logo {
  padding: 0.2rem;
  margin: auto;
  text-align: center;

  img {
    max-height: 72px;
  }
}

hr {
  color: rgb(34, 34, 34);
  width: 100%;
  margin: auto;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem;
  height: 2px;
  //background-image: linear-gradient(to right, rgba($primary-color, 0), rgba($primary-color, 1), rgba($primary-color, 1), rgba($primary-color, 0));
}

.box-full {
  width: 100%;

  .gradient {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(rgb(0, 0, 0), 0.6), rgba(black, 0), rgba($primary-color, 0), rgba(black, 0.6));
  }

  .background {
    background-repeat: no-repeat;
    width: 100%;
    height: 420px;
    object-fit: cover;
  }
}

.editor-link {
  font-size: 1rem !important;
  color: rgb(0, 125, 228);
  margin-left: 0.5rem;
}

.content-warning {
  font-size: 0.9rem !important;
  color: rgb(170, 85, 5);
}

a.external-link {
  color: $primary-color;
}

.avatar {
  margin: auto;

  img {
    border-radius: 50%;
    object-fit: cover;
    background-color: lighten($primary-color,10);
    transition: background-color 0.5s, transform 0.2s, filter 0.5s ease ;
    overflow: hidden;
    width: 4rem;
    height: 4rem;
    //border: 1px solid rgba(white, 0.2);

    &:hover {
      //background-color: lighten($primary-color, 30);
      //background-color: lighten($primary-color,45);
      transform: scale(1.05);
      filter: brightness(110%);
    }
  }

}

.avatar-xxl {
  @extend .avatar;

  img {
    width: 12rem;
    height: 12rem;
  }
}

.avatar-xl {
  @extend .avatar;

  img {
    width: 9rem;
    height: 9rem;
  }
}

.avatar-lg {
  @extend .avatar;

  img {
    width: 6rem;
    height: 6rem;
  }
}

.avatar-md {
  @extend .avatar;

  img {
    width: 4rem;
    height: 4rem;
  }
}

.avatar-sm {
  @extend .avatar;

  img {
    width: 3rem;
    height: 3rem;
  }
}

.avatar-xs {
  @extend .avatar;

  img {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.col {

  &.switchbox {
    max-width: 6rem;
    text-align: right;
    margin: auto;
    padding: 0.5rem;
  }

  &.iconbox {
    max-width: 4rem;
    text-align: center;
    font-size: 1.8rem;
    //padding: 0.5rem;
  }

}

.w {
  &-1 {
    max-width: 1rem;
  }

  &-2 {
    max-width: 2rem;
  }

  &-3 {
    max-width: 3rem;
  }
}

.profile {

  .profile-image{
    
    img{
      width: 100%;
      object-fit: cover;
    }
  }
  .profile-name {
    font-size: 1.5rem;
    //font-weight: 600;
  }

  .profile-designation {
    font-size: 1rem;
    padding: 0.25rem;
  }

  .profile-institution {
    font-size: 0.9rem;
    color: grey;
    padding: 0.25rem;
  }
}

.statspage-container{

 @extend .card;

  $sidemenu-width: 420px;

  .statspage-sidemenu{
    background-color: rgba($primary-color, 0.1);
    border-right: 1px solid rgb(230, 230, 230);
    box-shadow: -5px 0px 5px 0 rgba(grey, 0.1);
    .title{
      font-size: 1.4rem;
      color: $primary-color;
      text-align: center;
      font-weight: bold;
      padding: 2rem;
    }
    .datalist .listitem{
      font-size: 1.1rem;
      &.active{
        background-color: $primary-color;
        //font-weight: 600;
        a{
          color: white;
        }
      }
      .listitem-content{
        padding: 0.5rem 1rem;
      }
    }
    
    @media(min-width: $sidemenu-width) {
        max-width: $sidemenu-width;
        min-width: $sidemenu-width;    
    }
    @media(max-width: $sidemenu-width) {
        width: 100%;     
    }
  }
  .statspage-stage{
    .title{
      color: $primary-color;
      font-size: 1.4rem;
      font-weight: 600;
      text-align: center;
      padding: 2rem;
    }
    canvas{
      margin: 0 3rem;
    }
  }
}

.chart-container{
  padding: 2rem;
  border-radius: 1rem;
  //border: 1px solid rgb(168, 168, 168);
  //background-color: #ebfffd;
}

.progress {
  margin: auto;
  margin-left: 1rem;

  .progress-bar {
    background-color: teal;
    background-color: #eeab1a;
    border-radius: 0.25rem;
    height: 1.2rem;
  }

  .progress-bar-mini {
    background-color: teal;
    border-radius: 0.25rem;
    height: 1.2rem;
  }
}

// Inventory items statuses
.item-status-1{
  color: rgb(19, 173, 19);
}
.item-status-2{
  color: rgb(218, 160, 0);
}
.item-status-3{
  color: rgb(238, 12, 12);
}
.item-status-4{
  color: rgb(75, 75, 75);
}

.bg2{
  //border: 1px solid #cecece;
  background-color: #f3f3f3;
  border-radius: 0.5rem;
}
