/* static/style.css */
/* MUI-inspired Light Theme */

/* 1. Base Design & Typography */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #1976d2;
  --primary-color-dark: #1565c0;
  --secondary-color: #9c27b0;
  --error-color: #d32f2f;
  --success-color: #2e7d32;
  --background-color: #f5f5f5;
  --surface-color: #ffffff;
  --on-primary-color: #ffffff;
  --text-primary-color: #212121;
  --text-secondary-color: #757575;
  --divider-color: #e0e0e0;

  --font-family: "Roboto", sans-serif;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;

  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-2: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  --shadow-3: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);

  --spacing-unit: 8px;
  --transition-duration: 220ms;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-primary-color);
  font-size: 16px;
  /* Default body font size */
  font-weight: 400;
  line-height: 1.5;
}

h1 {
  font-size: 2.125rem;
  font-weight: 400;
  line-height: 1.235;
}

h2 {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.334;
}

h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
}

h6 {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
}

/* 2. Components */

/* Card */
.mui-card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-2);
  padding: calc(var(--spacing-unit) * 3);
  transition: box-shadow var(--transition-duration) ease-in-out;
}

/* Button */
.mui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--border-radius-md);
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
  font-family: var(--font-family);
  font-size: 0.875rem;
  /* MUI Button size */
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-duration) ease-in-out,
    box-shadow var(--transition-duration) ease-in-out;
  text-decoration: none;
  line-height: 1.75;
}

.mui-btn-contained {
  background-color: var(--primary-color);
  color: var(--on-primary-color);
  box-shadow: var(--shadow-1);
}

.mui-btn-contained:hover {
  background-color: var(--primary-color-dark);
  box-shadow: var(--shadow-2);
}

/* Input Fields */
.mui-textfield {
  position: relative;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

.mui-textfield input {
  width: 100%;
  padding: calc(var(--spacing-unit) * 2);
  border: 1px solid var(--divider-color);
  border-radius: var(--border-radius-sm);
  font-size: 1rem;
  background-color: transparent;
  transition: border-color var(--transition-duration) ease-in-out;
  box-sizing: border-box;
}

.mui-textfield input:focus {
  outline: none;
  border: 2px solid var(--primary-color);
  padding: calc(calc(var(--spacing-unit) * 2) - 1px);
}

.mui-textfield label {
  position: absolute;
  top: 50%;
  left: calc(var(--spacing-unit) * 2);
  transform: translateY(-50%);
  background: var(--surface-color);
  padding: 0 4px;
  color: var(--text-secondary-color);
  transition: all var(--transition-duration) ease-in-out;
  pointer-events: none;
  font-size: 1rem;
}

.mui-textfield input:focus+label,
.mui-textfield input:not(:placeholder-shown)+label {
  top: 0;
  left: calc(var(--spacing-unit) * 1.5);
  font-size: 0.75rem;
  color: var(--primary-color);
}

/* Alert */
.mui-alert {
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius-sm);
  margin-top: var(--spacing-unit);
  text-align: center;
}

.mui-alert-error {
  background-color: #ffcdd2;
  color: var(--error-color);
}

/* 3. Layout Helpers */
.container {
  display: flex;
  /* ใช้ flexbox เพื่อให้ element ลูกขยายเต็มพื้นที่ได้ */
  flex-direction: column;
  min-height: 91vh;
  padding: 0;
}

.main-content .container-fluid {
  padding: 0;
}

.container-fluid iframe {
  width: 100%;
  /* กำหนดความกว้างเต็ม 100% ของ container */
  height: 100%;
  /* กำหนดความสูงเต็ม 100% ของ container */
  flex-grow: 1;
  /* สำคัญ: ทำให้ iframe ขยายจนเต็มพื้นที่ที่เหลือใน flex container */
  border: none;
  /* ลบเส้นขอบของ iframe ออก */
  height: 90vh;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: calc(var(--spacing-unit) * 2);
}

