/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
html {
  overflow-y: scroll;
}

body {
  background: #fff;
  color: #444;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

a {
  color: #1bb1dc;
  text-decoration: none;
  transition: 0.5s;
}

a:hover,
a:active,
a:focus {
  color: #0a98c0;
  outline: none;
  text-decoration: none;
}

p {
  padding: 0;
  margin: 0 0 30px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #1bb1dc;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #39c0e7;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  background: #fff;
  transition: all 0.5s;
  z-index: 997;
  height: 90px;
}

#header.header-transparent {
  background: transparent;
}

#header.header-scrolled {
  background: #fff;
  height: 70px;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.3);
}

#header .logo {
  font-size: 36px;
  margin: 0;
  padding: 0;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#header .logo a {
  color: #413e66;
}

#header .logo img {
  max-height: 40px;
}

#header .social-links {
  margin: 0 0 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#header .social-links a {
  /* color: #555186; */
  color: #363333;
  transition: 0.3s;
  line-height: 0;
  margin-left: 15px;
}

#header .social-links a i {
  line-height: 0;
}

#header .social-links a:hover {
  /* color: #1bb1dc; */
  color: #80DC0F;
}

@media (max-width: 992px) {
  #header .social-links {
    margin: 0 15px 0 0;
  }
}

@media (max-width: 992px) {
  #header .logo {
    font-size: 28px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/**
* Desktop Navigation 
*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 10px 24px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* font-family:'The Future', sans-serif;; */
  /* text-transform: uppercase; */
  font-size: 14px;
  /* font-weight: 600; */
  color: #413e66;
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a i,
.navbar a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: inherit;
}

.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 24px;
  top: calc(100% + 30px);
  margin: 0;
  padding: 10px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
  transition: 0.3s;
}

.navbar .dropdown ul li {
  min-width: 200px;
}

.navbar .dropdown ul a {
  padding: 10px 20px;
  text-transform: none;
  font-weight: 400;
}

.navbar .dropdown ul a i {
  font-size: 12px;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover>a {
  color: #1bb1dc;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.navbar .dropdown .dropdown ul {
  top: 0;
  left: calc(100% - 30px);
  visibility: hidden;
}

.navbar .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: 100%;
  visibility: visible;
}

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul {
    left: -90%;
  }

  .navbar .dropdown .dropdown:hover>ul {
    left: -100%;
  }
}

/**
* Mobile Navigation 
*/
.mobile-nav-toggle {
  color: #413e66;
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none;
  }
}

.navbar-mobile {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(45, 43, 70, 0.9);
  transition: 0.3s;
  z-index: 999;
}

.navbar-mobile .mobile-nav-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
}

.navbar-mobile ul {
  display: block;
  position: absolute;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  padding: 10px 0;
  background-color: #fff;
  overflow-y: auto;
  transition: 0.3s;
}

.navbar-mobile a,
.navbar-mobile a:focus {
  padding: 10px 20px;
  font-size: 15px;
  color: #413e66;
}

.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: #1bb1dc;
}

.navbar-mobile .getstarted,
.navbar-mobile .getstarted:focus {
  margin: 15px;
}

.navbar-mobile .dropdown ul,
.navbar-mobile .dropdown .dropdown ul {
  position: static;
  display: none;
  margin: 10px 20px;
  padding: 10px 0;
  z-index: 99;
  opacity: 1;
  visibility: visible;
  background: #fff;
  box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
}

.navbar-mobile .dropdown ul li,
.navbar-mobile .dropdown .dropdown ul li {
  min-width: 200px;
}

.navbar-mobile .dropdown ul a,
.navbar-mobile .dropdown .dropdown ul a {
  padding: 10px 20px;
}

.navbar-mobile .dropdown ul a i,
.navbar-mobile .dropdown .dropdown ul a i {
  font-size: 12px;
}

.navbar-mobile .dropdown ul a:hover,
.navbar-mobile .dropdown ul .active:hover,
.navbar-mobile .dropdown ul li:hover>a,
.navbar-mobile .dropdown .dropdown ul a:hover,
.navbar-mobile .dropdown .dropdown ul .active:hover,
.navbar-mobile .dropdown .dropdown ul li:hover>a {
  color: #1bb1dc;
}

.navbar-mobile .dropdown>.dropdown-active,
.navbar-mobile .dropdown .dropdown>.dropdown-active {
  display: block;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 87vh;
  position: relative;
  background: #f5f8fd url("../img/intro-bg.jpg") center top no-repeat;
  background-size: cover;
  margin-top: 90px;
}


@media (max-width: 991px) {
  #hero {
    height: auto;
    padding: 70px 0 0px 0;
    margin-top: 70px;
  }

  #hero .container {
    height: auto !important;
  }

  #hero .intro-img {
    width: 80%;
  }
}

@media (min-width: 992px) {
  #hero .intro-info {
    padding-top: 70px;
  }
}

@media (max-width: 991px) {
  #hero .intro-info {
    text-align: center;
    padding-top: 5px;
  }
}

#hero .intro-info h2 {
  color: #061c03;
  padding-top: 20px;
  margin-bottom: 20px;
  font-size: 48px;
  /* font-weight: 700; */
}

#hero .intro-info h2 span {
  color: #061c03;
}

@media (max-width: 991px) {
  #hero .intro-info h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }
}

#hero .intro-info .btn-get-started,
#hero .intro-info .btn-services {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 32px;
  border-radius: 4px;
  transition: 0.5s;
  background: #80dc0f;
  color: #061c03;
}

#hero .intro-info .btn-get-started:hover,
#hero .intro-info .btn-services:hover {
  background: #061c03;
  color: #fff;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  overflow: hidden;
}

/* Sections Header
--------------------------------*/
.section-header h3 {
  font-size: 36px;
  color: #061c03;
  text-align: center;
  font-weight: 700;
  position: relative;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.section-header p {
  text-align: center;
  margin: auto;
  font-size: 15px;
  padding-bottom: 60px;
  color: #061c03;
  width: 50%;
}

@media (max-width: 767px) {
  .section-header p {
    width: 100%;
  }
}

/* Section with background
--------------------------------*/
.section-bg {
  background: #f5f8fd;
}

/* About Us Section
--------------------------------*/
#about {
  padding: 80px 0;
}

#about .about-content {
  padding-top: 40px;
}

#about .about-content h2 {
  color: #061c03;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
}

#about .about-content h3 {
  color: #061c03;
  font-weight: 400;
  font-size: 22px;
  font-style: italic;
}

#about .about-content ul {
  list-style: none;
  padding: 0;
}

#about .about-content ul li {
  padding-bottom: 10px;
}

#about .about-content ul li i {
  font-size: 20px;
  padding-right: 4px;
  color: #061c03;
}

#about .about-img {
  position: relative;
  margin: 30px 30px 30px 30px;
}

#about .about-img img {
  width: 100%;
  border: 8px solid #fff;
  transition: 0.5s;
}

#about .about-img img:hover {
  width: 100%;
  transform: scale(1.03);
}

#about .about-img::before {
  position: absolute;
  left: -31px;
  top: -30px;
  width: 90%;
  height: 92%;
  z-index: -1;
  content: "";
  background-color: #ebf1fa;
  transition: 0.5s;
}

#about .about-img::after {
  position: absolute;
  right: -31px;
  bottom: -30px;
  width: 90%;
  height: 92%;
  z-index: -1;
  content: "";
  background-color: #ebf1fa;
  transition: 0.5s;
}

/* Services Section
--------------------------------*/
#services {
  padding: 60px 0 40px 0;
}

#services .box {
  padding: 30px;
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 29px 0 rgba(68, 88, 144, 0.1);
  transition: all 0.3s ease-in-out;
  text-align: center;
  height: 100%;
}

#services .box:hover {
  transform: scale(1.1);
}

#services .icon {
  margin: 0 auto 15px auto;
  padding-top: 12px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  width: 60px;
  height: 60px;
}

#services .icon i {
  font-size: 36px;
  line-height: 0;
}

#services .title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

#services .title a {
  color: #111;
}

#services .box:hover .title a {
  color: #1bb1dc;
}

#services .description {
  font-size: 14px;
  line-height: 28px;
  margin-bottom: 0;
  text-align: left;
}

/* Why Us Section
--------------------------------*/
#why-us {
  padding: 60px 0;
}

@media (max-width: 991px) {
  #why-us .why-us-content {
    padding-top: 30px;
  }
}

#why-us .why-us-content .features {
  margin: 0 0 15px 0;
  padding: 0;
}

#why-us .why-us-content .features i {
  font-size: 36px;
  float: left;
}

#why-us .why-us-content .features h4 {
  font-size: 24px;
  font-weight: 600;
  margin-left: 56px;
  color: #413e66;
  margin-bottom: 5px;
}

#why-us .why-us-content .features p {
  font-size: 16px;
  margin-left: 56px;
  color: #555186;
}

#why-us .counters {
  padding-top: 40px;
}

#why-us .counters span {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: bold;
  font-size: 48px;
  display: block;
  color: #555186;
}

#why-us .counters p {
  padding: 0;
  margin: 0 0 20px 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #8a87b6;
}

/* Call To Action Section
--------------------------------*/
#call-to-action {
  background: #2d2b46;
  background-size: cover;
  padding: 40px 0;
}

#call-to-action .cta-title {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

#call-to-action .cta-text {
  color: #fff;
}

@media (min-width: 991px) {
  #call-to-action .cta-btn-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
}

#call-to-action .cta-btn {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 26px;
  border-radius: 3px;
  transition: 0.5s;
  margin: 10px;
  border: 3px solid #fff;
  color: #fff;
}

#call-to-action .cta-btn:hover {
  background: #1bb1dc;
  border: 3px solid #1bb1dc;
}

/* Features Section
--------------------------------*/
#features {
  padding: 80px 0;
}

#features h4 {
  font-weight: 600;
  font-size: 24px;
}

