/*
 * Using: Start Bootstrap - Simple Sidebar (https://startbootstrap.com/template-overviews/simple-sidebar)
 * Copyright 2013-2019 Start Bootstrap
 * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap-simple-sidebar/blob/master/LICENSE)
 */

:root {
  /* Colors */
  --encor-light-blue: #065eaa;
  --encor-dark-blue: #1a3867;
  /* --encor-lighter-blue: #a1b9e7; */
  /* RoboCor */
  --encor-lighter-blue: #70b1ff;
  /* Fonts */
  --semibold: 500;
  /* Variables */
  --sidebar-width: 22rem;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  font-family: Montserrat, sans-serif !important;
}
body.client {
  background-color: #fafafa !important;
}

h1 {
  font-size: 2.25rem;
}

#dashboard-sidebar {
  display: flex;
  flex-direction: column;
  position: fixed;
  color: white;
  z-index: 999;
  min-height: 100vh;
  margin-left: calc(var(--sidebar-width) * -1);
  /* RoboCor background */
  background-image: linear-gradient(
    to right,
    #1c4d88 0%,
    #2b76ce 99%,
    #2b76ce 100%
  );
  /* Custom background */
  /* background-color: var(--encor-light-blue);
  box-shadow: -10px 0 15px -6px var(--encor-dark-blue) inset;
  -moz-box-shadow: -10px 0 15px -6px var(--encor-dark-blue) inset;
  -webkit-box-shadow: -10px 0 15px -6px var(--encor-dark-blue) inset; */
  /* Transition */
  transition: margin 0.25s ease-out;
  -o-transition: margin 0.25s ease-out;
  -moz-transition: margin 0.25s ease-out;
  -webkit-transition: margin 0.25s ease-out;
}

#dashboard-sidebar .sidebar-heading {
  background-color: #ffffff;
  border-right: 1px solid #ddd;
}
#dashboard-sidebar .sidebar-heading .logo {
  height: 3rem;
  display: block;
  margin: 1rem auto;
}

#dashboard-sidebar .list-group {
  width: var(--sidebar-width);
}

#dashboard-sidebar .list-group a.list-group-item {
  background: none;
  color: white;
  font-weight: var(--semibold);
  padding: 1.4rem;
}

#dashboard-sidebar .list-group a.list-group-item:hover {
  /* Custom version */
  /* background-color: var(--encor-dark-blue); */
  /* RoboCor version */
  color: var(--encor-lighter-blue);
}

#dashboard-sidebar .list-group a.list-group-item.active {
  /* Custom background */
  /* background-color: var(--encor-dark-blue) !important;
  border-color: var(--encor-dark-blue) !important; */
  /* RoboCor background */
  background-color: #3781d8 !important;
  border-color: #2a74cb;
}
#dashboard-sidebar .list-group a.list-group-item.active:hover {
  color: inherit;
}

#dashboard-sidebar .list-group .icon {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  fill: var(--encor-lighter-blue);
}

#dashboard-sidebar .documents-sub-menu {
  background-color: var(--encor-dark-blue);
  font-size: 0.9em;
}

#dashboard-sidebar .documents-sub-menu a.active {
  font-weight: bold;
}

@media (max-width: 992px) {
  #dashboard-sidebar .main-consultant-contact * {
    font-size: 1rem;
  }
}
#dashboard-sidebar .main-consultant-contact .icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.7rem;
  fill: white;
}
#dashboard-sidebar .main-consultant-contact .consultant-photo {
  height: 7rem;
  padding-bottom: 0.5rem;
}

#menu-toggle {
  background-color: var(--encor-light-blue);
  color: white;
}

#page-content-wrapper {
  width: 100vw;
}

#page-content-wrapper .navbar {
  min-height: 5rem;
  background-color: #ffffff !important;
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.05);
}

#page-content-wrapper .footer {
  width: 100%;
  border-top: 2px solid #ddd;
  /* Total height: 10rem (7rem address + 3rem copyright) */
}
#page-content-wrapper .footer .footer-logo {
  height: 4rem;
  margin: 2rem 0 0 0;
  /* Total height: 6.5rem */
}
#page-content-wrapper .footer .footer-address {
  line-height: 1.5rem;
  padding-top: 1rem;
  /* Total height: 7rem (4 lines) */
}
#page-content-wrapper .footer .footer-links {
  line-height: 1.5rem;
  padding-top: 1rem;
}
#page-content-wrapper .footer .copyright-text {
  font-size: 0.9rem;
  line-height: 1.5rem;
  margin: 0;
  padding: 1rem 0 0.5rem 0;
}

#wrapper.toggled #dashboard-sidebar {
  margin-left: 0;
}

