.bg-blue{
    background-color: #03455f;
}
@media (max-width: 1199.98px) {
.dropdown:hover>.dropdown-menu {
    display: none;
  }

  .dropdown>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
      pointer-events: none;
  }
}
.dropdown:hover>.dropdown-menu {
    display: block;
  }

  .dropdown>.dropdown-toggle:active {
    /*Without this, clicking will make it sticky*/
      pointer-events: none;
  }
  @media (max-width: 1199.98px) {
    .navbar-expand-xl .navbar-collapse {
        -webkit-box-shadow: 0px 10px 30px rgba(83, 88, 93, 0.4);
        box-shadow: 0px 10px 30px rgba(83, 88, 93, 0.4);
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--bs-body-bg);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    .navbar-expand-xl .navbar-collapse {
        background-color: #03455f;
    }
}
.btn-blue{
    background-color: #066f96;
    color: #ffffff;
}
.btn-blue:hover{
  background-color: #066f96;
  color: #ffffff;
}
.btn-blue-outline {
  color: #066f96;
  border: 1px solid #066f96;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

.btn-blue-outline:hover {
  background-color: #066f96;
  color: #fff;
}
.group-btn-text{
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
}
.group-btn-input{
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
}
.bg-light-pink{
    background-color: #fef3f3;
}
.bg-light-green{
    background-color: #e8f7e9;
}
.group-btn-input:focus{
border-color: #dee2e6 !important;
box-shadow: none !important;
}
.chat-wrapper {
  height: calc(100vh - 83px);
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #f6f6f6;
    overflow: hidden;
}

.chat-header {
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 80px; /* space for footer */
}

.chat-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: 60px;
}

.chat-footer input {
    border: none;
    flex: 1;
    padding: 10px 15px;
    border-radius: 20px;
    background: #f1f1f1;
    width: 75%;
}
@media (max-width: 1199.98px) {
    .chat-modal-container {
      position: fixed !important;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: 1055;
      display: none;
      flex-direction: column;
      background-color: #fff;
    }

    .chat-modal-container.show {
      display: flex !important;
    }

    .chat-wrapper {
      height: 100%;
      display: flex;
      flex-direction: column;
      padding: 1rem;
    }

    .chat-body {
      flex: 1;
      overflow-y: auto;
      margin-bottom: 1rem;
    }

    .chat-footer {
      border-top: 1px solid #ccc;
      padding-top: 0.5rem;
    }

    #openChatBtn {
      display: block;
    }
  }

/* Large screens */
@media (min-width: 1200px) {
    video {
      width: 60vw;
    }
  }

  /* Small screens */
  @media (max-width: 1199.98px) {
    video {
      width: 100vw;
    }
  }

  /* Shared */
  video {
    position: fixed;
    top: 82px;
    left: 0;
    height: 100vh;
    object-fit: cover;
  }

.chat-footer input:focus {
    outline: none;
    background: #e7e7e7;
}

.mic-icon {
    margin-left: 10px;
    color: #6b47dc;
    font-size: 1.3rem;
    cursor: pointer;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-image: url('../images/avatar.bmp');
    background-size: cover;
}

.bubble {
    background: white;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 75%;
    font-size: 14px;
}