/* Portfolio Section
--------------------------------*/
#portfolio {
  padding: 60px 0;
}

#portfolio #portfolio-flters {
  padding: 0;
  margin: 5px 0 35px 0;
  list-style: none;
  text-align: center;
}

#portfolio #portfolio-flters li {
  cursor: pointer;
  margin: 15px 15px 15px 0;
  display: inline-block;
  padding: 6px 10px;
  font-size: 16px;
  line-height: 20px;
  color: #413e66;
  margin-bottom: 5px;
  transition: all 0.3s ease-in-out;
}

#portfolio #portfolio-flters li:hover,
#portfolio #portfolio-flters li.filter-active {
  color: #1bb1dc;
}

#portfolio #portfolio-flters li:last-child {
  margin-right: 0;
}

#portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}

#portfolio .portfolio-item .portfolio-wrap {
  overflow: hidden;
  position: relative;
  margin: 0;
}

#portfolio .portfolio-item .portfolio-wrap:hover img {
  opacity: 0.4;
  transition: 0.3s;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  transition: 0.2s linear;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 {
  font-size: 22px;
  line-height: 1px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 0;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a {
  color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info h4 a:hover {
  color: #1bb1dc;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info p {
  padding: 0;
  margin: 0;
  color: #f8fcff;
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details {
  display: inline-block;
  line-height: 1;
  text-align: center;
  width: 36px;
  height: 36px;
  background: #1bb1dc;
  border-radius: 50%;
  margin: 10px 4px 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview i,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details i {
  font-size: 22px;
  color: #fff;
  line-height: 0;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview:hover,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details:hover {
  background: #42c3e8;
}

#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-preview:hover i,
#portfolio .portfolio-item .portfolio-wrap .portfolio-info .link-details:hover i {
  color: #fff;
}

#portfolio .portfolio-item .portfolio-wrap:hover {
  background: #282646;
}

#portfolio .portfolio-item .portfolio-wrap:hover .portfolio-info {
  opacity: 1;
}

/*--------------------------------------------------------------
# Portfolio Details
--------------------------------------------------------------*/
.portfolio-details {
  padding-top: 40px;
}

.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #1bb1dc;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #1bb1dc;
}

.portfolio-details .portfolio-info {
  padding: 30px;
  box-shadow: 0px 0 30px rgba(65, 62, 102, 0.08);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

/* Testimonials Section
--------------------------------*/
#testimonials {
  padding: 60px 0;
}

#testimonials .section-header {
  margin-bottom: 40px;
}

#testimonials .testimonials-carousel,
#testimonials .testimonials-slider {
  overflow: hidden;
}

@media (max-width: 767px) {
  #testimonials .testimonial-item {
    text-align: center;
  }
}

#testimonials .testimonial-item .testimonial-img {
  width: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  float: left;
}

@media (max-width: 767px) {
  #testimonials .testimonial-item .testimonial-img {
    float: none;
    margin: auto;
  }
}

#testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
  color: #111;
  margin-left: 140px;
}

#testimonials .testimonial-item h4 {
  font-size: 14px;
  color: #999;
  margin: 0 0 15px 0;
  margin-left: 140px;
}

#testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 140px;
}

@media (min-width: 992px) {
  #testimonials .testimonial-item p {
    width: 80%;
  }
}

@media (max-width: 767px) {

  #testimonials .testimonial-item h3,
  #testimonials .testimonial-item h4,
  #testimonials .testimonial-item p {
    margin-left: 0;
  }
}

#testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

#testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #1bb1dc;
}

#testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #1bb1dc;
}

/* Team Section
--------------------------------*/
#team {
  padding: 60px 0;
}

#team .member {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

#team .member .member-info {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: 0.2s;
  padding: 15px 0;
  background: rgba(29, 28, 41, 0.6);
}

#team .member .member-info-content {
  transition: margin 0.2s;
  height: 36px;
  transition: height 0.4s;
}

#team .member:hover .member-info {
  transition: 0.4s;
}

#team .member:hover .member-info-content {
  height: 70px;
}

#team .member h4 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 18px;
  color: #fff;
}

#team .member span {
  font-style: italic;
  display: block;
  font-size: 13px;
  color: #fff;
}

#team .member .social a {
  transition: none;
  color: #fff;
}

#team .member .social a:hover {
  /* color: #1bb1dc; */
  color: #80DC0F;
}

#team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

/* Clients Section
--------------------------------*/
#clients {
  padding: 60px 0;
}

#clients img {
  opacity: 0.5;
  transition: 0.3s;
}

#clients img:hover {
  opacity: 1;
}

#clients .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

#clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #fff;
  opacity: 1;
  border: 1px solid #1bb1dc;
}

#clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: #1bb1dc;
}

/* Pricing Section
--------------------------------*/
#pricing {
  padding: 80px 0;
}

@media (max-width: 991px) {
  #pricing {
    padding-bottom: 30px;
  }
}

#pricing .card {
  border: 0;
  border-radius: 0px;
  box-shadow: 0 3px 0px 0 rgba(65, 62, 102, 0.08);
  transition: all 0.3s ease-in-out;
  padding: 36px 0;
  position: relative;
}

@media (max-width: 991px) {
  #pricing .card {
    margin-bottom: 50px;
  }
}

#pricing .card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 5px;
  background-color: #1bb1dc;
  transition: 0.5s;
}

#pricing .card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 35px 0 rgba(0, 0, 0, 0.08);
}

#pricing .card:hover:after {
  width: 100%;
}

#pricing .card .card-header {
  background-color: white;
  border-bottom: 0px;
  -moz-text-align-last: center;
  text-align-last: center;
}

#pricing .card .card-title {
  margin-bottom: 16px;
  color: #535074;
}

#pricing .card .card-block {
  padding-top: 0;
  text-align: center;
}

#pricing .card .list-group-item {
  border: 0px;
  padding: 6px;
  color: #413e66;
  font-weight: 300;
}

#pricing .card h3 {
  font-size: 64px;
  margin-bottom: 0px;
  color: #535074;
}

#pricing .card h3 .currency {
  font-size: 30px;
  position: relative;
  font-weight: 400;
  top: -30px;
  letter-spacing: 0px;
}

#pricing .card h3 .period {
  font-size: 16px;
  color: #6c67a3;
  letter-spacing: 0px;
}

#pricing .card .list-group {
  margin-bottom: 15px;
}

#pricing .card .btn {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  color: #5f5b96;
  border-radius: 0;
  padding: 10px 24px;
  letter-spacing: 1px;
  border-radius: 3px;
  display: inline-block;
  background: #1bb1dc;
  color: #fff;
}

#pricing .card .btn:hover {
  background: #0a98c0;
}

/* Frequently Asked Questions Section
--------------------------------*/
#faq {
  padding: 60px 0;
  overflow: hidden;
}

#faq .faq-list {
  padding: 0;
  list-style: none;
}

#faq .faq-list li {
  border-bottom: 1px solid #edecf4;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

#faq .faq-list .question {
  display: block;
  position: relative;
  font-family: #1bb1dc;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  padding-left: 25px;
  cursor: pointer;
  color: #158caf;
  transition: 0.3s;
}

#faq .faq-list i {
  font-size: 16px;
  position: absolute;
  left: 0;
  top: -2px;
}

#faq .faq-list p {
  margin-bottom: 0;
  padding: 10px 0 0 25px;
}

#faq .faq-list .icon-show {
  display: none;
}

#faq .faq-list .collapsed {
  color: black;
}

#faq .faq-list .collapsed:hover {
  color: #1bb1dc;
}

#faq .faq-list .collapsed .icon-show {
  display: inline-block;
  transition: 0.6s;
}

#faq .faq-list .collapsed .icon-close {
  display: none;
  transition: 0.6s;
}

/*--------------------------------------------------------------
# Breadcrumbs
--------------------------------------------------------------*/

.breadcrumbs {
  padding: 15px 0;
  background: #f9f9fb;
  min-height: 40px;
  margin-top: 90px;
}

.breadcrumbs h2 {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 10px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumbs ol li+li {
  padding-left: 10px;
}

.breadcrumbs ol li+li::before {
  display: inline-block;
  padding-right: 10px;
  color: #555186;
  content: "/";
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 0 0 30px 0;
  font-size: 14px;
  background: #fff;
}

#footer .footer-top {
  padding: 60px 0 30px 0;
  background: #f5f8fd;
}

#footer .footer-top .footer-info {
  margin-bottom: 30px;
}

#footer .footer-top .footer-info h3 {
  font-size: 34px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #413e66;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
}

#footer .footer-top .footer-info p {
  font-size: 13px;
  line-height: 24px;
  margin-bottom: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #535074;
}

#footer .footer-top .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1bb1dc;
  /* background: #80DC0F; */
  color: #fff;
  margin-right: 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

#footer .footer-top .social-links a i {
  line-height: 0;
  font-size: 16px;
}

#footer .footer-top .social-links a:hover {
  background: #0a98c0;
  color: #fff;
}

@media (max-width: 574px) {
  #footer .footer-top .social-links a {
    margin-bottom: 25px;
  }
}

#footer .footer-top h4 {
  font-size: 14px;
  font-weight: bold;
  color: #413e66;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

#footer .footer-top .footer-links {
  margin-bottom: 30px;
}

#footer .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .footer-top .footer-links ul li {
  padding: 8px 0;
}

#footer .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer .footer-top .footer-links ul a {
  color: #696592;
}

#footer .footer-top .footer-links ul a:hover {
  color: #1bb1dc;
}

#footer .footer-top .footer-contact {
  margin-bottom: 30px;
}

#footer .footer-top .footer-contact p {
  line-height: 26px;
}

#footer .footer-top .footer-newsletter {
  margin-bottom: 30px;
}

#footer .footer-top .footer-newsletter input[type=email] {
  border: 0;
  padding: 6px 8px;
  width: 65%;
  border: 1px solid #d9dde6;
}