/* New Home Page Layout */
body.dashboard-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 56px 1fr;
  grid-template-areas:
    "sidenav header"
    "sidenav main";
  height: 100vh;
  overflow: hidden;
  transition: grid-template-columns var(--transition-duration) ease-in-out;
}

body.dashboard-layout.sidenav-collapsed {
  grid-template-columns: 0 1fr;
}

.app-header {
  grid-area: header;
  display: flex;
  align-items: center;
  padding: 0 calc(var(--spacing-unit) * 2);
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--divider-color);
  z-index: 1100;
}

.hamburger {
  display: inline-flex;
  /* Always show hamburger */
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-unit);
  margin-right: var(--spacing-unit);
}

.header-title {
  font-size: 1.25rem;
  font-weight: 500;
  flex-grow: 1;
}

.logout-btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-unit);
}

.sidenav {
  grid-area: sidenav;
  background-color: var(--surface-color);
  border-right: 1px solid var(--divider-color);
  padding-top: var(--spacing-unit);
  transition: width var(--transition-duration) ease-in-out,
    transform var(--transition-duration) ease-in-out;
  width: 200px;
  overflow-x: hidden;
  /* Hide content when collapsing */
}

body.dashboard-layout.sidenav-collapsed .sidenav {
  width: 0;
  padding: 0;
  transform: translateX(-100%);
}

.nav-menu {
  margin-top: 2rem;
}

.nav-link {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  padding: 10px 16px;
  margin: 4px 8px;
  text-decoration: none;
  color: var(--text-primary-color);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  transition: background-color var(--transition-duration) ease-in-out;
}

.nav-link i {
  margin-right: 16px;
  color: var(--text-secondary-color);
  font-size: 24px;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link span {
  display: inline-block;
  line-height: 1;
}

.nav-link.active {
  background-color: rgba(25, 118, 210, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding-left: 12px;
  /* Adjust for border */
}

.nav-link.active i {
  color: var(--primary-color);
}

.nav-link:hover:not(.active) {
  background-color: var(--background-color);
}

.main-content {
  grid-area: main;
  overflow-y: auto;
  padding: calc(var(--spacing-unit) * 2);
  background-color: var(--background-color);
}

.content-section {
  display: none;
  height: 100%;
}

.content-section.active {
  display: block;
}

.sidenav-overlay {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body.dashboard-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 56px 1fr;
    grid-template-areas:
      "header"
      "main";
  }

  body.dashboard-layout.sidenav-collapsed {
    grid-template-columns: 1fr;
  }

  .sidenav {
    position: fixed;
    height: 100%;
    z-index: 1200;
    transform: translateX(-100%);
  }

  .sidenav.open {
    transform: translateX(0);
  }

  .sidenav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1199;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-duration) ease,
      visibility var(--transition-duration) ease;
  }

  .sidenav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* End of style.css */

/* --- Boat Details (MUI-like Light) --- */
:root {
  --mui-primary: #007fff;
  --mui-bg: #f0f2f5;
  --mui-card: #ffffff;
  --mui-text: #1a2027;
  --mui-text-sec: #636b74;
  --mui-border: #e0e3e7;
}

.bd-wrap {
  font-family: "IBM Plex Sans", system-ui, Arial, sans-serif;
  color: var(--mui-text);
  background: var(--mui-bg);
}

.bd-card {
  background: var(--mui-card);
  border: 1px solid var(--mui-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.bd-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
  align-items: start;
}

@media (max-width: 1024px) {
  .bd-grid {
    grid-template-columns: 1fr;
  }
}

.bd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
}

.bd-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.bd-sub {
  color: var(--mui-text-sec);
  font-size: 12px;
}

.bd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bd-badge {
  background: #e6f0fe;
  border: 1px solid #c7dbff;
  color: #0747a6;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.bd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--mui-border);
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #fff;
  transition: background 200ms ease-out;
}

.bd-chip .fa {
  color: var(--mui-primary);
}

.bd-gallery {
  position: relative;
  max-width: 50rem;
}

.bd-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--mui-border);
}

