/**
 * Demo Styles
 */

html {
  height: 100%;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background: #fafafa;
  position: relative;
  margin: 0;
  min-height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  font-weight: 300;
  letter-spacing: .025rem;
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* #sidenav {
            min-height: 100vh;
            height: 100%;
            overflow-y: auto;
            position: sticky;
            top: 0;
        }
*/

/* Mobile sidenav styles */
@media (max-width: 767.98px) {
  #sidenav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  #sidenav.show {
    transform: translateX(0);
  }
  
  /* Overlay styles */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    cursor: pointer;
  }
  
  .overlay.show {
    opacity: 1;
    visibility: visible;
  }
  
  /* Prevent body scroll when sidenav is open */
  body.sidenav-open {
    overflow: hidden;
  }
  
  /* Improve mobile toggle button */
  #sidenav-toggle {
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 4px;
  }
  
  #sidenav-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
}

/* Desktop sidenav styles */
@media (min-width: 768px) {
  #sidenav {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
  }
  
  .overlay {
    display: none !important;
  }
}

/* to visualize during development  */
.rb {
  border: 1px solid red;
}

.h1, h1 {
  font-size: 3.6rem;
}

.alert {
  z-index: 10000000;
  position: relative;
  position: fixed;
  width: 100%;
}

@media (max-width: 991.98px) {
  .container-wide {
    max-width: calc(100% - 20px);
  }
}
@media (min-width: 992px) {
  .container-wide {
    /* max-width: calc(100% - 140px); */
    max-width: calc(100% - 50px);
  }
}

.btn {
  border-radius: 8px;
/*  padding: 10px 16px;*/
}

.btn-primary {

}

.text-lg {
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: 0.008em;
  color: #717075;
}

.x-small {
  font-size: .75em;
}
.text-sm {
  font-size: 90%;
}

.nav-pills .nav-link {
  font-weight: normal;
}

.nav-pills:hover .nav-link:hover {
  color: black;
  font-weight: normal;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #141415;
  background-color: #eeedef;
}

.text-grey {
  color: #858488;
}

/*.btn-dark {
  background-color: #ff7e3f;
  border-color: #ec983e;
}

.btn-dark:hover {
  background-color: #ec731a;
  border-color: #f47e00;
}*/

.btn-outline-dark:hover {
  background-color: #17161b;
}

.innerSquare {
  background-color: white;
  border-radius: 5px;
  height: 100%;
  width: 100%;
}

.rainbowGradient {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 5px;
  box-shadow: inset 0 0 12px 12px white, inset 0 0 3px 2px white;
  background: linear-gradient(to right, orange , yellow, green, cyan, blue, violet);
}
/*<div class="rainbowGradient">
  <div class="innerSquare">
    <h1>Hello World!</h1>
  </div>
</div>*/

.text-gradient {
  background: -webkit-linear-gradient(315deg, #1e30f3 0%, #e21e80 100%);
    background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav, footer {
    letter-spacing: 1px;
}

.navbar {
  padding: .5rem 1rem;
  position: relative;
  z-index: 1030;
}

.nav-item {
  margin-left: .5rem;
  margin-right: .5rem;
}

.garamond {
  font-family: 'EB Garamond';
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    font-family: 'EB Garamond';
    color: #333;
}

.text-muted {
  color: #a7adb3 !important;
}

.nav-link {
  color: #737373;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
  font-kerning: 0px;
}

.lead {
  font-family: helvetica, arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
}

.sm-lead {
  font-size: 1.2rem !important;
}

.jumbotron {
  margin-bottom: 0;
}

/*.h1, h1 {
    font-size: 2.8125rem;
}
*/
.btn-google {
  color: white;
  background-color: #ea4335;
}

.btn-google:hover {
  color: white;
  background-color: #dc3f31;
}

.card-signin {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
}

.card {
  border-radius: 10px;
}

footer {
  position: absolute;
  right: 0;
  bottom: -350px;
  left: 0;
  padding: 1rem;
/*  background-color: #151b26;*/
/*  color: #f2f2f2;*/
  min-height: 350px;
}

footer a {
  color: #17161b;
  font-weight: 400;
}

@media (min-width: 991.98px) {
  section {
    padding: 120px 0;
  }
}
section {
  padding: 20px 0;
}

/*.gradient-background {
  background: linear-gradient(200deg,#fbe448,#bf5630,#30d4e7,#0e66b5,#f54e77,#c13181);
  background-size: 360% 360%;
  animation: gradient-animation 36s ease infinite;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
*/
.hero {
  padding: 130px 0 80px 0;
}

.lead {
  font-size: 1.2rem;
}
.text-lg {
  font-size: 120%;
}

.text-md {
  font-size: 110%;
}

.tall {
  min-height: 600px;
}

.display-inline {
  display: inline;
}

.form-control {
/*  height: calc(2.75rem + 2px);*/
  font-weight: 300;
}
.form-control::placeholder {
  font-weight: 300;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: white;
    text-decoration: none;
    background-color: #7c7cff;
}

.dropdown-item {
    padding: 0.60rem 1.5rem;
}

.dropdown-divider {
  margin:0;
}

.edit-in-place, .edit-in-place:focus {
  overflow: auto;
  outline: none;

  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;

  resize: none; /*remove the resize handle on the bottom right*/

}

.edit-in-place:focus {
  background: #fefefe !important;
}

.edit-in-place:hover {
  /* background: #f4f4f4; */
}

.no-padding {
  padding: 0;
}

.hover-dark:hover {
  background: #eee;
/*  cursor: pointer;*/
}

/* input:required {
    border:1px solid red;
} */

.gradient {
    background: #9CECFB;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #0052D4, #65C7F7, #9CECFB);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #0052D4, #65C7F7, #9CECFB);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    min-height: 680px;
}


.mt-1-negative {
  margin-top: -12px !important;
}
.mr-1-negative {
  margin-right: -12px !important;
}

.large {
  font-size: 140%;
}

.table td, .table th {
    padding-right: .5rem;
    padding-left: .5rem;
    padding-top: .2rem;
    padding-bottom: .2rem;
    /*height: 30px;*/
    border: none;
}

input.pe-text:hover {
  cursor: text;
}

th {
  font-size: 12px;
  font-weight: normal;
}

.no-style {
  border: none;
  background-color: white !important;
}


.dropdown-menu.show {
  display: block;
  z-index: 10000;
}

.hover-menu, .dropdown, .dropdown-menu {
  z-index: 10000;
}

.pill-input {
  border-radius: 2rem;
}

.btn-pill {
  border-radius: 2rem;
}

.form-control.no-outline:focus {
  box-shadow: none;
  border: 1px solid #ced4da;
}

.edit-in-place .ql-editor {
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bs-body-color);
}

#situation .ql-editor {
  min-height: 80px;
}
#background .ql-editor {
  min-height: 150px;
}
#assessment .ql-editor {
  min-height: 350px;
}