#footer .footer-top .footer-newsletter input[type=submit] {
  background: #1bb1dc;
  border: 1px solid #1bb1dc;
  width: 35%;
  padding: 6px 0;
  text-align: center;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
}

#footer .footer-top .footer-newsletter input[type=submit]:hover {
  background: #0a98c0;
}

#footer .copyright {
  text-align: center;
  padding-top: 30px;
  color: #535074;
  font-size: 15px;
}

#footer .credits {
  text-align: center;
  font-size: 14px;
  padding-top: 4px;
  color: #8582a8;
}

#footer .credits a {
  color: #1bb1dc;
}

#footer .credits a:hover {
  color: #0a98c0;
}



/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
  margin-top: 100px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #012970;
}


/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}


/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/* Dashboard layout - light gray background for better card contrast */

.dashboard-main-bg {
    background: #f8fafc;
}

.dashboard-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    background: transparent;
}

.dashboard-header {
    margin-bottom: 22px;
    padding-left: 8px;
    padding-right: 8px;
}

.dashboard-title {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dashboard-meta {
    white-space: nowrap;
    font-size: 0.8rem;
    color: #6b7280;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 6px 12px;
}

.dashboard-tabs {
    border-bottom: none;
    padding: 0 4px;
    margin: 0;
    gap: 16px;
    background: transparent;
}

.dashboard-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #64748b;
    font-weight: 600;
    padding: 8px 2px 10px;
    border-radius: 0;
    background: transparent;
}

.dashboard-tabs .nav-link:hover {
    color: #0f172a;
}

.dashboard-tabs .nav-link.active {
    color: var(--text-primary);
    background: transparent;
    border-bottom-color: var(--brand-green);
    box-shadow: none;
}

.dashboard-toolbar {
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid #e5e7eb;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.dashboard-toolbar-row--range {
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.dashboard-range-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    white-space: normal;
}

.last-interaction-meta {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.range-divider {
    color: #d1d5db;
    font-weight: 300;
    margin: 0 2px;
}

.range-picker-input--hidden {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.dashboard-range-controls .dropdown-toggle {
    border: none;
    background: transparent;
    font-weight: 500;
    font-size: 13px;
    color: #6b7280;
}

.dashboard-range-controls .dropdown-toggle:hover,
.dashboard-range-controls .dropdown-toggle:focus,
.dashboard-range-controls .dropdown-toggle:active,
.dashboard-range-controls .dropdown-toggle.show {
    border: none;
    background: transparent;
    color: #374151;
    box-shadow: none;
}

.dashboard-range-controls .text-muted {
    font-weight: 600;
}

.dashboard-range-controls .dropdown-menu {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 6px;
}

.dashboard-range-controls .dropdown-menu .dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.dashboard-range-controls .dropdown-menu .dropdown-item:hover {
    background: #f3f4f6;
    color: #1f1f1f;
}

.dashboard-range-controls .dropdown-menu .dropdown-item.active,
.dashboard-range-controls .dropdown-menu .dropdown-item:active {
    background: #e8e8e8;
    color: #1f1f1f;
}

.dashboard-range-controls .dropdown-menu .dropdown-divider {
    margin: 6px 0;
    border-color: #e5e7eb;
}

/* Flatpickr calendar styling to match sidebar */
.flatpickr-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.flatpickr-months {
    padding: 8px 4px;
}

.flatpickr-months .flatpickr-month {
    height: 32px;
}

.flatpickr-current-month {
    font-size: 14px;
    font-weight: 500;
    color: #555;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: transparent;
}

.flatpickr-current-month .flatpickr-monthDropdown-months:hover,
.flatpickr-current-month input.cur-year:hover {
    color: #1f1f1f;
    background: transparent;
}

/* Month dropdown styling */
.flatpickr-current-month .flatpickr-monthDropdown-months option {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    background: #fff;
    padding: 8px 12px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months option:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months option:checked {
    background: #e8e8e8;
    color: #1f1f1f;
}

/* Year input spinner buttons */
.flatpickr-current-month .numInputWrapper {
    background: transparent;
}

.flatpickr-current-month .numInputWrapper span {
    border: none;
    background: transparent;
}

.flatpickr-current-month .numInputWrapper span:hover {
    background: #f3f4f6;
}

.flatpickr-current-month .numInputWrapper span:after {
    border-color: #6b7280 transparent transparent transparent;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-color: transparent transparent #6b7280 transparent;
}

.flatpickr-weekdays {
    height: 32px;
}

.flatpickr-weekday {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.flatpickr-day {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.flatpickr-day:hover {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: #1f1f1f;
}

.flatpickr-day.today {
    border-color: #d1d5db;
}

.flatpickr-day.today:hover {
    background: #f3f4f6;
    border-color: #f3f4f6;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #e8e8e8;
    border-color: #e8e8e8;
    color: #1f1f1f;
}

.flatpickr-day.inRange {
    background: #f3f4f6;
    border-color: #f3f4f6;
    box-shadow: -5px 0 0 #f3f4f6, 5px 0 0 #f3f4f6;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #d1d5db;
}

.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: #9ca3af;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 8px;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #1f1f1f;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: #6b7280;
}

.range-picker input {
    min-width: 220px;
    border-radius: 0;
    border: 1px solid #d4d9e1;
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.range-picker input:focus {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.dashboard-section {
    margin-bottom: 26px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 6px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
}

.section-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background: transparent;
    border: 0;
    padding: 0;
    white-space: nowrap;
}

.dashboard-alert {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 12px 14px;
}

.dashboard-alert-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.chart-wrap {
    position: relative;
    height: 260px;
}

/* Mobile header layout */
@media (max-width: 640px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px;
  }

  .dashboard-title {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .dashboard-subtitle {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 0;
  }

  .dashboard-meta {
    white-space: normal;
    font-size: 0.9rem;
    line-height: 1.3;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .dashboard-toolbar {
    align-items: flex-start !important;
  }

  .dashboard-toolbar-row {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .dashboard-range-controls {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .last-interaction-meta {
    font-size: 12px;
  }

  .dashboard-tabs {
    width: 100%;
  }

  .range-picker input {
    min-width: 0;
    width: 100%;
  }
}

/* Metric cards */

.stats-card {
    background: #ffffff;
    border-radius: 0;
    padding: 20px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: box-shadow 0.2s ease, background-color 0.2s ease;
    position: relative;
    min-height: 140px;
}

.stats-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    border-color: #e5e7eb;
    background: #ffffff;
}

.stats-card--primary {
    background: #ffffff;
    border-left: 4px solid var(--brand-green);
}

.stats-card--primary:hover {
    border-left-color: var(--brand-green);
}

.stats-card--secondary {
    background: #ffffff;
}

.stats-card--compact {
    padding: 20px 18px;
    min-height: 140px;
}

.stats-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 8px;
}

.stats-info-icon {
    font-size: 0.8rem;
    color: #b4bcc8;
    cursor: help;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.stats-info-icon:hover {
    color: #10b981;
    opacity: 1;
    transform: scale(1.1);
}

.stats-value {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 4px;
    color: #1f2937;
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 4px;
    line-height: 1.1;
}

.stats-card--primary .stats-value {
    font-size: 1.8rem;
}

.stats-card--compact .stats-value {
    font-size: 1.8rem;
}

.stats-unit {
    font-size: 1rem;
    font-weight: 500;
    margin-left: 2px;
    color: #6b7280;
}

/* Trend arrows integrated into values */
.stats-value .trend-arrow {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 4px;
}

.stats-value .trend-arrow.up {
    color: #ef4444;
}

.stats-value .trend-arrow.down {
    color: #10b981;
}

.stats-value .trend-arrow.neutral {
    color: #64748b;
}

.stats-meta {
    font-size: 0.75rem;
    margin-top: 6px;
    color: #64748b;
    line-height: 1.4;
}

.stats-delta {
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 10px;
    color: #6b7280;
}

.stats-delta.positive {
    color: #059669;
}

.stats-delta.negative {
    color: #dc2626;
}

.stats-icon {
    display: none;
}

.stats-card--primary .stats-icon {
    background: #f3f4f6;
    color: #6b7280;
}

.stats-card--secondary .stats-icon {
    background: #f3f4f6;
    color: #6b7280;
}

.stats-card--compact .stats-icon {
    display: none;
}

.stats-content {
    min-width: 0;
    flex: 1 1 auto;
    text-align: left;
}

/* Cards */

.dashboard-card {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.dashboard-card .card-header {
    background-color: transparent;
}

.dashboard-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-card .card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eef2ff;
    color: #596070;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
}

/* Small list blocks inside cards */

.dashboard-list {
    margin: 0;
    padding: 0;
}

.dashboard-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    font-size: 0.9rem;
}

.dashboard-list-item:last-child {
    border-bottom: none;
}

.dashboard-list-label {
    color: #4b5563;
}

.dashboard-list-value {
    font-weight: 600;
    color: #111827;
}

/* Similarity search */

/* Search card - transparent on white dashboard */
.search-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.search-card .card-body {
    padding: 0;
}

/* Search input - chat input style */
.search-card .search-form {
    margin-top: 0;
    margin-bottom: 28px;
    margin-left: -10px;
}

.search-card .search-helper-text {
    margin: 10px 0 0 6px;
    font-size: 13px;
    color: #888;
}

.search-card .search-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 5px 10px;
    background: #fff;
}

.search-card .search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
    background: transparent;
    color: #1f1f1f;
}

.search-card .search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-card .search-input:focus {
    outline: none;
    box-shadow: none;
}

/* Remove browser autofill blue background */
.search-card .search-input:-webkit-autofill,
.search-card .search-input:-webkit-autofill:hover,
.search-card .search-input:-webkit-autofill:focus,
.search-card .search-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #1f1f1f !important;
}

.search-card .search-submit-btn {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
    padding: 0;
}

.search-card .search-submit-btn:hover {
    background: #f0f0f0;
}

.search-card .search-submit-btn i {
    font-size: 24px;
    color: gray;
}

/* Search results */
.search-card .search-results {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.search-result-card {
    background: transparent;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.15s ease;
}

.search-result-card:first-child {
    padding-top: 0;
}

.search-result-card:last-child {
    border-bottom: none;
}

.search-result-card:hover {
    background: transparent;
    box-shadow: none;
}

.search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    line-height: 1.4;
}

.search-result-title a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

.search-result-title a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Industry model title colors */
.search-result-title.title-telco,
.search-result-title.title-telco a {
    color: #1e7fc3;
}
.search-result-title.title-telco a:hover {
    color: #1766a0;
}

.search-result-title.title-insurance,
.search-result-title.title-insurance a {
    color: #00a0aa;
}
.search-result-title.title-insurance a:hover {
    color: #008088;
}

.search-result-title.title-retail,
.search-result-title.title-retail a {
    color: #b43c82;
}
.search-result-title.title-retail a:hover {
    color: #932f6a;
}

.search-result-title.title-banking,
.search-result-title.title-banking a {
    color: #733ca5;
}
.search-result-title.title-banking a:hover {
    color: #5c3084;
}

.search-result-title.title-utilities,
.search-result-title.title-utilities a {
    color: #2d8659;
}
.search-result-title.title-utilities a:hover {
    color: #246b47;
}

.search-result-title.title-healthcare,
.search-result-title.title-healthcare a {
    color: #e85a4f;
}
.search-result-title.title-healthcare a:hover {
    color: #c94840;
}

/* Search keyword highlighting */
.search-highlight {
    background: #fef08a;
    color: #1f1f1f;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 500;
}

/* Relevance score bar */
.search-result-score {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.score-bar {
    width: 50px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.score-fill.score-high {
    background: #10b981;
}

.score-fill.score-medium {
    background: #6b7280;
}

.score-fill.score-low {
    background: #d1d5db;
}

.score-value {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    min-width: 32px;
}

/* Metadata tags */
.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.meta-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(107, 114, 128, 0.75);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Industry model color tags - 75% opacity, white text, no border */
.meta-tag.model-telco {
    background: rgba(30, 127, 195, 0.75);
    border: none;
    color: #fff;
}

.meta-tag.model-insurance {
    background: rgba(0, 160, 170, 0.75);
    border: none;
    color: #fff;
}

.meta-tag.model-retail {
    background: rgba(180, 60, 130, 0.75);
    border: none;
    color: #fff;
}

.meta-tag.model-banking {
    background: rgba(115, 60, 165, 0.75);
    border: none;
    color: #fff;
}

.meta-tag.model-utilities {
    background: rgba(45, 134, 89, 0.75);
    border: none;
    color: #fff;
}

.meta-tag.model-healthcare {
    background: rgba(232, 90, 79, 0.75);
    border: none;
    color: #fff;
}

.meta-tag-muted {
    background: transparent;
    border: none;
    color: #6b7280;
    font-family: monospace;
    font-size: 11px;
    padding: 0;
}

/* Snippet text */
.search-result-snippet {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.snippet-text {
    display: inline;
}

.snippet-toggle {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    margin-left: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.snippet-toggle:hover {
    color: #1f1f1f;
}

/* Empty state */
.search-card .text-muted {
    font-size: 14px;
    color: #9ca3af;
}

.dashboard-container .badge,
.dashboard-container .badge.rounded-pill {
    border-radius: 0;
}

/* Table styling */

.table-nowrap td,
.table-nowrap th {
    white-space: nowrap;
}

.badge.bg-soft-primary {
    background-color: rgba(59, 130, 246, 0.08);
    color: #2563eb;
}

.badge.bg-soft-secondary {
    background-color: rgba(148, 163, 184, 0.18);
    color: #374151;
}

/* Card */
.card {
  margin: 10px;
  border: none;
  border-radius: 5px;
  /* box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1); */
  box-shadow: 0 0 40px rgba(1, 41, 112, 0.1);
  
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #012970;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  padding: 0px 10px;
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}


/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 100px;   /* default pages with header */
  padding: 0;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    margin-top: 80px;
  }
}

/* Chat page has no header block, so no top offset */
body.chat-page #main {
  margin-top: 0;
}



.solvership-logo {
  width: 110px;  /* Adjust width as needed */
  height: auto;  /* Maintains aspect ratio */
}


@media (max-width: 768px) {
  .solvership-logo {
      width: 90px; /* Smaller size for mobile */
  }
}

.chat-container {
    height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.chat-messages {
    height: 100%;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-right: 10px;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgb(234, 233, 233);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

@media (max-width: 767px) {
    .chat-messages::-webkit-scrollbar {
        display: none;
    }

    .chat-messages {
        -ms-overflow-style: none;  /* Internet Explorer 10+ */
        scrollbar-width: none;     /* Firefox */
    }

    .chat-messages::-webkit-scrollbar-track {
        display: none;
    }

    .chat-messages::-webkit-scrollbar-thumb {
        display: none;
    }
}

.message-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 5px 10px;
    margin-bottom: 15px;
}

.message-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 14px;
    border-radius: 20px;
}

.message-input:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
    background-color: none;
    background: none;
}

.send-button {
    background-color: #ffffff;
    color: gray;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    cursor: pointer;
}

.send-button i {
    font-size: 24px;
    color: gray;
}

.message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

.message.user {
    align-items: flex-end;
}

.message.ai {
    align-items: flex-start;
}

/* AI message content wrapper */
.ai-message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 95%;
}

/* Copy message button */
.copy-message-btn {
    position: relative;
    display: block;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    margin-top: 4px;
    width: fit-content;
}

.message.ai:hover .copy-message-btn {
    opacity: 1;
}

.copy-message-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #333;
}

.copy-message-btn:active {
    background-color: rgba(0, 0, 0, 0.12);
}

/* Copy button tooltip */
.copy-message-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 0;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-bottom: 4px;
    pointer-events: none;
}