@media (min-width: 768px) {
  /* Set fixed height and stickyness from MD */
  #page-content-wrapper .footer {
    background-color: #eee;
    height: 11rem; /* Should be fixed, combination of Footer elements + 1rem */
    position: absolute;
    bottom: 0;
    /* Because of sidebar, need to put it all the way to the left */
    left: 0;
  }
  body.client {
    margin-bottom: 11rem; /* Margin bottom by footer height */
  }
}

@media (min-width: 992px) {
  #dashboard-sidebar {
    margin-left: 0;
  }
  #page-content-wrapper {
    min-width: 0;
    width: 100%;
    margin-left: var(--sidebar-width); /* Offset by sidebar width */
  }
  #page-content-wrapper .footer {
    padding-left: var(--sidebar-width); /* Offset by sidebar width */
  }
  #dashboard-sidebar .list-group {
    width: var(--sidebar-width); /* Should be fixed */
  }
}

/* Login page */
.login-logo {
  height: 6rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.login-page {
  padding: calc(10% + 6rem) 10% calc(5% + 3rem) 10% !important;
}
.login-page h1 {
  font-size: 1.6rem !important;
  font-weight: 400;
}
@media (min-width: 768px) {
  .login-page h1 {
    font-size: 2.25rem !important;
  }
  .login-page h1 strong {
    font-size: 3rem !important;
    font-weight: 700;
    line-height: 1.5;
  }
}
@media (min-width: 992px) {
  .login-page {
    min-height: 100vh;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 40%,
        rgba(0, 0, 0, 0) 85%
      ),
      url("/static/assets/login-bg-bluesky-flipped.5a05cadddfe6.jpg") right bottom no-repeat;
    background-size: cover;
  }
}

.login-footer {
  text-align: left;
  clear: both;
  position: relative;
  height: 3rem;
  margin-top: -3rem;
  padding-left: 3rem;
}
@media (max-width: 768px) {
  .login-footer {
    margin-top: 0rem;
  }
}

/* Documents */
.document-table {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 1.8rem;
  border: 1px solid #eee;
  background-color: white;
}
.document-table h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.document-table .pagination li {
  padding: 0 0.5rem;
}
.document-table .pagination li.active {
  font-weight: bold;
}

/* Profile */
.profile-info .consultant-photo {
  height: 10rem;
  padding-bottom: 0.5rem;
}

/* Bootstrap overrides */
.nav-pills .nav-link.active {
  background-color: var(--encor-light-blue);
}

/* Button styling */
.btn-encor-light {
  color: #fff;
  background-color: var(--encor-light-blue);
  border-color: var(--encor-light-blue);
}
.btn-encor-light:hover {
  color: #fff;
  background-color: var(--encor-dark-blue);
}
.btn-encor-dark {
  color: #fff;
  background-color: var(--encor-dark-blue);
  border-color: var(--encor-dark-blue);
}
.btn-encor-dark:hover {
  color: #fff;
  background-color: #333;
  border-color: #000;
}

/* Text styling */
.text-encor-light {
  color: var(--encor-light-blue);
}
.text-encor-lighter {
  color: var(--encor-lighter-blue);
}
.text-encor-dark {
  color: var(--encor-dark-blue);
}

/* Background styling */
.bg-encor-light {
  background-color: var(--encor-light-blue) !important;
}
.bg-encor-lighter {
  background-color: var(--encor-lighter-blue) !important;
}
.bg-encor-dark {
  background-color: var(--encor-dark-blue) !important;
}

/* Border styling */
.border-encor-light {
  border-color: var(--encor-light-blue) !important;
}
.border-encor-lighter {
  border-color: var(--encor-lighter-blue) !important;
}
.border-encor-dark {
  border-color: var(--encor-dark-blue) !important;
}

/* Utilities */
.cursor-pointer {
  cursor: pointer;
}
.icon-button {
  appearance: none;
  -webkit-appearance: none;
  border: none;
}

/* EncorAdmin notifications */
.notifications-toggle {
  position: relative;
}
.notification-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: #dc3545;
  color: #fff;
  font-size: 0.65rem;
  line-height: 18px;
  text-align: center;
}
.notifications-menu {
  width: 360px;
  max-width: 90vw;
  padding: 0;
}
.notifications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
}
.notifications-list {
  max-height: 320px;
  overflow-y: auto;
}
.notification-item {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f3f5;
  align-items: flex-start;
}
.notification-item:last-child {
  border-bottom: none;
}
.notification-item.unread {
  background: #f8f9fa;
}
.notification-body {
  flex: 1;
  min-width: 0;
}
.notification-title {
  font-weight: 600;
  font-size: 0.9rem;
}
.notification-description {
  font-size: 0.85rem;
  color: #495057;
  white-space: pre-line;
}
.notification-meta {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.notification-dismiss {
  padding: 0;
  line-height: 1;
}
.notifications-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid #e9ecef;
  background: #fff;
}
.notifications-empty,
.notifications-loading {
  padding: 1rem 0.75rem;
  text-align: center;
}
