/* CSS Variables */
:root {
  --parchment: #f5f4f4;
}

/* Background Classes */
.bg-parchment {
  background-color: var(--parchment);
}

/* Hide navbar links initially to prevent flash of incorrect text */
/* Only apply to site layout pages, not dashboard pages */
#site-layout .navbar-right-contents,
#site-layout .navbar-right-contents * {
    opacity: 0 !important;
    visibility: hidden !important;
}
/* Show once links are updated */
body.navbar-links-ready #site-layout .navbar-right-contents,
body.navbar-links-ready #site-layout .navbar-right-contents * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Dashboard Styles */

/* Status Badge Fade Animation */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.badge .fade-out {
  animation: fadeOut 0.2s ease-in-out forwards;
  display: inline-block;
}

.badge .fade-in {
  animation: fadeIn 0.2s ease-in-out forwards;
  display: inline-block;
}

.overlapping-avatars {
  margin-top: 0 !important;
}

.website-info-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 48px;
}

.website-header {
  margin-bottom: 48px;
}

/* Website Detail Page - Smaller Website Item */
.website-detail .website-item-wrapper {
  max-width: 555px;
}

.website-detail .website-preview {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  box-shadow: none;
}

.website-detail .website-iframe {
  width: 1200px;
  height: 1000px;
  transform: translateX(-50%) scale(0.22);
}

/* Messenger Layout - Three Column Design */
.messenger-layout {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  height: 100%;
  gap: 24px;
  overflow: visible;
}

/* Mobile Responsive - Stack columns vertically */
@media (max-width: 991px) {
  .messenger-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  
  .widget.message.inside-feature-box {
    width: 100% !important;
    max-width: 100% !important;
  }
}

.messenger-sidebar-left {
  padding: 18px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.messenger-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}


.right-sidebar-content {
  height: 100%;
}

.right-sidebar-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

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

/* Bridge Chat - Website Detail Page Full Interface */
.website-detail .live-chat-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.website-detail #bridge-chat {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  border: none;
  border-radius: 0;
  overflow: hidden;
}

/* Bridge Chat Body - Match Embedded Chat Exactly */
.website-detail .bridge-chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: background-color 0.3s ease;
  border-radius: 12px;
}

.website-detail .bridge-chat-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 300px; /* Ensure minimum height */
  background: #ffffff;
  border-radius: 12px;
}

/* Removed tab content styles since chat messages are always visible */

.website-detail .bridge-chat-messages {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 84px;
  overflow-y: auto;
  padding: 16px;
  scroll-behavior: smooth;
  min-height: 200px;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Loading animation for messages */
@keyframes messageLoadingPulse {
  0% {
    background-color: #faf9f9;
  }
  50% {
    background-color: #ffffff;
  }
  100% {
    background-color: #faf9f9;
  }
}

.website-detail .bridge-chat-container.loading {
  animation: messageLoadingPulse 1.5s ease-in-out infinite;
}

/* Bridge Chat Header Styling */
#bridge-chat .bridge-chat-header {
  background: #e5ebff;
  padding: 16px 16px 0;
  border-radius: 12px 12px 0 0;
}

#bridge-chat .bridge-chat-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

#bridge-chat .bridge-chat-title {
  font-size: 23px;
  font-weight: 600;
  color: #222;
  margin: 0;
}

/* Online Indicator */
.online-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.online-indicator.online {
  background-color: #80cb87;
}

.online-indicator.offline {
  display: none;
}

.website-detail .bridge-chat-message {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.website-detail .bridge-chat-message-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #222c;
  position: relative;
}

.website-detail .bridge-chat-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.website-detail .bridge-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: #9a9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  overflow: visible;
  position: relative;
}

.website-detail .bridge-chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.website-detail .bridge-chat-sender-name {
  font-weight: 600;
  color: #222222;
}

.website-detail .bridge-chat-message-time {
  font-size: 14px;
  color: #222222cc;
  margin-left: -4px;
  font-variation-settings: "wght" 450;
}

.website-detail .bridge-chat-message-text {
  color: #222c;
  font-size: 14px;
  line-height: 1.35em;
  font-weight: 450;
  letter-spacing: -.005em;
  padding: 8px 0px;
}

.website-detail .bridge-chat-message-text a {
  text-decoration: underline;
  font-variation-settings: "wght" 450;
  color: #222c;
}

