html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background:#f5f9fc !important
}

/* Notes */

.app-header h2 {
  font-size: 1.222rem;
  font-weight: 800;
}
.app-header span.friend-status {
  font-size: 0.666rem;
}

.app-message-body {
  background-color: rgba(233, 233, 233, 0.6);
  padding: 24px 16px 0;
  font-size: 0.8rem;
  overflow-y: auto;
  max-height: 50vh;
}


.app-message-body .message-wrapper {
  display: flex;
  flex-direction: column;
}
.app-message-body .message-wrapper.self{
  align-items: flex-start;
  
}
.app-message-body .message-wrapper.self .message-meta {
  justify-content: flex-start;
}

.app-message-body .message-wrapper.self .message, .message-wrapper.self .message {
  background: #5c60f5;
  color: #fff;
}

.app-message-body .message-wrapper.user {
  align-items: flex-end;
}
.app-message-body .message-wrapper.user .message-meta {
  flex-direction: row-reverse;
}

.app-message-body .message-wrapper.user .message, .message-wrapper.user .message {
  background-color: #fff;
  color: black;
}

.message {
  max-width: 66.6%;
  padding: 8px;
  border-radius: 5px;
  box-shadow: 4px 4px rgba(200, 200, 200, 0.25);
  font-size: 0.9rem;
  display: flex;
  flex: 1 auto;
}

.message-meta {
  display: flex;
  flex: 1 auto;
  margin: 10px 5px 15px;
}

.message-meta .timestamp {
  color: #999;
  font-size: 0.666rem;
  line-height: 24px;
  display: inline-block;
  margin: 5px;
}

.app-input-area {
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}
.app-input-area input[type=text] {
  flex: 1 80%;
  border: none;
  padding: 0.33rem;
  margin: auto 10px;
  font: 0.9rem var(--font-face);
  outline: none;
}
.app-input-area button[type=submit] {
  flex: 1 5%;
  border: none;
  margin: 0 auto;
  /*background: linear-gradient(45deg, #fb551c, #f7b633);*/
  background-color: transparent;
  outline: none;
  cursor: pointer;
}
.app-input-area button[type=submit] svg {
  fill: #f59300;
}
.app-input-area button[type=submit]:hover svg {
  fill: #f7b633;
}

.footer {
bottom: 0;
  width: auto !important;
  position: absolute;
}

.form-inline {
  display: inline;
}
.form-inline button {
  margin-bottom: 2px;
}

.btn.active {
  background-color: #5c60f5 !important; 
 color: #fff !important; 
  border-color: #5c60f5 !important; 
}

.badge-primary {
  background-color: #5c60f5; 
  color: #fff;
}

.bg-success-og {
    background-color: #28a745; 
    color: #fff;    
}

/* Leads */
.card-footer.archive, .card-body.archive, .archive.collapse, .archive.collapsing {
  color: #808080;
  background-color: #f2f2f2; !important;
}


.card-footer.offtrack, .card-body.offtrack, .offtrack.collapse, .offtrack.collapsing, .offtrack span, .offtrack, .offtrack p {
  color:  #e67e00 !important;
  background-color: #fff4e6;
  border-color: #ffe8cc;
}


#new-lead-btn, #schedule-visit-btn {
  font-size: 23px; 
  padding: 0 10px;
}

.kanban-group {
  width: 100%;
}

.lead-column {
  height: auto;
  margin-bottom: 2rem;
}

.pointer {
  cursor: pointer;
}

.scrollable-container {
  height: 200px; /* Set the height of the container */
  overflow-y: scroll; /* Enable vertical scrollbar */
}

/* Works for webkit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  -webkit-appearance: none;
  background-color: #f5f9fc;
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

/* Last Activity */
.last-activity {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-weight: bold;
  font-size: 16px;
  margin: 0 auto;
}

.last-activity::before {
  content: attr(data-days);
  position: absolute;
  color: white;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #28a745; /* Default color */
}

.last-activity[data-color='orange']::before {
  background-color: #ffc107; /* Amber color */
}

.last-activity[data-color='red']::before {
  animation: blink-animation 0.4s infinite alternate; /* Flashing red color */
}

.last-activity[data-color='gray']::before {
  color: #f2f2f2 !important;
  background-color: #808080   !important; /* Light gray background for archived */
  animation: none  !important; /* No flashing for archived */
}