.timestamp {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.reaction-icons {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.reaction-icons i {
    color: #ccc;
    cursor: pointer;
}

.live-badge {
    font-size: 0.75rem;
    background: #f0ebff;
    color: #6b47dc;
    padding: 3px 8px;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #6b47dc;
    border-radius: 50%;
    margin-right: 5px;
}
.cursor-pointer{
    cursor: pointer;
}
.legend-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  text-align: left;
}
.legend-list li {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}
.legend-color {
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
}
.h-auto{
  height: auto !important;
}
.w-65 {
  width: 65% !important;
}
.bar {
  display: inline-block;
  height: 20px;
}

.country-row {
  vertical-align: middle;
}

.sales-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar Styles */
.sidebar {
  width: 250px;
  min-height: calc(65vh - 83px);
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  z-index: 1000;
}

.sidebar-content {
  height: 100%;
  overflow-y: auto;
}

.sidebar-header {
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.sidebar-link {
  color: #495057;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.sidebar-link:hover {
  background-color: #e9ecef;
  color: #03455f;
  text-decoration: none;
}

.sidebar-link.active {
  background-color: #03455f;
  color: white;
}

.sidebar-link.active:hover {
  background-color: #066f96;
  color: white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -250px;
    top: 76px;
    width: 250px;
    height: calc(65vh - 83px);
    z-index: 1050;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
  }

  .sidebar.show {
    left: 0;
  }

  .main-content {
    width: 100%;
    transition: margin-left 0.3s ease;
  }

  .main-content.shifted {
    margin-left: 0;
  }

  /* Ensure content doesn't get hidden behind sidebar on mobile */
  .d-flex.flex-column.flex-md-row {
    position: relative;
  }

  .d-flex.flex-column.flex-md-row > .container-fluid {
    width: 100%;
    margin-left: 0 !important;
    transition: transform 0.3s ease;
  }

  /* Overlay for mobile when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1049;
  }

  .sidebar-overlay.show {
    display: block;
  }
}

/* Sidebar toggle button for mobile */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 120px;
  right: 10px;
  z-index: 1051;
  background-color: #03455f;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .sidebar-toggle {
    display: block;
  }

  /* Responsive dashboard cards */
  .card-body h2.display-4 {
    font-size: 2rem !important;
  }

  .card-body h5.card-title {
    font-size: 0.9rem;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 991px) {
  .card-body h2.display-4 {
    font-size: 2.25rem !important;
  }
}

/* Ensure sidebar doesn't take space on mobile when hidden */
@media (max-width: 768px) {
  .d-flex.flex-column.flex-md-row > .sidebar {
    position: fixed;
    width: 0;
    overflow: hidden;
  }

  .d-flex.flex-column.flex-md-row > .sidebar.show {
    width: 250px;
  }
}

/* Reputation Score Card Styles */
.reputation-card {
  width: 100%;
}

.reputation-card .card {
  background-color: var(--colours-neutrals-white, #ffffff);
}

.reputation-score-main {
  font-family: "Inter-Regular", Helvetica, sans-serif;
  font-weight: 400;
  font-size: 40px;
  color: var(--colours-neutrals-800, #1f2937);
  line-height: 1;
}

.reputation-score-divider {
  font-family: "Inter-Medium", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #000000;
  line-height: 1;
}

/* Gradient Bar Chart */
.reputation-bar {
  width: 32px;
  height: 64px;
  border-radius: 100px;
  flex-shrink: 0;
}

.reputation-bar-filled {
  background: linear-gradient(
    180deg,
    rgba(255, 45, 247, 0.8) 0%,
    rgba(82, 0, 255, 0.8) 40%,
    rgba(0, 240, 255, 0.8) 100%
  );
}

.reputation-bar-empty {
  background-color: var(--colours-neutrals-200, #e5e7eb);
}

/* Comparison Indicator */
.reputation-indicator-badge {
  width: 32px;
  height: 32px;
  background-color: #fbdbdb;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reputation-indicator-icon {
  font-size: 20px;
  color: #a50c0a;
  line-height: 1;
}

.reputation-indicator-text {
  font-family: "Inter-Bold", Helvetica, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #a50c0a;
  line-height: 20px;
}

/* Change Badge (for percentage changes) */
.reputation-change-badge {
  width: 24px;
  height: 24px;
  background-color: #fbdbdb;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reputation-change-icon {
  font-size: 20px;
  color: #a50c0a;
  line-height: 1;
}

.reputation-change-text {
  font-family: "Inter-Bold", Helvetica, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #a50c0a;
  line-height: 20px;
}

.reputation-change-text-green {
  color: #16a34a;
}

.reputation-change-badge-green {
  background-color: #dcfce7;
}

.reputation-change-badge-green .reputation-change-icon {
  color: #16a34a;
}

/* Info Icon */
.info-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .reputation-card {
    max-width: 100%;
  }
}