.website-detail .link-title {
  font-size: 14px;
  font-variation-settings: "wght" 450;
  color: #222c;
}

.website-detail .link-description {
  font-size: 14px;
  font-variation-settings: "wght" 450;
  color: #22222285;
}

.website-detail .bridge-chat-input-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 8px;
  padding: 16px;
}

.website-detail .bridge-chat-input-wrapper {
  padding: 16px;
  box-sizing: border-box;
  border: 1px solid #eeeeee;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex: 1;
  min-width: 0;
}

.website-detail .bridge-chat-input-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.website-detail #bridge-chat-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-size: 14px;
  outline: none;
}

.website-detail .file-message:hover .media-download-btn {
  display: flex !important;
}

#bridge-chat-widget .file-message:hover .media-download-btn {
  display: flex !important;
}

.website-detail #bridge-chat-attach, .website-detail #bridge-chat-audio {
  padding: 6px;
  border-radius: 7px;
  background: #f5f4f4;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 35px;
  min-width: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.website-detail #bridge-chat-attach img, .website-detail #bridge-chat-audio img, .website-detail #bridge-chat-send img {
  width: 16px;
  height: 16px;
}

.website-detail #bridge-chat-send {
  background: #222;
  padding: 6px;
  border-radius: 7px;
  width: 35px;
  height: 35px;
  min-width: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.website-detail #bridge-chat-send:disabled {
  background: #22222214;
  cursor: not-allowed;
  opacity: 0.35;
}

.website-detail #bridge-chat-send img {
  filter: invert(1);
}

/* Bridge Chat Tabs Layout */
.website-detail .bridge-chat-tabs {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Right Sidebar Dropdowns */
.right-sidebar-dropdowns .bridge-chat-files-dropdown,
.right-sidebar-dropdowns .bridge-chat-settings-dropdown {
  position: relative;
}

.right-sidebar-dropdowns .bridge-chat-tab {
  position: relative;
  background: none;
  border: 1px solid #e5e7eb;
  padding: 8px 12px;
  font-size: 14px;
  color: #222;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.right-sidebar-dropdowns .bridge-chat-tab:hover {
  background: #f8f9fa;
  border-color: #d1d5db;
}

.right-sidebar-dropdowns .bridge-chat-tab.active {
  background: #3245ff;
  color: white;
  border-color: #3245ff;
}


/* Removed empty state styles since we no longer show empty state message */

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Form Help Text */
.form-help {
  font-size: 12px;
  color: #222222;
  margin-top: 4px;
}


.button.danger {
  background-color: #dc2626;
  color: white;
  border: 1px solid #dc2626;
}

/* Form Actions Styling */
.form-actions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.form-buttons-group {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
}

/* Overlapping Avatar Styles */
.overlapping-avatar {
  width: 56px;
  height: 56px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: #374151;
  background-color: #f3f4f6;
  position: relative;
}

.overlapping-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* Avatar placeholder centering */
.overlapping-avatar img[src="/app/avatar-placeholder.png"] {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: auto !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

/* Code Dropdown Styles */
.code-dropdown .dropdown-wrapper {
  top: initial;
  right: 0;
}

.code-dropdown .dropdown-wide-column {
  padding: 14px;
}

.code-dropdown {
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.code-dropdown.show {
  opacity: 1;
}

.copy-success-checkmark {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in, fadeOut 0.3s ease-out 1.2s forwards;
  opacity: 1;
  height: 1.2em;
}

.copy-text {
  display: flex;
  align-items: center;
  height: 1.2em;
}

.small-text.muted.code-identifier {
  opacity: 1;
}

.small-text.muted.code-identifier > div:not(.code-dropdown) {
  opacity: .7;
}

/* Color Options Styling */
.color-options {
  display: flex;
  gap: 0;
  margin-top: 8px;
  width: 100%;
  height: 25px;
  padding-left: 20px;
  overflow: visible;
  position: relative;
}

.color-option {
  flex: 1;
  height: 25px !important;
  border-radius: 12.5px !important;
  border: none !important;
  cursor: pointer;
  position: relative !important;
  margin-left: -20px !important;
  z-index: 1;
  min-width: 0;
}

.color-option:first-child {
  margin-left: -20px;
  z-index: 7;
}

.color-option:nth-child(2) {
  z-index: 6;
}

.color-option:nth-child(3) {
  z-index: 5;
}

.color-option:nth-child(4) {
  z-index: 4;
}

.color-option:nth-child(5) {
  z-index: 3;
}

.color-option:nth-child(6) {
  z-index: 2;
}

.color-option:nth-child(7) {
  z-index: 1;
}

.color-option.selected {
  /* No transform effect */
}

.messenger-main.user-account-section {
  border-radius: 12px;
}

.right-sidebar-dropdowns {
  border: none;
  margin: 0;
  padding: 0;
}

.messenger-sidebar-right {
  padding: 0;
  overflow: visible;
}

.messenger-sidebar-left {
  padding: 0;
  gap: 24px;
}

.website-detail .widget.profile {
  width: auto;
}

#bridge-chat .bridge-chat-header {
  padding: 24px;
}

#bridge-chat .bridge-chat-header-container {
  margin-bottom: 0;
}

#root .section {
  padding-top: 48px;
  padding-bottom: 48px;
}