.copy-message-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Chat table wrapper and export controls */
.table-wrapper {
    position: relative;
    margin: 12px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.table-wrapper table {
    margin-bottom: 0 !important;
    font-size: 13px;
}

.table-wrapper thead {
    background-color: #f8f9fa;
}

.table-wrapper th,
.table-wrapper td {
    padding: 8px 12px !important;
    vertical-align: middle;
}

.table-toolbar {
    display: flex;
    gap: 4px;
    padding: 6px 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.table-action-btn {
    position: relative;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.table-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #333;
}

.table-action-btn:active {
    background-color: rgba(0, 0, 0, 0.12);
}

/* Table action button tooltip */
.table-action-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    margin-bottom: 4px;
    pointer-events: none;
}

.table-action-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

.message-text {
    background-color: #f1f1f1;
    border-radius: 5px;
    padding: 10px 10px;
    margin-top: 5px;
    margin-left: 5px;
    position: relative;
    max-width: 95%;
    font-size: 14px;
}

.message-text p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

/* Links in the message text */
.message-text a {
    color: #007bff;
    text-decoration: none;
}

.message-text a:hover {
    text-decoration: underline;
}

.user .message-text {
    background-color: #d3e3fd;
}

.message-text ol {
    list-style-type: decimal; /* Use numbers for ordered lists */
    margin: 10px 0 10px 20px; /* Add some margin for spacing */
    padding-left: 20px;       /* Indent the list */
}

.message-text ul {
    list-style-type: disc;    /* Use bullets for unordered lists */
    margin: 10px 0 10px 20px; /* Add some margin for spacing */
    padding-left: 20px;       /* Indent the list */
}

.message-text li {
    margin-bottom: 5px;       /* Add spacing between list items */
    line-height: 1.5;         /* Improve readability */
}

.message-text strong {
    font-weight: bold;        /* Ensure bold text is styled */
}

.user .message-text p {
    margin: 0;
    padding: 0;
}

.ai-message-text {
    color: #1f1f1f;
}

.message.typing .message-text {
    background-color: #f4f4f4;
    color: #4b5563;
    font-size: 13px;
}

/* Rotating animation for typing indicator icon */
.message.typing .img-circle {
    animation: rotate-back-forth 4s ease-in-out infinite;
}

@keyframes rotate-back-forth {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

  .message.typing .dots-wave {
    display: inline-block;
    margin-left: 3px;
    width: 14px;
    height: 5px;
    vertical-align: baseline;
    position: relative;
    top: -1px;
  }
  .message.typing .dots-wave::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 2px;
    border-radius: 50%;
    background: #9ca3af;
    box-shadow: 6px 0 0 #9ca3af, 12px 0 0 #9ca3af;
    animation: wave 1.2s infinite ease-in-out;
  }

  @keyframes wave {
    0%   { box-shadow: 6px 0 0 #9ca3af, 12px 0 0 #9ca3af; transform: translateY(0); }
    20%  { box-shadow: 6px -3px 0 #9ca3af, 12px 0 0 #9ca3af; }
    40%  { box-shadow: 6px 0 0 #9ca3af, 12px -3px 0 #9ca3af; }
    60%  { box-shadow: 6px 0 0 #9ca3af, 12px 0 0 #9ca3af; }
    100% { box-shadow: 6px 0 0 #9ca3af, 12px 0 0 #9ca3af; transform: translateY(0); }
  }

.img-circle {
    width: 28px;
    height: 28px;
    padding: 2px;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    color: #274472;
    background-color: transparent;
}

.img-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Tables inside chat messages */
.message-text table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0 15px 0;
    font-size: 13px;
}

/* Allow horizontal scroll on small screens */
@media (max-width: 767px) {
    .message-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

.message-text th,
.message-text td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
    vertical-align: top;
}

.message-text th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.message-text tr:nth-child(even) td {
    background-color: #fafafa;
}

.message-text tr:hover td {
    background-color: #f1f7ff;
}


/*--------------------------------------------------------------
  DATA MODEL ASSISTANT LOGIN STYLES
--------------------------------------------------------------*/

/* Page background and centering */
.auth-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #eef1f7;
    padding: 28px;
}

/* Card container */
.login-card {
    width: 100%;
    max-width: 340px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
    overflow: visible; /* let the hero overlap */
    position: relative;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hero block (matches Guardiam styling cues) */
.login-hero {
    text-align: center;
    margin: -26px 20px 12px;
    padding: 22px 24px 20px;
    background: #112c1a;
    color: #e2f0e5;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    opacity: 0.97;
    position: relative;
    z-index: 2;
}

.login-hero h1 {
    margin: 8px 0 0;
    font-size: 1.35rem;
    line-height: 1.3;
    letter-spacing: 0.00735em;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    text-transform: none;
    color: rgb(128, 220, 15);
    text-decoration: none;
    opacity: 1;
}

.login-hero p {
    margin: 8px 0;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.01071em;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #f2f6f2;
    text-transform: none;
    opacity: 1;
}

/* Body with single sign in button */
.login-body {
    padding: 36px 20px 28px;
}

@media (max-width: 768px) {
  .login-card {
    max-width: 320px;
  }

  .login-hero {
    margin: -22px 18px 10px;
    padding: 20px 20px 18px;
  }

  .login-hero h1 {
    font-size: 1.25rem;
  }

  .login-hero p {
    font-size: 0.9rem;
  }

  .login-body {
    padding: 30px 18px 24px;
  }
}

@media (max-width: 420px) {
  .login-card {
    max-width: 300px;
  }

  .login-hero {
    margin: -18px 16px 8px;
    padding: 18px 18px 16px;
  }

  .login-hero h1 {
    font-size: 1.15rem;
  }

  .login-hero p {
    font-size: 0.85rem;
  }

  .btn-login-dma {
    font-size: 0.93rem;
    padding: 9px 0;
  }

  .login-body {
    padding: 26px 16px 20px;
  }
}

/* Hide any generic form controls, just in case */
.login-body .form-control {
    display: none;
}

/* Primary sign in button (vivid, wide) */
.btn-login-dma {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 0px;
    border-radius: 14px;
    border: none;
    background: #a1e15f !important;
    color: #2f405e !important;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 22px rgba(57, 138, 26, 0.22);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none !important;
}

.btn-login-dma:hover,
.btn-login-dma:focus {
    background: #b7ec80 !important;
    color: #1f2f46 !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(57, 138, 26, 0.28);
    outline: none !important;
}

.btn-login-dma:active,
.btn-login-dma:focus:active {
    background: #8fd44a !important;
    color: #1f2f46 !important;
    transform: translateY(1px);
    box-shadow: 0 8px 16px rgba(57, 138, 26, 0.2);
    outline: none !important;
}

.btn-login-dma i {
    font-size: 1.05rem;
}

/* Remove forgot password area entirely if present */
.forgot-links {
    display: none;
}

/* Footer with logos (aligned and minimal) */
.login-footer {
    padding: 32px 24px 22px;
    text-align: center;
    background: transparent;
    color: rgb(52, 71, 103);
    box-shadow: none;
}

.login-footer .login-legal {
    font-size: 0.78rem;
    color: rgba(52, 71, 103, 0.85);
    margin-bottom: 14px;
}

.login-footer .login-legal a {
    color: #1a5fc4;
    text-decoration: none;
}

.login-footer .login-legal a:hover {
    text-decoration: underline;
}

.login-footer .logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.logo-group img {
    max-height: 26px;
}

.logo-group span {
    font-size: 0.70rem;
    color: rgb(52, 71, 103);
    font-weight: 500;
}

.logo-img-left {
    height: 36px;
    margin-right: 12px;
}

.logo-img-right {
    height: 19px;
    margin-left: 10px;
}

/* Utility for horizontal logo alignment */
.d-flex-center {
    display: flex;
    align-items: center;
}

/* Dashboard card tweaks */
.dashboard-card {
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  margin: 0;
}

.dashboard-container .card,
.dashboard-container .dashboard-card {
  border-radius: 0 !important;
}

.dashboard-card dl dt {
  white-space: nowrap;
}

.dashboard-card .table-responsive {
  padding: 16px 0;
  margin: 0;
}

/* Create persistent white space on left/right using box-shadow trick */
.dashboard-card .table-responsive table {
  margin: 0 24px;
  box-shadow:
    -24px 0 0 0 white,   /* Left shadow creates white space */
    24px 0 0 0 white;     /* Right shadow creates white space */
}

/* Ensure table cells have standard padding */
.dashboard-card .table-responsive table th,
.dashboard-card .table-responsive table td {
  padding: 0.75rem;
}

/* --------------------------------------------------------------
# Interactions Table Styling
-------------------------------------------------------------- */
#interactions-pane .card.dashboard-card {
  border: none;
  box-shadow: none;
  background: transparent;
  margin: 0;
  padding: 0;
}

#interactions-pane .card-body,
#interactions-pane .table-responsive {
  padding: 0 !important;
  margin: 0 !important;
}

#interactions-pane .table-responsive table,
#interactions-pane .dataTables_wrapper table {
  margin: 0 !important;
  box-shadow: none !important;
}

/* DataTables wrapper styling */
#interactions-pane .dataTables_wrapper {
  padding: 0;
  margin: 0;
}

#interactions-pane .dataTables_wrapper .dataTables_length,
#interactions-pane .dataTables_wrapper .dataTables_filter,
#interactions-pane .dataTables_wrapper .dataTables_info,
#interactions-pane .dataTables_wrapper .dataTables_paginate {
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
}

