@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
:root {
  --margin-bottom: 16px;
}

* {
  margin: 0;
  padding: 0;
  font-family: DM Sans, sans-serif;
  box-sizing: border-box;
}

.left-panel {
  background-image: url(/images/bluerectangle.png);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px;
  min-height: 100vh;
}
.right-panel {
  padding-left: 148px;
  padding-right: 148px;
  padding-top: 85px;
  padding-bottom: 124px;
}

.login_line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  h3 {
    font-size: 24px;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 0 !important;
  }
  span{
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: #595970;
  }
}

input[type="text"],
input[type="password"],
input[type="email"] {
  padding: 12px 16px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  border: 1px solid #d3dce6;
  &::placeholder {
    font-size: 14px;
    line-height: 21px;
    font-weight: 400;
    color: #8A8A9C;
  }
  &:focus,
  &:visited,
  &:active {
    outline: none;
    border: 1px solid #111111;
    box-shadow: none;
  }
}

label.form-label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #595970;
  position: relative;
  &::after{
    content: "*";
    position: absolute;
    color: red;
  }
}

#clientForm,
#forgot-password-form,
#password-reset-form,
#resend-verification,
#loginForm {
  .tnc {
    font-size: 12px;
    line-height: 16px;
    font-family: DM Sans;
    font-weight: 500;
    color: #8a8a9c;
    a {
      color: #4141ee;
    }
  }
  button {
    background: #4141ee;
    color: white;
    font-size: 14px;
    line-height: 21px;
    padding: 14px 16px;
  }
}

.error-message {
  color: #dc3545;
  font-size: 12px;
  line-height: 16px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn 0.3s ease-in-out;
}

.error-message::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-control.border-danger {
  border-color: #dc3545 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-control.border-danger:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

.remember {
  label{
    align-self: center;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: #595970;
  
  }
  .custom-checkbox {
    height: 16px;
    width: 16px;
    align-self: center;
  }
}
.forgot{
  a{
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: #4141EE;
  }
}

.auth-header{
  h3{
    font-size: 24px;
    line-height: 36px;
    font-weight: 700;
    margin-bottom: 0;
  }
  p{
    margin-top: 3px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: #595970;
  }
}
.back-to-login{
  text-align: center;
  margin-top: 16px;
  a{
    font-size: 14px;
    line-height: 21px;
    font-weight: 500;
    color: #4141EE;
  }
}

.reset-password{
  margin-top: 32px;
  p{
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
    margin-bottom: 0;
  }
  a{
    font-size: 18px;
    line-height: 30px;
    font-weight: 600;
    color: #FFFFFF;
  }
}

.mb-16{
  margin-bottom: var(--margin-bottom);
}
.mb-8{
  --margin-bottom: 8px;
  margin-bottom: var(--margin-bottom);
}
.mb-24{
  --margin-bottom: 24px;
  margin-bottom: var(--margin-bottom);
}

/* for main-container */
.main-container{
  display: flex;
  background: #F6F8FB;
}

/* for left sidebar */
.sidebar-left {
  width: 192px;
  min-height: 100vh; 
  transition: all 300ms ease-out;
  background: #FFFFFF;
  > div.logo{
    margin-bottom: 70px;
    padding: 24px 31px;
    position: relative;
    img:first-child{
      margin-right: 5px;
    }
    img.left-arrow{
      position: absolute;
      right: -12px;
      top: calc(50% - 12px);
      cursor: pointer;
    }
  }
  nav{
    padding: 0 24px 0 22px;
    width: 100%;
    ul{
      list-style: none;
      padding: 0;
      margin: 0;
      width: 100%;
      a{
        padding: 12px 16px;
        display: block;
        text-decoration: none;
        border-radius: 40px;
        img{
          height: 16px;
          width: 16px;
          margin-right: 8px;
        }
        span{
          font-size: 12px;
          line-height: 16px;
          font-weight: 500;
          color: #595970;
        }
        &:hover{
          background: #F6F8FB;
          color: #4141EE;
        }
      }
    }
  }
  &.close{
    width: 60px;
    nav{
      padding: 0 9px;
      a{
        padding: 12px;
        span{
          display: none;
        }
      }
    }
    > div.logo{
      padding: 24px 20px 24px 15px;
      img:nth-child(2){
        display: none;
      }
      img.left-arrow{
        rotate: 180deg;
      }
    }
  }
}

/* for main content */
.main-content {
  width: calc(100% - 192px);
  min-height: 100vh;
  padding: 50px;
  &.sidebar-close{
    width: calc(100% - 60px);
  }
}

/* Auto-suggest styles */
#tagContainer {
    position: relative;
}

#tagSuggestions {
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tag-suggestion {
    cursor: pointer;
}

.tag-suggestion:hover {
    background-color: #f8f9fa;
}

#selectedTags .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
}

#selectedTags .btn-close {
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

/* Dropdown menu styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  min-width: 200px;
  margin-top: 8px;
}

.dropdown-item {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #595970;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item i {
  width: 16px;
  height: 16px;
  color: #595970;
}

.dropdown-item:hover {
  background-color: #EEF2FF;
  color: #4F46E5;
}

.dropdown-item:hover i {
  color: #4F46E5;
}

.dropdown-item.active {
  background-color: #EEF2FF;
  color: #4F46E5;
}

.dropdown-item.active i {
  color: #4F46E5;
}

.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link.dropdown-toggle::after {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.nav-link.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}