.bd-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  background: #fafafa;
  display: block;
}

.bd-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--mui-border);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: all 0.2s ease-out;
}

.bd-nav:hover {
  background: var(--mui-primary);
  color: #fff;
}

.bd-nav.prev {
  left: 6px;
}

.bd-nav.next {
  right: 6px;
}

.bd-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80px;
  gap: 8px;
  overflow-x: auto;
  margin-top: 8px;
  padding-bottom: 4px;
}

.bd-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--mui-border);
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.2s, opacity 0.2s;
}

.bd-thumbs img.active {
  outline: 2px solid var(--mui-primary);
  opacity: 1;
}

.bd-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

.bd-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--mui-border);
  border-radius: 10px;
  padding: 8px;
  font-size: 16px;
}

.bd-metric i {
  color: var(--mui-primary);
  min-width: 16px;
  text-align: center;
}

.bd-metric>i {
  font-size: 20px;
  margin-right: 5px;
  margin-left: 4px;
}

.bd-sect {
  margin-top: 8px;
}

.bd-sect h4 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  margin: 0 0 6px 0;
}

.bd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bd-list .it {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--mui-border);
  border-radius: 10px;
  padding: 6px;
  font-size: 12px;
  color: var(--mui-text-sec);
}

.bd-divider {
  height: 1px;
  background: var(--mui-border);
  margin: 8px 0;
}

/* --- Boat Details layout tweaks --- */

/* ทำให้คอลัมน์ซ้าย(แกลเลอรี) + ขวา(เมตริก) ยืดเท่ากันแนวตั้ง */
.bd-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
  align-items: stretch;
  /* เดิมเป็น start → ปรับเป็น stretch */
}

@media (max-width: 1024px) {
  .bd-grid {
    grid-template-columns: 1fr;
  }
}

/* สูงขั้นต่ำของสไลด์ + ยืดความสูง panel ขวาให้ไม่น้อยกว่าสไลด์ */
.bd-carousel {
  min-height: 420px;
}

.bd-info {
  min-height: 420px;
  /* ไม่น้อยกว่าสไลด์ */
  display: flex;
  flex-direction: column;
}

/* กล่องเมตริกในแดง ยังคงกริด 2 คอลัมน์ */
.bd-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0;
}

/* โซนรายละเอียด(กรอบเขียว) เต็มความกว้างใต้สไลด์ — 3 คอลัมน์ */
.bd-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 1200px) {
  .bd-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .bd-sections {
    grid-template-columns: 1fr;
  }
}

/* กล่องแต่ละหมวด (Layout / Main characteristics / …) */
.bd-sect {
  background: #f9f9f9;
  border: 1px solid var(--mui-border);
  border-radius: 10px;
  padding: 8px;
}

.bd-sect:hover {
  box-shadow: var(--shadow-2);
}

.bd-sect h4 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  margin: 0 0 6px 0;
  background: #e4ecff;
  border-radius: 6px;
  padding-left: 5px;
}

/* ลิสต์ภายในแต่ละหมวด ให้เป็น 2 คอลัมน์อ่านง่าย */
.bd-sect .bd-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bd-divider {
  height: 1px;
  background: var(--mui-border);
  margin: 8px 0;
}

.bd-nav {
  margin: 0;
}

p.boat-price {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #6b64f2;
  margin: 0;
  margin-right: auto;
}

.container-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 89vh;
  padding: var(--spacing-unit);
}

img.nav-logo {
  max-width: 8rem;
  position: relative;
  margin: auto;
  display: flex;
  margin-bottom: 10px;
  margin-top: 5px;
}



.loader-container {
  text-align: center;
  color: #635d8f;
  margin-top: 10rem;
}

.map-svg {
  width: 250px;
  height: 150px;
}

/* สไตล์ของเส้นแผนที่พื้นหลัง */
.map-background {
  fill: none;
  stroke: #cddaea;
  stroke-width: 2;
}