/* Visual improvements for DataTables controls */
#interactions-pane .dataTables_wrapper .dataTables_length {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#interactions-pane .dataTables_wrapper .dataTables_length label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  color: #495057;
}

#interactions-pane .dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 70px;
}

#interactions-pane .dataTables_wrapper .dataTables_filter {
  margin-bottom: 20px;
}

#interactions-pane .dataTables_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
  color: #495057;
}

#interactions-pane .dataTables_wrapper .dataTables_filter input {
  width: 250px;
  margin-left: 0 !important;
}

/* Better spacing for info and pagination at bottom */
#interactions-pane .dataTables_wrapper .dataTables_info {
  padding-top: 16px;
  padding-bottom: 16px;
  color: #6c757d;
}

#interactions-pane .dataTables_wrapper .dataTables_paginate {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Improve table header styling */
#interactions-table {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Hide table body until DataTables applies pagination - prevents flash of all rows */
#interactions-table tbody {
  visibility: hidden;
}

#interactions-table.dataTable tbody {
  visibility: visible;
}

#interactions-table thead th {
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6b7280;
  background-color: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 12px;
  vertical-align: middle;
}

#interactions-table thead th:first-child {
  padding-left: 0;
}

/* Improve table row styling */
#interactions-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

#interactions-table tbody tr:hover {
  background-color: #f8fafc;
}

#interactions-table tbody td {
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  vertical-align: middle;
}

#interactions-table tbody td:first-child {
  padding-left: 0;
}

/* Column filter styling */
#interactions-table thead tr.column-filters th {
  padding: 6px 8px;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

#interactions-table thead tr.column-filters th:first-child {
  padding-left: 0;
}

#interactions-table thead tr.column-filters input {
  font-size: 11px;
  padding: 5px 8px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f8fafc;
  color: #374151;
  width: 100%;
}

#interactions-table thead tr.column-filters input::placeholder {
  color: #9ca3af;
  font-size: 11px;
}

#interactions-table thead tr.column-filters input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
  outline: none;
  background: #fff;
}

.stats-card {
  border-radius: 0;
}

.dashboard-list {
  padding-left: 0;
  margin-left: 0;
}

.dashboard-list-item {
  padding: 6px 0;
}

.dashboard-question-cell {
  white-space: normal;
}

/* Align dashboard rows/padding */
.dashboard-container {
  padding-left: 16px;
  padding-right: 16px;
}

.dashboard-container .row.top-metrics {
  margin-left: -6px;
  margin-right: -6px;
}

.dashboard-container .row.top-metrics > [class*="col"] {
  padding-left: 6px;
  padding-right: 6px;
}

/* Make the recent interactions table span the available width */
.dashboard-container .table-responsive {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.dashboard-container .table-responsive table {
  width: 100%;
  table-layout: auto;
}

/* Styled tooltip for truncated questions/answers */
.dashboard-question-cell {
  position: relative;
  max-width: 200px;
  overflow: visible !important;
}

.dashboard-question-cell .question-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.dashboard-question-cell .question-tooltip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  background: #1f2937;
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 400px;
  width: max-content;
  white-space: normal;
  word-wrap: break-word;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.dashboard-question-cell .question-tooltip::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #1f2937;
}

.dashboard-question-cell:hover .question-tooltip {
  display: block;
}

/* Column styles - compact fit */
#interactions-table th,
#interactions-table td {
  padding: 8px 10px;
  white-space: nowrap;
}

/* First column alignment - no left padding */
#interactions-table th:first-child,
#interactions-table td:first-child,
#interactions-table thead tr.column-filters th:first-child {
  padding-left: 0 !important;
}

/* Add space for DataTables sorting arrows */
#interactions-table th {
  padding-right: 20px !important;
}

#interactions-table .col-question,
#interactions-table .col-answer {
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#interactions-table .col-latency,
#interactions-table .col-tokens,
#interactions-table .col-prompt,
#interactions-table .col-completion {
  text-align: right;
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 12px;
}

/* Badge styling for interactions table */
#interactions-table .badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

#interactions-table .badge.bg-soft-primary {
  background: rgba(99, 102, 241, 0.12);
  color: #4f46e5;
}

#interactions-table .badge.bg-soft-secondary {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

/* Status code styling */
#interactions-table .col-status .question-text {
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
  font-size: 12px;
}

/* DataTables controls styling */
/* Reserve space for controls row to prevent layout shift */
#interactions-pane .dataTables_wrapper > div:first-child {
  min-height: 42px;
}