.form-control:focus {
  border-color: #e1e4e8;
}

/*.edit-in-place {
  border-bottom-right-radius: 7px;
  border-bottom-left-radius: 7px;
  border-top-right-radius: 0px;
  border-top-left-radius: 0px;
}
.ql-toolbar {
  border-top-right-radius: 7px;
  border-top-left-radius: 7px;
}
*/
.ql-tooltip {
  left: 0!important;
}

p {
  margin-bottom: 3px;
}

.white-space-pre-wrap {
  white-space: pre-wrap;
}

.avatar-clip-circle-sm {
  clip-path: circle(10px at center);
}

.avatar-clip-circle {
  clip-path: circle(15px at center);
}

.avatar-clip-circle-lg {
  clip-path: circle(60px at center);
}

.cell-form-control {
  border: 0;
  width: 100%;
}

.cell-form-control:hover {
  background: #f4f4f4 !important;
}

.form-select:hover {
  background-color: #f4f4f4 !important; /* A light grey background on hover */
}

.form-select, input[type='date'] {
  font-size: .85rem;
}

.dashboard-card{
	text-decoration: none;
}

.dashboard-card:hover{
  background-color: var(--bs-tertiary-bg-subtle);
}

.card-title {
  text-wrap: auto;
}

.recent-sbars {
  min-height: 170px;
}

.supporters-list {
  position: absolute;
  bottom: -18px;
  right: 10px;
}

/* HOVER MENUS */

.recommendation, 
.change {
  position: relative;
  transition: background-color 0.2s ease;
}

.recommendation:hover {
  background-color: #f8f9fa;
}

.recommendation .hover-menu, 
.change .hover-menu {
  position: absolute;
  top: -15px;
  right: 10px;
  display: none;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  padding: 4px;
  gap: 4px;
  flex-direction: row;
  align-items: center;
  z-index: 10;
}

.change .hover-menu {
  top: 0px;
}

.recommendation:hover .hover-menu, 
.change:hover .hover-menu {
  display: flex;
}