@keyframes blink-animation {
  from { background-color: #dc3545; }
  to { background-color: transparent; color: #dc3545; }
}

/* Visits */

/* Last Activity */
.visit-tracker {
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-weight: bold;
  font-size: 16px;
  margin: 0 auto;
}

.visit-tracker::before {
  content: attr(data-days);
  position: absolute;
  color: white;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #28a745; /* Default color */
}

.visit-tracker[data-color='orange']::before {
  background-color: #ffc107; /* Amber color */
}

.visit-tracker[data-color='red']::before {
  background-color: #dc3545;
}

/* Toastify */
.toast.on {
  width: 100%;
}

/* Tablet */
@media (min-width: 768px) {
  .lead-column {
    height: 65vh;
    margin-right: 1rem;
    overflow: visible;
    overflow-y: scroll;
    margin-bottom: 2rem;
    width: 450px;
  }
  
  .confetti {
    height: 65vh;
  }

  .lead-card {
    margin-right: 1rem;
  }

  #new-lead-btn, .schedule-btn {
    font-size: 26px;
  }
}

/* Confetti */
.confetti {
  display: block;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 100%;
  height: 65vh;
  overflow: hidden;
 
  left: 0;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 30px;
  background: #ffd300;
  top: 0;
  opacity: 0;
}
.confetti-piece:nth-child(1) {
  left: 7%;
  -webkit-transform: rotate(-40deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 182ms;
  -webkit-animation-duration: 1116ms;
}
.confetti-piece:nth-child(2) {
  left: 14%;
  -webkit-transform: rotate(4deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 161ms;
  -webkit-animation-duration: 1076ms;
}
.confetti-piece:nth-child(3) {
  left: 21%;
  -webkit-transform: rotate(-51deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 481ms;
  -webkit-animation-duration: 1103ms;
}
.confetti-piece:nth-child(4) {
  left: 28%;
  -webkit-transform: rotate(61deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 334ms;
  -webkit-animation-duration: 708ms;
}
.confetti-piece:nth-child(5) {
  left: 35%;
  -webkit-transform: rotate(-52deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 302ms;
  -webkit-animation-duration: 776ms;
}
.confetti-piece:nth-child(6) {
  left: 42%;
  -webkit-transform: rotate(38deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 180ms;
  -webkit-animation-duration: 1168ms;
}
.confetti-piece:nth-child(7) {
  left: 49%;
  -webkit-transform: rotate(11deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 395ms;
  -webkit-animation-duration: 1200ms;
}
.confetti-piece:nth-child(8) {
  left: 56%;
  -webkit-transform: rotate(49deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 14ms;
  -webkit-animation-duration: 887ms;
}
.confetti-piece:nth-child(9) {
  left: 63%;
  -webkit-transform: rotate(-72deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 149ms;
  -webkit-animation-duration: 805ms;
}
.confetti-piece:nth-child(10) {
  left: 70%;
  -webkit-transform: rotate(10deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 351ms;
  -webkit-animation-duration: 1059ms;
}
.confetti-piece:nth-child(11) {
  left: 77%;
  -webkit-transform: rotate(4deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 307ms;
  -webkit-animation-duration: 1132ms;
}
.confetti-piece:nth-child(12) {
  left: 84%;
  -webkit-transform: rotate(42deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 464ms;
  -webkit-animation-duration: 776ms;
}
.confetti-piece:nth-child(13) {
  left: 91%;
  -webkit-transform: rotate(-72deg);
  -webkit-animation: makeItRain 1000ms infinite ease-out;
  -webkit-animation-delay: 429ms;
  -webkit-animation-duration: 818ms;
}
.confetti-piece:nth-child(odd) {
  background: #7431e8;
}
.confetti-piece:nth-child(even) {
  z-index: 1;
}
.confetti-piece:nth-child(4n) {
  width: 5px;
  height: 12px;
  -webkit-animation-duration: 2000ms;
}
.confetti-piece:nth-child(3n) {
  width: 3px;
  height: 10px;
  -webkit-animation-duration: 2500ms;
  -webkit-animation-delay: 1000ms;
}
.confetti-piece:nth-child(4n-7) {
  background: red;
}
@-webkit-keyframes makeItRain {
  from {opacity: 0;}
  50% {opacity: 1;}
  to {-webkit-transform: translateY(350px);}
}

.hidden {
  display: none;
}