#interactions-pane .dataTables_wrapper .dataTables_length,
#interactions-pane .dataTables_wrapper .dataTables_filter {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

#interactions-pane .dataTables_wrapper .dataTables_length select,
#interactions-pane .dataTables_wrapper .dataTables_filter input {
  font-size: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
}

#interactions-pane .dataTables_wrapper .dataTables_info {
  font-size: 13px;
  color: #6b7280;
}

#interactions-pane .dataTables_wrapper .dataTables_paginate .paginate_button {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  margin: 0 2px;
}

#interactions-pane .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #4f46e5 !important;
  color: #fff !important;
  border: none !important;
}

#interactions-pane .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f1f5f9 !important;
  color: #374151 !important;
  border: 1px solid #e5e7eb !important;
}

/* Interactions Export Controls - inline with search */
.interactions-export-controls {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
  vertical-align: middle;
  animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Make search filter inline-flex to accommodate export buttons */
#interactions-pane .dataTables_wrapper .dataTables_filter {
  display: inline-flex !important;
  align-items: center;
}

.interactions-export-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.interactions-export-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.interactions-export-btn:active {
  background: #f3f4f6;
}

.interactions-export-btn i {
  font-size: 14px;
}

.interactions-export-btn-primary {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.interactions-export-btn-primary:hover {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
}

.interactions-export-btn-primary:active {
  background: #3730a3;
}

/* Copy success state */
.interactions-export-btn.copy-success {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

#users-table th,
#users-table td {
  padding: 8px 10px;
  white-space: nowrap;
}

#users-table th {
  padding-right: 24px !important;
}

#users-table .col-interactions,
#users-table .col-threads,
#users-table .col-avg-turns,
#users-table .col-single-turn,
#users-table .col-tokens,
#users-table .col-emb-tokens,
#users-table .col-emb-calls,
#users-table .col-emb-cost,
#users-table .col-latency,
#users-table .col-success,
#users-table .col-rbac,
#users-table .col-insufficient,
#users-table .col-policy,
#users-table .col-error,
#users-table .col-cost {
  text-align: right;
}

#users-table .col-industries {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#users-table .col-models {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Allow header text to wrap */
.dashboard-container #interactions-table th {
  white-space: nowrap;
  line-height: 1.3;
  padding-right: 14px;
}

.dashboard-container .row.info-metrics {
  margin-left: -6px;
  margin-right: -6px;
}

.dashboard-container .row.info-metrics > [class*="col"] {
  padding-left: 6px;
  padding-right: 6px;
}

.dashboard-container .row.info-metrics .dashboard-card {
  padding: 24px;
}

.dashboard-container .row.g-3 {
  margin-left: -6px;
  margin-right: -6px;
}

.dashboard-container .row.g-3 > [class*="col"] {
  padding-left: 6px;
  padding-right: 6px;
}


/*--------------------------------------------------------------
# Chat page (scoped, no conflicts with rest of the site)
--------------------------------------------------------------*/
body.chat-page {
  --sidebar-w: 300px;
  --sidebar-w-collapsed: 72px;
  --topbar-h: 54px;
  --border: #eee;
  --muted: #8b8b8b;
  --muted-hover: #5f5f5f;
  --bg-soft: #f7f8fa;
}

/* Layout container */
body.chat-page .chat-app-layout {
  height: 100vh;
}

/* Overlay */
body.chat-page .sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
}

body.chat-page .sidebar-overlay.active {
  display: block;
}

/* Sidebar */
body.chat-page .chat-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: var(--sidebar-w);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

body.chat-page .chat-sidebar-top {
  padding: 12px;
}

body.chat-page .chat-sidebar-body {
  flex: 1;
  padding: 0 12px 12px 12px;
  overflow-y: auto;
  min-height: 0;
}

/* Dashboard sidebar navigation */
.dashboard-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.dashboard-nav-item i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  color: #555;
}

.dashboard-nav-item:hover {
  background: #f0f0f0;
  color: #1f1f1f;
  text-decoration: none;
}

.dashboard-nav-item:hover i {
  color: #333;
}

.dashboard-nav-item.active {
  background: #e8e8e8;
  color: #1f1f1f;
}

.dashboard-nav-item.active i {
  color: #333;
}

/* Hide text when sidebar collapsed */
body.chat-page .chat-app-layout.sidebar-collapsed .dashboard-nav-item span {
  display: none;
}

body.chat-page .chat-app-layout.sidebar-collapsed .dashboard-nav-item {
  justify-content: center;
  padding: 10px;
}

body.chat-page .chat-app-layout.sidebar-collapsed .dashboard-nav-item i {
  font-size: 18px;
}

body.chat-page .sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

body.chat-page .sidebar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: 12px;
}

body.chat-page .sidebar-logo {
  height: 22px;
  width: auto;
}

/* Divider */
body.chat-page .sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

/* Sidebar buttons */
body.chat-page .sidebar-toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 18px;
  color: var(--muted);
  opacity: 0.85;
}

body.chat-page .sidebar-toggle-btn:hover {
  color: var(--muted-hover);
  opacity: 1;
}

body.chat-page .new-chat-btn {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.chat-page .new-chat-btn i {
  font-size: 16px;
  color: #555;
}

body.chat-page .new-chat-btn:hover {
  background: #f0f0f0;
}

body.chat-page .new-chat-btn:hover i {
  color: #333;
}

/* Sidebar search icon button (collapsed state) */
body.chat-page .sidebar-search-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  margin: 8px auto 0 auto;
}

body.chat-page .sidebar-search-btn:hover {
  background: #f5f5f5;
  color: #1f1f1f;
}

/* Search button (expanded sidebar) */
body.chat-page .chat-search-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1f1f1f;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

body.chat-page .chat-search-btn:hover {
  background: #f0f0f0;
}

body.chat-page .chat-search-btn i {
  font-size: 16px;
  color: #555;
}

body.chat-page .chat-search-btn:hover i {
  color: #333;
}

/* Chat list header */
body.chat-page .chat-list-header {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 12px 8px 12px;
  letter-spacing: 0.02em;
}

/* Chat list */
body.chat-page .chat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

body.chat-page .chat-list-item {
  position: relative;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.15s ease;
}

body.chat-page .chat-list-item:hover {
  background: #f0f0f0;
}

body.chat-page .chat-list-item.active {
  background: #e8e8e8;
}

body.chat-page .chat-list-left {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.chat-page .chat-list-icon {
  font-size: 16px;
  color: #555;
  flex-shrink: 0;
}

body.chat-page .chat-list-title {
  font-size: 14px;
  color: #1f1f1f;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.chat-page .chat-item-menu-btn {
  border: none;
  background: transparent;
  padding: 4px 6px;
  border-radius: 6px;
  color: #666;
  opacity: 0;
  transition: opacity 0.15s ease;
  flex-shrink: 0;
}

body.chat-page .chat-list-item:hover .chat-item-menu-btn {
  opacity: 1;
}

body.chat-page .chat-item-menu-btn:hover {
  background: #e0e0e0;
  color: #333;
}

/* Dropdown menu */
body.chat-page .chat-item-menu {
  position: absolute;
  right: 10px;
  top: 38px;
  width: 180px;
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 6px;
  display: none;
  z-index: 2000;
}

body.chat-page .chat-item-menu.open {
  display: block;
}

body.chat-page .chat-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 10px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.chat-page .chat-menu-item:hover {
  background: #f5f5f5;
}

body.chat-page .chat-menu-delete {
  color: #c0392b;
}

/* Sidebar bottom links */
body.chat-page .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border);
}

body.chat-page .sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #444;
  font-size: 14px;
  transition: background 0.15s ease;
}

body.chat-page .sidebar-nav-link i {
  font-size: 16px;
  color: #555;
}

body.chat-page .sidebar-nav-link:hover {
  background: #f0f0f0;
  color: #1f1f1f;
  text-decoration: none;
}

body.chat-page .sidebar-nav-link:hover i {
  color: #333;
}

body.chat-page .sidebar-nav-link.active {
  background: #e8e8e8;
  color: #1f1f1f;
}

body.chat-page .sidebar-nav-link.active i {
  color: #333;
}

body.chat-page .main-social-links {
  position: absolute;
  top: 17px;
  right: 16px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

body.chat-page .main-social-links a {
  color: #888;
  font-size: 14px;
  transition: color 0.15s ease;
}

body.chat-page .main-social-links a:hover {
  color: #333;
}

/* Chat list skeleton loading */
body.chat-page .chat-list-skeleton {
  padding: 4px 0;
}

body.chat-page .skeleton-item {
  height: 36px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 8px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Main section */
body.chat-page .chat-main {
  position: relative;
  margin-left: var(--sidebar-w);
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mobile sidebar open button (floating) */
body.chat-page .sidebar-open-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  border: none;
  background: transparent;
  padding: 6px 8px;
  font-size: 18px;
  color: var(--muted);
  opacity: 0.8;
  display: none; /* shown on mobile, and when collapsed on desktop */
}

body.chat-page #sidebar-search {
  display: none;
}

body.chat-page .sidebar-open-btn:hover {
  color: var(--muted-hover);
  opacity: 1;
}

/* Model selector */
body.chat-page .model-selector-container {
  position: absolute;
  top: 12px;
  left: 24px;
  z-index: 100;
}

body.chat-page .model-selector-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.chat-page .model-selector-btn:hover {
  background: var(--bg-soft);
  border-color: #ccc;
}

body.chat-page .model-selector-btn i {
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.15s ease;
}

body.chat-page .model-dropdown.open + .model-selector-btn i,
body.chat-page .model-dropdown.open ~ .model-selector-btn i {
  transform: rotate(180deg);
}

body.chat-page .model-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 8px;
  display: none;
  z-index: 1000;
}

body.chat-page .model-dropdown.open {
  display: block;
}

body.chat-page .model-dropdown-section {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 12px 4px;
  letter-spacing: 0.5px;
}