.button.danger:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
}

/* Mobile Navbar Styles */
.w-nav-button:focus {
  outline: 0;
}

.menu-button-horizontal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}





/* Active states - using Webflow's w--open class */

.menu-button.w-nav-button.w--open .menu-button-cross {
  opacity: 1;
}

/* Alternative: using aria-expanded for React state */

.menu-button.w-nav-button[aria-expanded="true"] .menu-button-cross {
  opacity: 1;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #333;
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-logo img {
  height: 32px;
  width: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #222222;
}

.mobile-menu-close:hover {
  color: #374151;
}

.mobile-nav-links {
  flex: 1;
  padding: 24px 0;
}

.mobile-nav-link {
  display: block;
  padding: 16px 24px;
  color: #374151;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.mobile-nav-link:hover {
  background-color: #f9fafb;
}

.mobile-nav-link.active {
  background-color: #f0f9ff;
  color: #1d4ed8;
  border-left: 4px solid #1d4ed8;
}

.mobile-menu-footer {
  padding: 24px;
  border-top: 1px solid #e5e7eb;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.mobile-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-user-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1d4ed8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

.mobile-user-details {
  flex: 1;
}

.mobile-user-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.mobile-user-email {
  font-size: 14px;
  color: #222222;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu-action {
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  color: #374151;
}

.mobile-menu-action:hover {
  background-color: #f3f4f6;
}

.mobile-signout {
  color: #dc2626;
}

.mobile-signout:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Canny Mobile Menu Overlay Styles */
.w-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 1000;
}

.w-nav-overlay-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  animation: slideInRight 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

.w-nav-overlay-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.w-nav-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.w-nav-overlay-nav {
  flex: 1;
  padding: 24px 0;
}

.w-nav-link--overlay {
  display: block;
  padding: 16px 24px;
  color: #374151;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.w-nav-link--overlay:hover {
  background-color: #f9fafb;
}

.w-nav-link--overlay.w--current {
  background-color: #f0f9ff;
  color: #1d4ed8;
  border-left: 4px solid #1d4ed8;
}

.w-nav-overlay-footer {
  padding: 24px;
  border-top: 1px solid #e5e7eb;
}

.w-nav-overlay-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.w-nav-overlay-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.w-nav-overlay-user-initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1d4ed8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

.w-nav-overlay-user-details {
  flex: 1;
}

.w-nav-overlay-user-name {
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.w-nav-overlay-user-email {
  font-size: 14px;
  color: #222222;
}

.w-nav-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.w-nav-overlay-action {
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  color: #374151;
}

.w-nav-overlay-action:hover {
  background-color: #f3f4f6;
}

.w-nav-overlay-signout {
  color: #dc2626;
}

.w-nav-overlay-signout:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Navbar Right Contents */
.navbar-right-contents {
  gap: 20px;
}

/* Responsive Design */

@media (max-width: 991px) {
  .nav-menu-wrapper {
    display: none;
  }
  
  .menu-button.w-nav-button {
    display: block;
  }
  
  .mobile-menu-button {
    display: block;
  }
  
  .notifications-dropdown {
    width: 280px !important;
    right: -20px !important;
  }
  
  .user-dropdown {
    right: -20px !important;
  }
}

@media (max-width: 767px) {
  .mobile-menu-content {
    width: 100%;
  }
  
  .notifications-dropdown {
    width: calc(100vw - 32px) !important;
    right: 0 !important;
    left: auto !important;
    margin-right: 0 !important;
  }
  
  .user-dropdown {
    right: 0 !important;
    margin-right: 0 !important;
  }
}

/* Welcome Title */
#welcome-title {
    margin-bottom: 0.5rem;
}

/* Notifications */
.notifications-container {
    position: relative;
    margin-right: 1rem;
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #10b981;
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 14px;
    color: #222222;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #222222;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Audio Message Styles */
.audio-message {
    margin: 8px 0;
}

.audio-message audio {
    width: 100%;
    max-width: 250px;
    height: 40px;
    border-radius: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.audio-message audio::-webkit-media-controls-panel {
    background-color: #f8f9fa;
    border-radius: 20px;
}

.audio-message audio::-webkit-media-controls-play-button {
    background-color: #007bff;
    border-radius: 50%;
}

.notifications-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #222222;
    transition: all 0.2s ease;
}

.notifications-toggle:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background-color: #ff452d;
    color: white;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-menu {
    position: relative;
}

.notifications-dropdown {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 3px 24px #0000001f;
    min-width: 300px;
    padding: 12px;
    opacity: 0 !important;
    transform: translate3d(0px, 0px, 0px) scale3d(0.97, 0.97, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
    transform-style: preserve-3d !important;
    transition: opacity 300ms ease, transform 300ms ease !important;
    pointer-events: none !important;
    z-index: 1001;
    margin-top: 48px;
    margin-right: 18px;
}

.notifications-dropdown::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    height: 18px;
    background: transparent;
}

.notifications-dropdown.show,
.notifications-dropdown.w--open {
    opacity: 1 !important;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
    pointer-events: auto !important;
}

.notifications-dropdown > div {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.notifications-dropdown > div::-webkit-scrollbar {
    width: 6px;
}

.notifications-dropdown > div::-webkit-scrollbar-track {
    background: #f9fafb;
}

.notifications-dropdown > div::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.notifications-dropdown > div::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.mark-all-read {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.mark-all-read:hover {
    background-color: #eff6ff;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: #f9fafb;
}

.notification-item.unread {
    background-color: #eff6ff;
    border-left: 3px solid #3b82f6;
}

.notification-item.loading {
    text-align: center;
    color: #222222;
    font-style: italic;
}

.notification-content {
    font-size: 0.875rem;
    line-height: 1.5;
}

.notification-time {
    font-size: 0.75rem;
    color: #222222;
    margin-top: 0.25rem;
}

/* Website Grid */
.website-item-wrapper {
    position: relative;
    border-radius: 12px;
    min-width: 0;
    overflow: hidden;
}

.website-item-wrapper:hover button.drag-handle {
    opacity: 1;
}

button.drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    border: 1px solid #2f2c251f;
    background-color: #fefaf399;
    box-shadow: 0 4px 18px #0000001f;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    padding: 10px;
    cursor: grab;
    opacity: 0;
    transition: opacity .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
    z-index: 10;
    display: flex;
    color: #1a1a1a;
    width: 50px;
    height: 50px;
}

button.drag-handle:hover {
    background-color: #fefaf3cc;
    color: #333;
    transform: scale(1.05);
}

button.drag-handle:active {
    cursor: grabbing;
}

button.drag-handle svg {
    width: 20px;
    height: 20px;
}

/* SortableJS - standard implementation */

.website-item {
    border-radius: 12px;
    padding: 0;
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    overflow: visible;
}

.websites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
}

@media (max-width: 1024px) {
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .websites-grid {
        grid-template-columns: 1fr;
    }
}

.website-preview {
    position: relative;
    margin: 0;
    /* 4:3 aspect ratio - height is 75% of width */
    aspect-ratio: 4 / 3;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #f8f9fa;
    width: 100%;
    box-shadow: 0 0 2px #0000000f;
}

.website-iframe {
    width: 1920px;
    height: 1440px;
    border: none;
    border-radius: 8px;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 50%;
    transform-origin: top center;
    /* Scale down to fit 4:3 container - 1920:1440 = 4:3 ratio */
    transform: translateX(-50%) scale(0.24);
}

@media (min-width: 550px) and (max-width: 768px) {
    .website-iframe {
        transform: translateX(-50%) scale(0.35);
    }
}

.website-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    padding: 1rem 1.5rem 1.5rem;
    background: #fff;
    border-radius: 0 0 12px 12px;
}

.website-domain {
    margin: 0;
    margin-top: -.4rem;
    font-size: 17px;
    color: #252525;
    opacity: .5;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.website-preview-image[src*="website-placeholder.png"] {
    opacity: 0.1 !important;
}

.status-toggle {
    position: relative;
    width: 28px;
    height: 16px;
    border: none;
    border-radius: 8px;
    background: #e5e5e5;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.status-toggle:hover {
    background: #c5c5c5;
}

.status-toggle.online {
    background: #80cb87;
}

.status-toggle.online:hover {
    background: #6bb373;
}


.toggle-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-toggle.online .toggle-dot {
    transform: translateX(12px);
}


.website-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .5rem;
    gap: 1rem;
}

.website-title {
    margin: 0;
    font-size: 1.2rem;
    color: #252525;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}


/* User Profile */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.user-plan {
    font-size: 0.75rem;
    color: #222222;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.2s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-toggle:hover {
    background: #f3f4f6;
}

.user-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-profile-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f4f4;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50%;
}

.user-menu:hover .user-dropdown {
    opacity: 1 !important;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
    pointer-events: auto !important;
}

.user-dropdown:hover {
    opacity: 1 !important;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
    pointer-events: auto !important;
}

.user-dropdown {
    position: absolute;
    top: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 3px 24px #0000001f;
    min-width: 200px;
    padding: 12px;
    opacity: 0 !important;
    transform: translate3d(0px, 0px, 0px) scale3d(0.97, 0.97, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
    transform-style: preserve-3d !important;
    transition: opacity 300ms ease, transform 300ms ease !important;
    pointer-events: none !important;
    z-index: 1001;
    margin-top: 48px;
    margin-right: 18px;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    height: 18px;
    background: transparent;
}

.user-dropdown.show,
.user-dropdown.w--open {
    opacity: 1 !important;
    transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
    pointer-events: auto !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    transition: opacity .2s;
}

.dropdown-item:hover {
    opacity: 0.5;
}

.dropdown-item svg {
    color: #222222;
}

/* Title Section */
.title-section-wrapper {
    max-width: none !important;
}

.title-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 1px solid #7073931a;
    padding-bottom: 2rem;
}

.title-section > div:first-child {
    text-align: left;
}

.title-section > button:last-child {
    margin-left: auto;
}

/* Page Layout */

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #222222;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
}