.recommendation .hover-menu button, 
.recommendation .hover-menu a, 
.change .hover-menu button, 
.change .hover-menu a {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.recommendation .hover-menu button:hover, 
.recommendation .hover-menu a:hover,
.change .hover-menu button:hover, 
.change .hover-menu a:hover {
  background-color: #f0f0f0;
}

.recommendation .hover-menu i,
.change .hover-menu i {
  font-size: 16px;
  color: #6c757d;
}

.recommendation .hover-menu button:hover i, 
.recommendation .hover-menu a:hover i,
.change .hover-menu button:hover i, 
.change .hover-menu a:hover i {
  color: #495057;
}

.hover-menu .dropdown .dropdown-menu.show {
  position: relative;
  z-index: 10000;
}

/*PLUS LIST*/
ul.plus-list {
  list-style: none;
  padding-left: 1.5em;
}

ul.plus-list li::before {
  font-family: "Font Awesome 5 Free";
  content: "\f067"; /* fa-plus */
  color: #28a745;
  font-weight: 900;
  margin-right: 0.5em;
  margin-left: -1.5em;
  display: inline-block;
  width: 1em;
}

ul.cons-list {
  list-style: none;
  padding-left: 1.5em;
}

ul.cons-list li::before {
  font-family: "Font Awesome 5 Free";
  content: "\f068"; /* fa-minus */
  color: #dc3545;
  font-weight: 900;
  margin-right: 0.5em;
  margin-left: -1.5em;
  display: inline-block;
  width: 1em;
}



ul.pros-cons {
  list-style: none;
  padding-left: 1.5em;
}

ul.pros-cons li::before {
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 0.5em;
  margin-left: -1.5em;
  display: inline-block;
  width: 1em;
}

ul.pros-cons li.pro::before {
  content: "+";
  color: #28a745;
}

ul.pros-cons li.con::before {
  content: "−";
  color: #dc3545;
}

.rec-content.collapsible {
  position: relative;
  overflow: hidden;
  max-height: 100px;
  transition: max-height 0.3s ease;
}

.content-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15px;
  /*background: linear-gradient(transparent, white);*/
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.wider-column {
  width: 30%; /* or a percentage like 20% */
}
.narrower-column {
  width: 13%; /* or a percentage like 20% */
}

.narrowest-column {
  width: 10%; /* or a percentage like 20% */
}


/* Container for color square and select */
.project-select-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Style the color square */
.color-square {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Make select take remaining space */
.project-select {
  flex: 1;
}

.list-group-item.active {
  z-index: 0;
}

/* Mobile navbar responsive styles */
@media (max-width: 767.98px) {
  /* Improve navbar layout on mobile */
  .navbar {
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
  }
  
  /* Ensure brand doesn't get too small */
  .navbar-brand {
    font-size: 1.7rem;
    margin-right: 0.5rem;
    order: 2;
  }
  
  /* Sidenav toggle positioning - to the left of brand */
  #sidenav-toggle {
    order: 1;
    margin-right: 0.5rem;
  }
  
  /* Style the navbar toggler to match sidenav-toggle */
  .navbar-toggler {
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: transparent;
    padding: 8px;
    border-radius: 4px;
    order: 3;
    margin-left: auto;
    width: auto;
    height: auto;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
  }
  
  .navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }
  
  /* Override Bootstrap's default navbar-toggler sizing */
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  .navbar-toggler-icon {
    width: 1.25em;
    height: 1.25em;
  }
  
  /* Ensure navbar-collapse works properly */
  .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
  }
  
  /* Override any conflicting styles that might prevent collapse */
  .navbar-collapse.collapse:not(.show) {
    display: none !important;
  }
  
  .navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
  }
  
  /* Adjust layout when sidenav toggle is hidden */
  .navbar.no-sidenav .navbar-toggler {
    order: 2;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  /* Improve collapsed navbar appearance */
  .navbar-collapse {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  /* Ensure Bootstrap collapse works properly */
  .navbar-collapse.collapse {
    display: none;
  }
  
  .navbar-collapse.collapse.show {
    display: block;
  }
  
  .navbar-collapse.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
  }
  
  /* Stack navigation items vertically on mobile */
  .navbar-collapse .navbar-nav {
    flex-direction: column;
    align-items: flex-start !important;
    width: 100%;
  }
  
  .navbar-collapse .nav-item {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .navbar-collapse .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
  }
  
  /* Style search form on mobile */
  .navbar-collapse form.d-flex {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .navbar-collapse .input-group {
    width: 100%;
  }
  
  /* Style buttons on mobile */
  .navbar-collapse .btn {
    width: 100%;
    margin: 0.25rem 0;
    justify-content: center;
  }
  
  /* Improve dropdown positioning on mobile */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
  }
  
  /* Ensure proper spacing for right-aligned items */
  .navbar-collapse .navbar-nav.ms-auto {
    justify-content: flex-start !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  /* Hide sidenav toggle when navbar is collapsed to avoid confusion */
  .navbar-collapse.show ~ .btn#sidenav-toggle {
    display: none;
  }
  
  /* Hide sidenav toggle when sidenav doesn't exist */
  .btn#sidenav-toggle[style*="display: none"] {
    display: none !important;
  }
}

/* Ensure proper spacing between navbar elements */
.navbar .navbar-nav {
  gap: 0.5rem;
}

/* Improve button spacing in navbar */
.navbar .btn {
  margin: 0 0.25rem;
}

/* Fix navbar brand spacing */
.navbar-brand {
  margin-right: 1rem;
}

/* Ensure proper dropdown positioning */
.dropdown-menu-end {
  right: 0;
  left: auto;
}

/* Ensure dropdown menus are visible and properly positioned */
.dropdown-menu {
  position: absolute;
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
}

.dropdown-menu.show {
  display: block;
}



/* Ensure proper button styling in navbar */
.navbar .btn {
  white-space: nowrap;
}

/* Fix search form styling */
.navbar .input-group {
  max-width: 300px;
}

@media (max-width: 767.98px) {
  .navbar .input-group {
    max-width: 100%;
  }
}

.avatar-stack {
  position: relative;
  z-index: 0;
}

.avatar-stack img {
  --total: -100;
  width: 30px; 
  margin-left: -19px;
  position: relative;
  /* Calculate z-index: total - index */
  z-index: calc(var(--total) - var(--index));
}

.avatar-stack img:first-child {
  margin-left: 0;
}