body.chat-page .model-dropdown-section:not(:first-child) {
  margin-top: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* Mobile responsive model selector */
@media (max-width: 768px) {
  body.chat-page .model-selector-container {
    left: 50px;
    right: 12px;
  }
  
  body.chat-page .model-dropdown {
    min-width: 0;
    width: calc(100vw - 80px);
    max-width: 320px;
  }
}

body.chat-page .model-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.chat-page .model-option:hover {
  background: var(--bg-soft);
}

body.chat-page .model-option.active {
  background: var(--bg-soft);
}

body.chat-page .model-option.active::after {
  content: "✓";
  float: right;
  color: var(--muted);
}

body.chat-page .model-option-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

body.chat-page .model-option-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

body.chat-page .topbar-brand {
  display: none;
  align-items: center;
  text-decoration: none;
}

body.chat-page .topbar-logo {
  height: 20px;
  width: auto;
}

/* Main content fills remaining height */
body.chat-page .chat-main-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-top: 50px;
}

body.chat-page .chat-main-inner {
  height: 100%;
  padding: 12px;
}

/* Chat container fills vertical space */
body.chat-page .chat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  margin: 0;
}

body.chat-page .chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 6px 8px 0;
}

/* Message layout: avatar left, bubble right */
body.chat-page .message {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

body.chat-page .message.user {
  justify-content: flex-end;
}

body.chat-page .message.user .img-circle {
  order: 2;
}

body.chat-page .message.user .message-text {
  order: 1;
}

/* Bubble */
body.chat-page .message-text {
  background-color: #f1f1f1;
  border-radius: 12px;
  padding: 10px 12px;
  max-width: 820px;
  font-size: 14px;
  margin: 0;
}

body.chat-page .user .message-text {
  background-color: #d3e3fd;
}

body.chat-page .message-text p {
  margin: 0 0 10px 0;
  line-height: 1.5;
}

body.chat-page .message-text p:last-child {
  margin-bottom: 0;
}

/* Avatar */
body.chat-page .img-circle {
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  color: #274472;
  background-color: transparent;
  flex: 0 0 auto;
}

body.chat-page .img-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

/* Input */
body.chat-page .message-input-container {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 25px;
  padding: 5px 10px;
  margin: 12px 0 0 0;
  background: #fff;
}

body.chat-page .message-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 14px;
  border-radius: 20px;
}

body.chat-page .message-input:focus {
  outline: none;
  box-shadow: none;
}

body.chat-page .send-button {
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 10px;
  cursor: pointer;
}

body.chat-page .send-button i {
  font-size: 24px;
  color: gray;
}

/* Voice input button */
body.chat-page .voice-input-btn {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s ease;
}

body.chat-page .voice-input-btn:hover {
  background: #f0f0f0;
}

body.chat-page .voice-input-btn i {
  font-size: 18px;
  color: #555;
}

body.chat-page .voice-input-btn.listening {
  background: #fee2e2;
}

body.chat-page .voice-input-btn.listening i {
  color: #ef4444;
  animation: pulse-mic 1s infinite;
}

@keyframes pulse-mic {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Voice input mode */
body.chat-page .input-mode {
  display: flex;
  align-items: center;
  width: 100%;
}

body.chat-page .voice-mode {
  background: #f0f0f0;
  border-radius: 25px;
  padding: 10px 16px;
  gap: 12px;
  margin: -5px -10px;
  width: calc(100% + 20px);
}

body.chat-page .voice-waveform {
  flex-shrink: 0;
}

body.chat-page .waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}

body.chat-page .waveform-bars span {
  width: 3px;
  height: 8px;
  background: #333;
  border-radius: 2px;
  animation: waveform 0.8s ease-in-out infinite;
}

body.chat-page .waveform-bars span:nth-child(1) { animation-delay: 0s; }
body.chat-page .waveform-bars span:nth-child(2) { animation-delay: 0.1s; }
body.chat-page .waveform-bars span:nth-child(3) { animation-delay: 0.2s; }
body.chat-page .waveform-bars span:nth-child(4) { animation-delay: 0.3s; }
body.chat-page .waveform-bars span:nth-child(5) { animation-delay: 0.4s; }
body.chat-page .waveform-bars span:nth-child(6) { animation-delay: 0.5s; }
body.chat-page .waveform-bars span:nth-child(7) { animation-delay: 0.6s; }
body.chat-page .waveform-bars span:nth-child(8) { animation-delay: 0.5s; }
body.chat-page .waveform-bars span:nth-child(9) { animation-delay: 0.4s; }
body.chat-page .waveform-bars span:nth-child(10) { animation-delay: 0.3s; }
body.chat-page .waveform-bars span:nth-child(11) { animation-delay: 0.2s; }
body.chat-page .waveform-bars span:nth-child(12) { animation-delay: 0.1s; }
body.chat-page .waveform-bars span:nth-child(13) { animation-delay: 0s; }
body.chat-page .waveform-bars span:nth-child(14) { animation-delay: 0.1s; }
body.chat-page .waveform-bars span:nth-child(15) { animation-delay: 0.2s; }

@keyframes waveform {
  0%, 100% { height: 8px; }
  50% { height: 20px; }
}