.modal-content form {
    padding: 0 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.plan-info {
    margin: 0 0 1rem 0;
    font-size: 0.875rem;
    color: #222222;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-buttons button {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* Profile Photo Styles */
.profile-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #f5f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 600;
    color: #9ca3af;
}

.profile-photo-container {
    position: relative;
    display: inline-block;
}

button.profile-photo-edit-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border: 1px solid #2222221a;
    background-color: white;
    box-shadow: 0 1px 4px #00000017;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.profile-photo-edit-icon:hover {
    background-color: #222222;
}

button.profile-photo-edit-icon:hover svg {
    color: #ffffff;
}

button.profile-photo-edit-icon svg {
    width: 16px;
    height: 16px;
    color: #222222;
}

.profile-photo-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 500;
}


/* Photo Preview Modal */
.photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all, opacity 300ms;
    opacity: 1;
}


.photo-modal-content {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 300ms ease-out;
}

@media (max-width: 768px) {
    .photo-modal-content {
        max-width: 400px;
        padding: 1rem;
    }
}

.photo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.photo-modal-header h3 {
    margin: 0;
}

.photo-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-close:hover {
    color: #000;
}

.photo-modal-preview {
    margin-bottom: 1.5rem;
    text-align: center;
}

.photo-modal-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    object-fit: contain;
}