/* เส้นประที่วิ่งไป */
.map-path {
  fill: none;
  stroke: #0077b6;
  /* สีน้ำเงินสดใส */
  stroke-width: 3;
  stroke-dasharray: 5 5;
  /* ทำให้เป็นเส้นประ */
  /* ค่า stroke-dashoffset เท่ากับความยาวเส้นทั้งหมด เพื่อซ่อนเส้นในตอนแรก */
  stroke-dashoffset: 450;
  animation: draw-path 3s linear infinite;
  filter: drop-shadow(0 0 3px rgba(0, 119, 182, 0.7));
  /* เพิ่มเงาเรืองแสง */
}

@keyframes draw-path {
  to {
    /* วาดเส้นจนสุดโดยการลด dash-offset เป็น 0 */
    stroke-dashoffset: 0;
  }
}

.loading-text {
  margin-top: 10px;
  font-size: 16px;
  letter-spacing: 1px;
}

.booking-wrap {
  padding: 12px 6px;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 6px 12px;
}

.booking-header h3 {
  margin: 0;
  font: 600 18px/1.2 ui-sans-serif, system-ui;
  color: #1f2937;
}

.booking-sub {
  color: #6b7280;
  font-size: 12px
}

.booking-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.booking-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 14px;
}

.bk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.bk-id {
  font-weight: 700;
  color: #111827;
}

.bk-badge {
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: 12px;
}

.bk-title {
  font-weight: 600;
  color: #111827;
  margin: 4px 0 8px
}

.bk-info {
  display: grid;
  gap: 6px;
}

.bk-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #374151;
  font-size: 13px
}

.bk-row i {
  width: 16px;
  text-align: center;
  color: #6b7280
}

.search-boat-container .param-section .page-title {
  margin: auto;
}


/* ภายในโมดัลเท่านั้น */
.br-dialog .br-content {
  overflow: auto;
  height: 100%;
  padding-left: 10px
}

.br-dialog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.br-dialog .br-slider .slider {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
}

.br-dialog .br-slider .slider img {
  width: 100%;
  height: auto;
}

.br-dialog iframe.responsive-iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  display: block;
}

.br-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.br-header .br-title {
  font-size: 20px;
  font-weight: 700;
}

.br-header .br-headimg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.br-boat-card {
  padding: 12px;
  border-radius: 12px;
  background: #fafafa;
  margin-bottom: 12px;
}

.br-boat-card .row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.br-boat-card .row.muted {
  color: #666;
  font-size: 12px;
}

.section-title {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.video-wrap {
  margin-bottom: 8px;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.crew-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.crew-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 8px;
}

.crew-card .crew-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.crew-card .crew-role {
  color: #666;
  margin-bottom: 6px;
  font-size: 12px;
}

.menu-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.menu-cat {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.menu-cat h3 {
  margin: 0 0 8px;
}

.menu-imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin: 6px 0 10px;
}

.menu-imgs img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.menu-details {
  line-height: 1.6;
}

.amen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.amen-col {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.amen-col h4 {
  margin: 0 0 8px;
}

.amen-col ul {
  margin: 0;
  padding-left: 18px;
}

.br-boat-card {
  background: #fbfbfd;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px 0 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.br-boat-card .boat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.br-boat-card .boat-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #111;
}

.br-boat-card .boat-meta {
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 600;
}

.br-boat-card .boat-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 14px;
  padding-top: 12px;
}

.br-boat-card .spec {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 56px;
}

.br-boat-card .spec .k {
  color: #667085;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.br-boat-card .spec .v {
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.br-dialog .br-content-wrap {
  padding: 6px 8px 16px;
}

/* Connection Status Dots for Chat FAB */
.status-dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  z-index: 2;
  pointer-events: none;
}

.status-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #9ca3af;
  /* Gray (disabled) */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#chat-fab.online .status-dots .dot {
  background-color: #10b981;
  /* Green (online) */
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
  animation: dot-blink 1.5s infinite ease-in-out;
}

#chat-fab.online .status-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

#chat-fab.online .status-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}