body.chat-page .voice-transcript {
  flex: 1;
  color: #1f1f1f;
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.chat-page .voice-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

body.chat-page .voice-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

body.chat-page .voice-cancel {
  background: #e5e5e5;
  color: #333;
}

body.chat-page .voice-cancel:hover {
  background: #d5d5d5;
}

body.chat-page .voice-confirm {
  background: #333;
  color: #fff;
}

body.chat-page .voice-confirm:hover {
  background: #e5e5e5;
}

/* Collapsed sidebar (desktop icon-only) */
@media (min-width: 992px) {
  body.chat-page .chat-app-layout.sidebar-collapsed .chat-sidebar {
    width: var(--sidebar-w-collapsed);
    background: var(--bg-soft);
    align-items: center;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .sidebar-brand {
    display: none;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .new-chat-btn span {
    display: none;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .sidebar-search-btn {
    display: inline-flex;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed #sidebar-search {
    width: 44px;
    margin: 12px auto 0 auto;
    justify-content: center;
    display: inline-flex !important;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed #sidebar-search span {
    display: none;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .chat-search-btn {
    display: none;
  }


  body.chat-page .chat-app-layout.sidebar-collapsed .sidebar-nav-link {
    justify-content: center;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .sidebar-nav-link span {
    display: none;
  }

 



  body.chat-page .chat-app-layout.sidebar-collapsed .topbar-brand {
    display: inline-flex;
  }
}

/* Mobile: drawer sidebar */
@media (max-width: 991px) {
  body.chat-page .chat-main {
    margin-left: 0;
  }

  body.chat-page .chat-sidebar {
    width: 320px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.chat-page .chat-sidebar.open {
    transform: translateX(0);
  }

  body.chat-page .sidebar-open-btn {
    display: inline-flex;
  }

  /* On mobile you want branding visible, sidebar is often closed */
  body.chat-page .topbar-brand {
    display: inline-flex;
  }
}


/* Desktop: do not show the topbar open button, the left toggle handles open/close */
@media (min-width: 992px) {
  .sidebar-open-btn {
    display: none !important;
  }
}

/* Collapsed desktop: keep the left toggle visible even without hover */
@media (min-width: 992px) {
  .chat-app-layout.sidebar-collapsed .sidebar-toggle-btn {
    opacity: 1 !important;
  }
}


/* Collapsed sidebar (desktop): hide history list and fix layout */
@media (min-width: 992px) {
  body.chat-page .chat-app-layout.sidebar-collapsed .chat-main {
    margin-left: var(--sidebar-w-collapsed);
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .chat-sidebar {
    overflow: hidden;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .chat-sidebar-body {
    /* display: none; */
    visibility: hidden;
    pointer-events: none;
  }

  /* Show dashboard nav icons when sidebar is collapsed on dashboard page */
  body.chat-page .chat-app-layout.sidebar-collapsed .chat-sidebar-body:has(.dashboard-sidebar-nav) {
    visibility: visible;
    pointer-events: auto;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .chat-sidebar-body .chat-list-header {
    display: none;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .dashboard-sidebar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .dashboard-nav-item {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 4px;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .dashboard-nav-item span {
    display: none;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .dashboard-nav-item i {
    font-size: 18px;
    margin: 0;
  }
}



/* Narrow chat column on desktop, industry standard is a centered max-width for readability */
body.chat-page .chat-main-inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* Desktop collapsed behavior: do not show chat history list when sidebar is collapsed */
@media (min-width: 992px) {
  body.chat-page .chat-app-layout.sidebar-collapsed .chat-main {
    margin-left: var(--sidebar-w-collapsed);
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .chat-sidebar {
    align-items: stretch;
  }

  

  body.chat-page .chat-app-layout.sidebar-collapsed .sidebar-brand-row {
    justify-content: center;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .new-chat-btn {
    width: 44px;
    margin: 0 auto;
    justify-content: center;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed .new-chat-btn span {
    display: none;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed #sidebar-search {
    width: 44px;
    margin: 8px auto 0 auto;
    justify-content: center;
  }

  body.chat-page .chat-app-layout.sidebar-collapsed #sidebar-search span {
    display: none;
  }
}

/* Ensure the topbar open button never shows on desktop, but show on mobile */
@media (min-width: 992px) {
  body.chat-page .chat-main .sidebar-open-btn {
    display: none !important;
  }
}

@media (max-width: 991px) {
  body.chat-page .chat-main .sidebar-open-btn {
    display: inline-flex !important;
  }
}

/* Dashboard page scroll inside the main area */
body.chat-page .chat-main-content.dashboard-scroll {
  overflow-y: scroll;
  overflow-x: hidden;
  background: #fff;
}

/* Gray background for analytics tabs (Overview, Operations, Product, Business, Quality) */
body.chat-page .chat-main-content.dashboard-scroll.dashboard-analytics-bg {
  background: #f1f5f9;
}

/* Optional, avoid the container looking cut off at the bottom */
body.chat-page .chat-main-content.dashboard-scroll .container {
  padding-bottom: 40px;
}

/* Dashboard content should fit to content, not stretch */
body.chat-page .chat-main-content.dashboard-scroll .chat-main-inner {
  height: auto;
  min-height: auto;
}

body.chat-page .chat-main-content.dashboard-scroll .dashboard-card {
  margin-bottom: 0;
}

/* Sidebar icon tooltips */
body.chat-page .chat-sidebar .new-chat-btn,
body.chat-page .chat-sidebar .sidebar-open-btn,
body.chat-page .chat-sidebar .sidebar-nav-link,
body.chat-page .main-social-links a {
  position: relative;
}

.sidebar-tooltip {
  position: absolute;
  padding: 6px 10px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 5000;
}

.sidebar-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Search Modal */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.search-modal-overlay.active {
  display: flex;
}

.search-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: searchModalIn 0.15s ease-out;
}

@keyframes searchModalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #e6e6e6;
}

.search-modal-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.search-modal-header input::placeholder {
  color: #999;
}

.search-modal-close {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.search-modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.search-modal-new-chat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid #e6e6e6;
  color: #1f1f1f;
  font-weight: 500;
  font-size: 15px;
}

.search-modal-new-chat:hover {
  background: #f5f5f5;
}

.search-modal-new-chat i {
  font-size: 20px;
  color: #555;
}

.search-modal-results {
  padding: 0;
}

.search-modal-section {
  padding: 16px 20px 8px;
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

.search-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.1s;
}

.search-modal-item:hover {
  background: #f5f5f5;
}

.search-modal-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.search-modal-item-icon i {
  color: #555;
  font-size: 14px;
}

.search-modal-item-content {
  flex: 1;
  min-width: 0;
}

.search-modal-item-title {
  font-weight: 600;
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.search-modal-item-preview {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-modal-item-date {
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
  margin-top: 2px;
}

.search-modal-empty {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

/* --------------------------------------------------------------
# Pricing Table Styling
-------------------------------------------------------------- */
#pricing-pane .card.dashboard-card {
    border: none;
    box-shadow: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

#pricing-pane .card-body {
    padding: 0;
}

/* Align pricing description with table content */
.pricing-description {
    padding-left: 16px;
    margin-top: 1.5rem;
}

#pricing-pane .table-responsive {
    margin: 0;
    margin-left: 0;
}

.pricing-table {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    margin-left: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.pricing-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.pricing-table thead tr th:first-child {
    background: transparent;
}

.pricing-table tbody tr {
    transition: background 0.15s ease;
}

.pricing-table tbody tr:hover {
    background: #f8fafc;
}

.pricing-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}


/* Model cell */
.pricing-model-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-model-name {
    font-weight: 500;
    color: #1f2937;
}

/* Default badge */
.pricing-badge-default {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
}

/* Type badges */
.pricing-type-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 4px;
}

.pricing-type-llm {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.pricing-type-embedding {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

/* Price values */
.pricing-value {
    font-family: "SF Mono", "Menlo", "Monaco", "Consolas", monospace;
    font-size: 13px;
    color: #374151;
}

.pricing-na {
    color: #9ca3af;
}

/* Action buttons */
.pricing-actions {
    white-space: nowrap;
}

.pricing-btn {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.pricing-btn i {
    font-size: 12px;
}

.pricing-btn-edit {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
}

.pricing-btn-edit:hover {
    background: #f8fafc;
    border-color: #9ca3af;
    color: #1f2937;
}

.pricing-btn-delete {
    background: transparent;
    border: 1px solid #fecaca;
    color: #dc2626;
    margin-left: 8px;
}

.pricing-btn-delete:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

/* Default row styling (subtle) */
.pricing-row-default {
    background: transparent;
}

/* Pricing editor form */
.pricing-editor {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px !important;
    margin-top: 20px !important;
}

.pricing-editor .form-control,
.pricing-editor .form-select {
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.pricing-editor .form-control:focus,
.pricing-editor .form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.pricing-editor .form-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

/*--------------------------------------------------------------
# Streaming Chat Cursor
--------------------------------------------------------------*/
.streaming-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #6366f1;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Streaming message container */
#streaming-message {
    opacity: 1;
}

#streaming-message .text {
    min-height: 1.5em;
}

/* =============================================================================
   MOBILE DASHBOARD OPTIMIZATIONS
   Industry-standard responsive design for analytics dashboards
   ============================================================================= */

/* Mobile: 2-column KPI grid (< 768px) */
@media (max-width: 767px) {
  /* Compact header */
  .dashboard-section .section-header .section-title {
    font-size: 16px;
    margin-bottom: 2px;
  }

  .dashboard-section .section-header .section-subtitle {
    font-size: 11px;
    display: none; /* Hide subtitle on mobile to save space */
  }

  /* Compact range controls */
  .dashboard-range-controls {
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
  }

  .dashboard-range-controls .last-interaction-meta {
    font-size: 10px;
    width: 100%;
    margin-bottom: 4px;
  }

  .dashboard-range-controls .range-divider {
    display: none;
  }

  .dashboard-range-controls .range-preset-button {
    font-size: 12px;
    padding: 4px 10px;
  }

  /* 2-column grid for KPI cards */
  #executiveKpiCardsContainer,
  .row.g-3.mb-4 {
    --bs-gutter-x: 8px;
    --bs-gutter-y: 8px;
  }

  #executiveKpiCardsContainer > .col-sm-6,
  #executiveKpiCardsContainer > .col-xl-3,
  #executiveKpiCardsContainer > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 4px;
    padding-right: 4px;
  }

  /* Compact KPI cards */
  .stats-card {
    padding: 12px 10px;
    min-height: auto;
  }

  .stats-card--compact {
    padding: 12px 10px;
    min-height: 90px;
  }

  .stats-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .stats-label .stats-info-icon {
    font-size: 10px;
  }

  .stats-value {
    font-size: 1.4rem;
    line-height: 1.1;
    margin-bottom: 2px;
  }

  .stats-card--compact .stats-value,
  .stats-card--primary .stats-value {
    font-size: 1.4rem;
  }

  .stats-unit {
    font-size: 0.75rem;
  }

  .stats-delta {
    font-size: 10px;
    margin-top: 2px;
  }

  /* Dashboard container padding */
  .dashboard-container {
    padding: 0 8px;
  }

  .chat-main-inner.dashboard-container {
    padding: 8px;
  }

  /* Section spacing */
  .dashboard-section {
    margin-bottom: 16px;
  }

  .dashboard-section .section-header {
    margin-bottom: 12px;
  }

  /* Chart cards - full width on mobile */
  .dashboard-card {
    margin-bottom: 12px;
  }

  .dashboard-card.p-3 {
    padding: 12px !important;
  }

  .card.dashboard-card h6 {
    font-size: 13px;
  }

  /* Reduce row gaps */
  .row.g-3 {
    --bs-gutter-y: 8px;
  }

  .mb-4 {
    margin-bottom: 12px !important;
  }
}

/* Extra small screens (< 480px) - even more compact */
@media (max-width: 479px) {
  .stats-card--compact {
    padding: 10px 8px;
    min-height: 80px;
  }

  .stats-label {
    font-size: 8px;
    letter-spacing: 0.2px;
  }

  .stats-value {
    font-size: 1.25rem;
  }

  .stats-card--compact .stats-value,
  .stats-card--primary .stats-value {
    font-size: 1.25rem;
  }

  .stats-delta {
    font-size: 9px;
  }

  .dashboard-section .section-header .section-title {
    font-size: 14px;
  }

  .dashboard-range-controls .range-preset-button {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* Tablet portrait (768px - 991px) - 3-column grid */
@media (min-width: 768px) and (max-width: 991px) {
  #executiveKpiCardsContainer > .col-sm-6,
  #executiveKpiCardsContainer > [class*="col-"] {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .stats-card--compact {
    padding: 14px 12px;
    min-height: 100px;
  }

  .stats-value {
    font-size: 1.5rem;
  }

  .stats-card--compact .stats-value {
    font-size: 1.5rem;
  }
}

/* Mobile landscape and small tablets - improve touch targets */
@media (max-width: 991px) and (orientation: landscape) {
  .dashboard-section .section-header {
    padding: 8px 0;
  }

  .stats-card--compact {
    min-height: 85px;
  }
}

/* Fix dashboard scroll on iOS */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    .chat-main-content.dashboard-scroll {
      -webkit-overflow-scrolling: touch;
    }
  }
}

/* Delete Confirmation Modal */
.delete-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(2px);
}

.delete-modal-overlay.active {
  display: flex;
}

.delete-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  margin: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: deleteModalIn 0.15s ease-out;
}

@keyframes deleteModalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.delete-modal-content {
  padding: 24px;
}

.delete-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 12px 0;
}

.delete-modal-message {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.delete-modal-message strong {
  color: #1a1a1a;
}

.delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  background: #f9f9f9;
  border-top: 1px solid #e9e9e9;
}

.delete-modal-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.delete-modal-btn-cancel {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.delete-modal-btn-cancel:hover {
  background: #f5f5f5;
  color: #333;
}

.delete-modal-btn-delete {
  background: #dc3545;
  color: #fff;
}

.delete-modal-btn-delete:hover {
  background: #c82333;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .delete-modal {
    background: #2a2a2a;
  }

  .delete-modal-title {
    color: #f0f0f0;
  }

  .delete-modal-message {
    color: #aaa;
  }

  .delete-modal-message strong {
    color: #f0f0f0;
  }

  .delete-modal-actions {
    background: #222;
    border-top-color: #444;
  }

  .delete-modal-btn-cancel {
    background: #333;
    color: #ccc;
    border-color: #555;
  }

  .delete-modal-btn-cancel:hover {
    background: #444;
    color: #fff;
  }
}