.photo-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    align-items: center;
}

/* Photo Editor Styles */
.photo-editor-layout {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .photo-editor-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.photo-editor-section {
    flex: 1;
    padding-bottom: 18px;
}

.photo-controls-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.photo-editor-canvas-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    background-color: #f5f4f4;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-editor-canvas-container img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 500px) {
    .photo-editor-canvas-container {
        width: 200px;
        height: 200px;
    }
}

.photo-editor-canvas {
    max-width: 100%;
    max-height: 100%;
    image-rendering: auto;
}

.photo-editor-move-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.photo-editor-move-hint.hidden {
    opacity: 0;
}

.photo-editor-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.photo-editor-control-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    color: #4b5563;
}

.photo-editor-control-btn:hover {
    background-color: #e5e7eb;
}

.photo-editor-control-btn svg {
    width: 14px;
    height: 14px;
}

.photo-editor-control-btn span {
    font-size: 14px;
    font-weight: 500;
}


.photo-editor-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 8px;
}

.photo-editor-info p {
    font-size: 14px;
    color: #222222;
    margin: 0;
}

.photo-editor-info strong {
    color: #1f2937;
}

/* Optional Label Styles */
.selectable-label.optional-label {
    margin-left: 0;
}

/* Mobile logo styling */
.mobile-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.mobile-logo img {
  height: 30px;
  width: auto;
}

/* Hide mobile menu overlay on desktop */
@media (min-width: 992px) {
  .w-nav-overlay {
    display: none !important;
    visibility: hidden !important;
  }
  
  .nav-menu-close {
    display: none !important;
  }
}

/* Ensure mobile menu overlay can be displayed on mobile */
@media (max-width: 991px) {
  .w-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1000 !important;
    background-color: #ffffff !important;
    overflow-y: auto !important;
    width: 100% !important;
    height: 100vh !important;
  }
  
  /* Override any conflicting display rules when overlay is shown */
  #w-nav-overlay-0 {
    position: fixed !important;
    z-index: 1000 !important;
  }
  
  /* Ensure overlay is visible when opened */
  .w-nav-overlay.w--open,
  #w-nav-overlay-0.w--open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Photo Modal Transition Styles */
.photo-modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #00000080;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease-in-out, visibility 300ms ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-wrapper.show {
  opacity: 1;
  visibility: visible;
}

.photo-modal-container {
  transition: none;
}

.w-commerce-commercecartcontainerwrapper--cartType-modal {
  background-color: transparent !important;
}

/* Screenshot Modal - Wider Container */
.screenshot-modal-container {
  max-width: 1200px !important;
  width: 60% !important;
}

/* Dropdown Slide Transitions */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-in-out;
}

.dropdown-content.show {
  max-height: 1000px; /* Adjust based on content */
}

/* Override any widget-justified styles for settings-content */
#settings-content.widget-justified {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Websites Dropdown Styles */
.nav-dropdown .dropdown-menu {
  animation: fadeInDown 200ms ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

.nav-dropdown .dropdown-item:hover {
  background-color: #f9fafb;
}

/* Websites Dropdown Animation */
.dropdown.w-dropdown-list.websites-dropdown {
  opacity: 0 !important;
  transform: translate3d(0px, 0px, 0px) scale3d(0.97, 0.97, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
  transform-style: preserve-3d !important;
  transition: opacity 300ms ease, transform 300ms ease !important;
  pointer-events: none !important;
}

.dropdown.w-dropdown-list.websites-dropdown.w--open {
  opacity: 1 !important;
  transform: translate3d(0px, 0px, 0px) scale3d(1, 1, 1) rotateX(0deg) rotateY(0deg) rotateZ(0deg) skew(0deg, 0deg) !important;
  pointer-events: auto !important;
}

.w-dropdown-list {
  background: none !important;
}

/* Global loading screen styles */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #222222;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Files & Links list styling */
.website-detail .bridge-chat-files-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Files & Links thumb styling */
.website-detail .bridge-chat-files-thumb-link {
  background: #f5f4f4;
}

/* Files & Links item action styling */
.website-detail .bridge-chat-files-item-action {
  flex-shrink: 0;
}

.website-detail .bridge-chat-files-item-action .bridge-chat-file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 9px;
  background: transparent;
  border: 1px solid #22222214;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-variation-settings: "wght" 400;
  color: #222c;
  white-space: nowrap;
}

.website-detail .bridge-chat-file-download svg,
.website-detail .bridge-chat-file-download img {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}

/* Files & Links item styling */
.website-detail .bridge-chat-files-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: none;
  min-width: 0;
  overflow: hidden;
}

.website-detail .bridge-chat-files-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}

.website-detail .bridge-chat-files-thumb:hover .bridge-chat-files-delete-overlay {
  opacity: 1;
}

.website-detail .bridge-chat-files-delete-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.website-detail .bridge-chat-files-delete-icon {
  color: white;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.website-detail .bridge-chat-files-item-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.website-detail .bridge-chat-files-item-name {
  font-weight: 400;
  color: #222c;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.website-detail .bridge-chat-files-item-meta {
  display: none;
}

.website-detail #files-list {
  gap: 18px;
}

/* Message styling */
.website-detail .bridge-chat-message {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: transparent;
  transition: background-color 300ms ease;
}

.website-detail .bridge-chat-message.unread-message.unread-highlight {
  background-color: #f5f4f4;
  border-radius: 4px;
}

.website-detail .bridge-chat-message-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #222c;
  position: relative;
}

.website-detail .bridge-chat-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.website-detail .bridge-chat-message-time {
  font-size: 14px;
  color: #222222cc;
  margin-left: -4px;
  font-variation-settings: "wght" 450;
}

.website-detail .bridge-chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: transparent;
  color: #9a9a9a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-variation-settings: "wght" 600;
  overflow: visible;
  position: relative;
}

.website-detail .bridge-chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.website-detail .online-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.website-detail .online-indicator.online {
  background-color: #80cb87;
}

.website-detail .online-indicator.offline {
  display: none;
}

.website-detail .bridge-chat-sender-name {
  font-variation-settings: "wght" 600;
  color: #222222;
}

.website-detail .bridge-chat-message-text {
  color: #222c;
  font-size: 14px;
  line-height: 1.35em;
  font-weight: 450;
  letter-spacing: -.005em;
  padding: 8px 0px;
}

.website-detail .bridge-chat-message-text a {
  text-decoration: underline;
  font-variation-settings: "wght" 450;
  color: #222c;
}

.website-detail .link-title {
  font-size: 14px;
  font-variation-settings: "wght" 450;
  color: #222c;
}

.website-detail .link-description {
  font-size: 14px;
  font-variation-settings: "wght" 450;
  color: #22222285;
}

.website-detail .bridge-chat-message-text img,
.website-detail .bridge-chat-message-text video,
.website-detail .bridge-chat-message-text iframe {
  max-width: 100%;
  height: auto;
  max-height: 260px;
  display: block;
}

.website-detail .bridge-chat-image-message img {
  max-width: 100%;
  height: auto;
  max-height: 260px;
  border-radius: 8px;
  display: block;
}

.website-detail .bridge-chat-audio-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 12px;
  margin: 4px 0;
}

.website-detail .bridge-chat-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 20px;
  flex: 1;
}

.website-detail .bridge-chat-wave-bar {
  width: 3px;
  background: #222222;
  border-radius: 1.5px;
  animation: wave 1.5s ease-in-out infinite;
  opacity: 0.3;
}

@keyframes wave {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.website-detail .bridge-chat-files {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.website-detail .bridge-chat-files-count {
  font-size: 12px;
  color: #666;
}

.website-detail .bridge-chat-files-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.website-detail .bridge-chat-files-empty-icon {
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: 50%;
  margin: 0 auto 16px;
}

.website-detail .bridge-chat-files-empty-text {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.website-detail .bridge-chat-files-empty-subtext {
  font-size: 14px;
  color: #999;
}

.website-detail .file-message:hover .media-download-btn {
  display: flex !important;
}

/* Input and form styling */
.website-detail .bridge-chat-input-wrapper {
  padding: 8px;
  box-sizing: border-box;
  border: 1px solid #eeeeee;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.website-detail .bridge-chat-sender-selector {
  position: relative;
  display: flex;
  align-items: center;
}

.website-detail .bridge-chat-sender-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  overflow: hidden;
}

.website-detail .bridge-chat-sender-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.website-detail .bridge-chat-sender-avatar:hover {
  transform: scale(1.05);
}

.website-detail .bridge-chat-sender-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: white;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  min-width: 150px;
}

.website-detail .bridge-chat-sender-dropdown.show {
  display: block;
}

.website-detail .bridge-chat-sender-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.website-detail .bridge-chat-sender-option:hover {
  background-color: rgba(244, 243, 241, 0.5);
}

.website-detail .bridge-chat-sender-option.selected {
  background-color: #f5f4f4;
}

.website-detail .bridge-chat-sender-option-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.website-detail .bridge-chat-sender-option-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.website-detail .bridge-chat-sender-option-name {
  font-size: 14px;
  color: #222;
}

.website-detail #bridge-chat-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  font-size: 14px;
  outline: none;
}

.website-detail #bridge-chat-attach,
.website-detail #bridge-chat-audio {
  padding: 6px;
  border-radius: 7px;
  background: #f5f4f4;
  border: none;
  cursor: pointer;
  width: 35px;
  height: 35px;
  min-width: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.website-detail #bridge-chat-attach img,
.website-detail #bridge-chat-audio img,
.website-detail #bridge-chat-send img {
  width: 16px;
  height: 16px;
}

.website-detail #bridge-chat-send {
  background: #222;
  padding: 6px;
  border-radius: 7px;
  width: 35px;
  height: 35px;
  min-width: 35px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.website-detail #bridge-chat-send:disabled {
  background: #22222214;
  cursor: not-allowed;
  opacity: 0.35;
}

.website-detail #bridge-chat-send img {
  filter: invert(1);
}

/* Button styling */
.website-detail .button,
.website-detail .w-button {
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  border: 1px solid #2222221a;
  background-color: #222222;
  color: #fff;
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "wght" 600;
  text-align: center;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  transition: border-color .2s, background-color .2s, filter .2s;
  display: flex;
  cursor: pointer;
}

.website-detail .button.invert {
  border-color: #222222;
  filter: invert();
  background-color: #000;
}

.website-detail .button.small {
  grid-column-gap: 18px;
  grid-row-gap: 18px;
  padding: 8px 12px;
}

.website-detail .button.invert:hover {
  border-color: #222222;
  background-color: #222222;
  filter: invert(0%);
}

.website-detail .button:hover {
  border-color: #222222;
  filter: invert();
  background-color: #000;
}

.website-detail .button.small.w-button {
  flex: 1;
}

.website-detail .bridge-chat-cancel-btn {
  flex: 1;
  padding: 10px 16px;
  background: #f8f9fa;
  color: #222;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* Form styling */
.website-detail .bridge-chat-form-group {
  margin-bottom: 16px;
}

.website-detail .bridge-chat-form-group label:not(.button) {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #222;
  margin-bottom: 6px;
}

.website-detail .bridge-chat-form-group input[type="text"],
.website-detail .bridge-chat-form-group input[type="email"] {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dddddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.website-detail .bridge-chat-photo-preview {
  margin-bottom: 12px;
}

.website-detail .bridge-chat-photo-preview img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
}

.website-detail .bridge-chat-photo-preview img[src*="avatar-placeholder"] {
  width: 30px;
  height: 30px;
  background-color: #f5f4f4;
  padding: 10px;
}

.website-detail .bridge-chat-toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.website-detail .status-toggle:hover {
  background: #c5c5c5 !important;
}

.website-detail .status-toggle.online:hover {
  background: #6bb373 !important;
}

.website-detail .bridge-chat-toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: #dddddd;
  border-radius: 12px;
  transition: background-color 0.2s;
}

.website-detail .bridge-chat-toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.website-detail .bridge-chat-toggle-label input:checked + .bridge-chat-toggle-slider {
  background: #3245ff;
}

.website-detail .bridge-chat-toggle-label input:checked + .bridge-chat-toggle-slider::before {
  transform: translateX(20px);
}

.website-detail .bridge-chat-toggle-text {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.website-detail .bridge-chat-toggle-description {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.website-detail .bridge-chat-settings-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.website-detail .bridge-chat-settings-section .bridge-h3 {
  font-size: 16px;
  font-variation-settings: "wght" 600;
  color: #222;
  margin: 0 0 16px 0;
}

.website-detail .bridge-chat-settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.website-detail .bridge-chat-settings {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Date separator styling */
.website-detail .bridge-chat-date-separator {
  text-align: center;
  margin: 8px 0;
  padding: 0;
}

.website-detail .bridge-chat-date-separator span {
  display: inline-block;
  font-size: 12px;
  color: rgba(102, 102, 102, 0.5);
  font-weight: 600;
}

/* Widget date separator styling */
#bridge-chat-widget .bridge-chat-date-separator {
  text-align: center;
  margin: 8px 0;
  padding: 0;
}

#bridge-chat-widget .bridge-chat-date-separator span {
  display: inline-block;
  font-size: 12px;
  color: rgba(102, 102, 102, 0.5);
  font-weight: 600;
}
