* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #F5F5F5;
  color: #333;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Ensure chatbot is never hidden by body or container */
body .chatbot-container,
body #chatbotContainer {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  z-index: 10000 !important;
}

.container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

/* Ensure chatbot is not clipped by container */
.container .chatbot-container {
  position: fixed !important;
  z-index: 10000 !important;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: linear-gradient(180deg, #7ccfb5 0%, #1E3A5F 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-image {
  max-width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  cursor: pointer;
}

.logo:hover .logo-image {
  transform: scale(1.15);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Search Container */
.search-container {
  position: relative;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input {
  width: 100%;
  padding: 10px 35px 10px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  outline: none;
  transition: all 0.3s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.search-icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

/* Customer List */
.customer-list {
  flex: 1;
  padding: 10px 20px;
  overflow-y: auto;
}

.customer-item {
  padding: 12px;
  margin: 5px 0;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  border-left: 3px solid transparent;
}

.customer-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left-color: #4A90E2;
}

.customer-item.hidden {
  display: none;
}

/* Sidebar Customer List Styles */
.sidebar .customer-list .customer-name {
  font-size: 14px;
  font-weight: bold;
  color: rgba(255, 255, 255, 1);
}

/* Navigation Menu */
.nav-menu {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 10px;
}

.nav-title {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.5px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.2s;
  gap: 12px;
  position: relative;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item.active {
  background-color: #4A90E2;
  color: white;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: white;
}

.nav-icon {
  flex-shrink: 0;
  color: currentColor;
}

.nav-item span {
  flex: 1;
  font-size: 14px;
}

.nav-arrow {
  flex-shrink: 0;
  color: currentColor;
  transform: rotate(-90deg);
}

.nav-item.collapsible {
  justify-content: space-between;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: 280px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100% - 280px);
  max-width: calc(100vw - 280px);
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Header */
.header {
  background-color: #F5F5F5;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E0E0E0;
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
  text-decoration: none;
}

/* Core Demo link - always visible */
a.header-item[href*="core"],
.header-item[href*="core"] {
  display: flex !important;
  visibility: visible !important;
}

a.header-item[href*="core"] span,
.header-item[href*="core"] span {
  display: inline !important;
  visibility: visible !important;
}

.header-item:hover {
  background-color: #E0E0E0;
}

/* Dropdown Menu */
.dropdown-container {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  z-index: 1000;
  padding: 8px 0;
}

.dropdown-container:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #333;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background-color: #F3F4F6;
  color: #4A90E2;
}

.dropdown-arrow {
  transition: transform 0.2s;
}

.dropdown-container:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.header-icon-btn:hover {
  background-color: #E0E0E0;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.user-profile:hover {
  background-color: #E0E0E0;
}

.user-profile.active {
  background-color: #E0E0E0;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4A90E2 0%, #10B981 100%);
}

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

.avatar-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}

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

/* Desktop user profile dropdown */
@media (min-width: 769px) {
  .user-profile {
    position: relative;
  }
  
  .user-profile .user-info {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    padding: 12px;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
  }
  
  .user-profile.active .user-info,
  .user-profile:hover .user-info {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

.user-role {
  font-size: 12px;
  color: #666;
  line-height: 1.2;
}

/* Content Area */
.content-area {
  flex: 1;
  padding: 30px;
  background-color: #F5F5F5;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.tab {
  padding: 12px 20px 12px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.tab:hover {
  color: #4A90E2;
}

.tab.active {
  color: #4A90E2;
  border-bottom-color: #4A90E2;
}

.tab-close {
  color: #999;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.tab-close:hover {
  color: #EF4444;
  background-color: rgba(239, 68, 68, 0.1);
}

/* Tab Contents */
.tab-contents {
  position: relative;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Services Cards */
.services-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.service-card {
  background: #e1e0fb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.service-description {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* News Section */
.news-section {
  margin-bottom: 30px;
}

.news-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-card-inline {
  background: white !important;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex !important;
  flex-direction: column;
  height: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.news-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
  flex: 1;
}

.news-item {
  padding-bottom: 16px;
  border-bottom: 1px solid #E0E0E0;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 12px;
  border-radius: 6px;
}

.news-item:hover {
  background-color: #F9FAFB;
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 12px;
}

.news-headline {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-date {
  font-size: 13px;
  color: #666;
  margin: 0;
}

.news-link {
  display: inline-block;
  font-size: 14px;
  color: #4A90E2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.news-link:hover {
  color: #357ABD;
}

/* Combined Cards Section (4 columns) */
.combined-cards-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.combined-cards-section .summary-card,
.combined-cards-section .metric-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.summary-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.card-title-icon {
  flex-shrink: 0;
}

.card-title {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

.info-tooltip-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.info-btn:hover {
  color: #4A90E2;
  background-color: rgba(74, 144, 226, 0.1);
}

.info-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: #333;
  color: white;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  width: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 400;
}

.info-btn::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  border: 6px solid transparent;
  border-top-color: #333;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1001;
}

.info-btn:hover::after,
.info-btn:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.info-btn:hover::before {
  transform: translateX(-50%) translateY(4px);
}

.card-icon {
  color: #4A90E2;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-value {
  font-size: 36px;
  font-weight: 600;
  color: #333;
}

.card-subtitle {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.card-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #4A90E2;
  border-radius: 4px;
  transition: width 0.3s;
}

.progress-fill.green {
  background-color: #10B981;
}

.card-change {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 8px;
}

.card-change.positive {
  color: #10B981;
}

.card-change.negative {
  color: #EF4444;
}

/* Metrics Section */
.metrics-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-header {
  margin-bottom: 20px;
}

.metric-title-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.metric-title-icon {
  flex-shrink: 0;
}

.metric-title {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

.metric-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.metric-value {
  font-size: 28px;
  font-weight: 600;
  color: #333;
}

.metric-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-target {
  font-size: 12px;
  color: #666;
}

/* Bottom Section */
.bottom-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bottom-section .recommended-steps,
.bottom-section .customer-opportunities,
.bottom-section .news-card-inline {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.recommended-steps,
.customer-opportunities {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.recommended-steps .steps-list {
  flex: 1;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  flex: 1;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #F9FAFB;
  border-radius: 8px;
}

.step-item.completed {
  background-color: #F0FDF4;
}

.step-check {
  flex-shrink: 0;
}

.step-item span {
  font-size: 14px;
  color: #333;
}

.step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn.green {
  background-color: #10B981;
  color: white;
}

.action-btn.green:hover {
  background-color: #059669;
}

/* Opportunities Table */
.opportunities-table {
  width: 100%;
  border-collapse: collapse;
}

.opportunities-table thead {
  background-color: #F9FAFB;
}

.opportunities-table th {
  padding: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.opportunities-table td {
  padding: 12px;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #E0E0E0;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background-color: #F3F4F6;
  color: #666;
}

.status-badge.active {
  background-color: #D1FAE5;
  color: #065F46;
}

/* Scrollbar Styling */
.sidebar::-webkit-scrollbar,
.customer-list::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.customer-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb,
.customer-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.customer-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1200px) {
  .services-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .combined-cards-section {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .summary-cards,
  .metrics-section {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bottom-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .combined-cards-section {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bottom-section {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Customer Detail Page */
.customer-detail-page {
  background-color: #F5F5F5;
}

.customer-detail-layout {
  display: flex;
  gap: 20px;
  min-height: calc(100vh - 200px);
}

/* Customer Sidebar */
.customer-sidebar {
  width: 350px;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.profile-section {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid #E0E0E0;
  margin-bottom: 24px;
}

.profile-avatar {
  margin: 0 auto 16px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E5E7EB;
  position: relative;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: white;
  padding: 8px;
  border-radius: 50%;
  display: block;
}

.profile-avatar .avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4A90E2 0%, #10B981 100%);
  color: white;
  font-weight: 600;
  font-size: 24px;
  border-radius: 50%;
}

.profile-avatar svg {
  width: 100%;
  height: 100%;
}

/* Customer Detail Page - Profile Name */
.customer-sidebar .customer-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.customer-company {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.tag {
  padding: 4px 12px;
  background-color: #F3F4F6;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

.info-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E0E0E0;
}

.info-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666;
}

.info-icon {
  color: #4A90E2;
  flex-shrink: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-label {
  color: #666;
}

.info-value {
  font-weight: 500;
  color: #333;
}

.info-value.active {
  color: #10B981;
}

.info-value.inactive {
  color: #EF4444;
}

.activity-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F3F4F6;
}

.activity-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.activity-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F3F4F6;
  border-radius: 6px;
}

.activity-text {
  flex: 1;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.activity-status {
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.activity-status.positive {
  color: #10B981;
  background-color: #D1FAE5;
}

.activity-status.negative {
  color: #EF4444;
  background-color: #FEE2E2;
}

/* Customer Main Content */
.customer-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.customer-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.content-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.content-section-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Insights Section */
.insights-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.insight-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-card {
  background: #EFF6FF;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #4A90E2;
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.insight-number {
  font-size: 14px;
  font-weight: 600;
  color: #4A90E2;
}

.info-given-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #4A90E2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.insight-text {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* Appointment Section */
.appointment-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-widget {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 16px;
}

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

.calendar-month {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.calendar-nav {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.calendar-nav:hover {
  background-color: #E0E0E0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  padding: 8px;
}

.calendar-day {
  text-align: center;
  padding: 12px;
  font-size: 14px;
  color: #333;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.calendar-day:hover {
  background-color: #E0E0E0;
}

.calendar-day.selected {
  background-color: #4A90E2;
  color: white;
}

/* Satisfaction Section */
.satisfaction-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.satisfaction-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-select {
  padding: 12px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background: white;
  cursor: pointer;
}

.form-textarea {
  padding: 12px;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  min-height: 100px;
  resize: vertical;
}

.save-btn {
  padding: 12px 24px;
  background-color: #4A90E2;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.2s;
}

.save-btn:hover {
  background-color: #357ABD;
}

/* Recommendations Section */
.recommendations-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommendations-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recommendation-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 8px;
}

.recommendation-type {
  min-width: 120px;
  font-size: 14px;
  font-weight: 600;
  color: #4A90E2;
}

.recommendation-text {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.recommendation-actions {
  display: flex;
  gap: 8px;
}

.action-btn-check,
.action-btn-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.action-btn-check {
  background-color: #D1FAE5;
}

.action-btn-check:hover {
  background-color: #A7F3D0;
}

.action-btn-close {
  background-color: #FEE2E2;
}

.action-btn-close:hover {
  background-color: #FECACA;
}

/* Filtered Customers Page */
.filtered-customers-header {
  margin-bottom: 30px;
}

.filtered-customers-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.filtered-count {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.filtered-customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.filtered-customer-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}

.filtered-customer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #4A90E2;
}

.filtered-customer-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.filtered-customer-status {
  display: flex;
  align-items: center;
}

.no-customers {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Notifications */
.notifications-container {
  position: fixed;
  top: 80px;
  right: 30px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  width: auto;
  pointer-events: none;
}

.notification-toast {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 320px;
  max-width: 400px;
  width: auto;
  transform: translateX(400px);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  border-left: 4px solid #10B981;
  pointer-events: auto;
  box-sizing: border-box;
}

.notification-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-toast.fade-out {
  transform: translateX(400px);
  opacity: 0;
}

@media (max-width: 768px) {
  .notification-toast.fade-out {
    transform: translateX(calc(100vw + 20px));
  }
}

.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #D1FAE5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10B981;
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.notification-message {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.notification-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

.notification-close:hover {
  background-color: #F3F4F6;
  color: #333;
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-overlay {
    display: block;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .header {
    padding: 10px 12px;
    overflow: hidden;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    position: relative;
  }
  
  .header-left {
    gap: 2px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    max-width: none;
    flex-wrap: nowrap;
  }
  
  .menu-toggle {
    padding: 4px;
    flex-shrink: 0;
    margin-right: 2px;
  }
  
  .menu-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  .header-item {
    font-size: 9px;
    padding: 4px 4px;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .header-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  
  .header-item span {
    display: none;
  }
  
  /* Core Demo link - always visible on mobile */
  a.header-item[href*="core"],
  .header-item[href*="core"] {
    padding: 4px 6px !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    display: flex !important;
    visibility: visible !important;
  }
  
  a.header-item[href*="core"] span,
  .header-item[href*="core"] span {
    display: inline !important;
    font-size: 9px;
    visibility: visible !important;
  }
  
  .header-item.dropdown-container span {
    display: none;
  }
  
  .header-item:first-of-type span {
    display: none;
  }
  
  .header-item:first-of-type {
    flex-shrink: 0;
    min-width: fit-content;
  }
  
  .header-item.dropdown-container {
    flex-shrink: 0;
    min-width: fit-content;
  }
  
  .header-item:first-of-type svg:last-child {
    display: none;
  }
  
  .header-right {
    gap: 2px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-width: fit-content;
  }
  
  .header-icon-btn {
    padding: 4px;
    min-width: 28px;
    width: 28px;
    height: 28px;
  }
  
  .header-icon-btn svg {
    width: 14px;
    height: 14px;
  }
  
  .user-profile {
    padding: 3px 4px;
    gap: 4px;
    min-width: fit-content;
  }
  
  .user-avatar {
    width: 26px;
    height: 26px;
  }
  
  .avatar-initials {
    font-size: 10px;
  }
  
  .user-profile svg {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    display: none;
  }
  
  
  .user-profile {
    padding: 6px 8px;
    position: relative;
  }
  
  .user-info {
    display: none;
  }
  
  .user-profile.active .user-info {
    display: flex !important;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 12px;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .content-area {
    padding: 15px;
  }
  
  .tabs {
    margin-bottom: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  
  .tabs::-webkit-scrollbar {
    display: none;
  }
  
  .tab {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .tab-close {
    width: 12px;
    height: 12px;
    margin-left: 6px;
  }
  
  .content-area {
    padding: 15px;
  }
  
  .customer-detail-page {
    padding: 0;
  }
  
  .customer-detail-page .content-area {
    padding: 15px;
  }
  
  .tab-contents {
    width: 100%;
    overflow-x: hidden;
  }
  
  .tab-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .services-cards {
    grid-template-columns: 1fr;
  }
  
  .combined-cards-section {
    grid-template-columns: 1fr;
  }
  
  .bottom-section {
    grid-template-columns: 1fr;
  }
  
  .summary-cards,
  .metrics-section {
    grid-template-columns: 1fr;
  }

  .customer-detail-layout {
    flex-direction: column;
    gap: 15px;
  }

  .customer-sidebar {
    width: 100%;
    position: static;
    padding: 16px;
    border-radius: 8px;
  }
  
  .profile-section {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }
  
  .profile-avatar {
    width: 60px;
    height: 60px;
    margin-bottom: 12px;
  }
  
  .profile-avatar .avatar-fallback {
    font-size: 18px;
  }
  
  .customer-sidebar .customer-name {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .customer-company {
    font-size: 12px;
    margin-bottom: 12px;
  }
  
  .customer-tags {
    gap: 6px;
  }
  
  .tag {
    padding: 3px 10px;
    font-size: 11px;
  }
  
  .info-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }
  
  .section-title {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .info-item {
    font-size: 12px;
    margin-bottom: 10px;
    gap: 8px;
  }
  
  .info-icon {
    width: 14px;
    height: 14px;
  }
  
  .info-row {
    font-size: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  
  .info-label {
    font-size: 12px;
  }
  
  .info-value {
    font-size: 12px;
  }
  
  .activity-item {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  
  .activity-icon {
    width: 28px;
    height: 28px;
  }
  
  .activity-text {
    font-size: 12px;
  }
  
  .customer-main-content {
    gap: 16px;
  }
  
  .recommendations-section,
  .insights-section,
  .appointment-section,
  .satisfaction-section {
    padding: 16px;
    border-radius: 8px;
  }
  
  .content-section-title {
    font-size: 16px;
    margin-bottom: 6px;
  }
  
  .content-section-subtitle {
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .recommendations-table {
    gap: 10px;
  }
  
  .recommendation-row {
    padding: 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  
  .recommendation-type {
    min-width: 100px;
    font-size: 12px;
  }
  
  .recommendation-text {
    font-size: 12px;
    flex: 1;
    min-width: 200px;
  }
  
  .recommendation-actions {
    gap: 6px;
  }
  
  .action-btn-check,
  .action-btn-close {
    width: 32px;
    height: 32px;
  }
  
  .insight-card {
    padding: 12px;
  }
  
  .insight-header {
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .insight-number {
    font-size: 12px;
  }
  
  .info-given-btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .insight-text {
    font-size: 12px;
    line-height: 1.5;
  }
  
  .customer-bottom-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .calendar-widget {
    padding: 12px;
  }
  
  .calendar-header {
    margin-bottom: 12px;
  }
  
  .calendar-month {
    font-size: 14px;
  }
  
  .calendar-nav {
    font-size: 18px;
    padding: 2px 6px;
  }
  
  .calendar-grid {
    gap: 4px;
  }
  
  .calendar-day-header {
    font-size: 10px;
    padding: 6px 2px;
  }
  
  .calendar-day {
    padding: 8px 4px;
    font-size: 12px;
  }
  
  .satisfaction-form {
    gap: 12px;
  }
  
  .form-select,
  .form-textarea {
    padding: 10px;
    font-size: 13px;
  }
  
  .form-textarea {
    min-height: 80px;
  }
  
  .save-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .filtered-customers-grid {
    grid-template-columns: 1fr;
  }

  .notifications-container {
    right: 10px;
    top: 70px;
    max-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
    left: 10px;
    right: auto;
  }

  .notification-toast {
    min-width: auto;
    width: 100%;
    max-width: 100%;
    transform: translateX(calc(100vw + 20px));
    box-sizing: border-box;
  }
  
  .notification-toast.show {
    transform: translateX(0);
  }
  
  .notification-toast.fade-out {
    transform: translateX(calc(100vw + 20px));
  }
  
  .services-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .combined-cards-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .summary-card,
  .metric-card {
    padding: 20px;
  }
  
  .card-value {
    font-size: 28px;
  }
  
  .metric-value {
    font-size: 24px;
  }
  
  .bottom-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .recommended-steps,
  .customer-opportunities,
  .news-card-inline {
    padding: 20px;
  }
  
  .opportunities-table {
    font-size: 12px;
  }
  
  .opportunities-table th,
  .opportunities-table td {
    padding: 8px;
  }
  
  .step-actions {
    flex-direction: column;
  }
  
  .action-btn {
    width: 100%;
  }
  
  .dropdown-menu {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    max-width: calc(100vw - 40px);
  }
  
  .dropdown-container:hover .dropdown-menu {
    transform: translateX(-50%) translateY(0);
  }
}

/* Chatbot */
.chatbot-container {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  width: 380px;
  height: 600px;
  background: white !important;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column;
  z-index: 10000 !important;
  transform: translateY(calc(100% - 60px)) !important;
  transition: transform 0.3s ease-out;
  overflow: hidden;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Desktop: Show chatbot header always visible */
@media (min-width: 769px) {
  .chatbot-container {
    transform: translateY(calc(100% - 60px)) !important;
  }
  
  .chatbot-container .chatbot-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  }
  
  .chatbot-container .chatbot-header-content {
    display: flex !important;
    visibility: visible !important;
  }
  
  .chatbot-container .chatbot-icon {
    display: flex !important;
    visibility: visible !important;
  }
  
  .chatbot-container .chatbot-title {
    display: block !important;
    visibility: visible !important;
  }
}

/* Force chatbot to be visible on all screen sizes */
#chatbotContainer {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  z-index: 10000 !important;
  pointer-events: auto !important;
}

.chatbot-container.open {
  transform: translateY(0) !important;
}

.chatbot-container.open {
  transform: translateY(0) !important;
}

.chatbot-header {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.chatbot-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-title h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.chatbot-title p {
  font-size: 12px;
  margin: 0;
  opacity: 0.9;
}

.chatbot-toggle {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.chatbot-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chatbot-toggle .toggle-icon {
  display: none;
}

.chatbot-toggle .toggle-icon-up {
  display: block;
}

.chatbot-container.open .chatbot-toggle .toggle-icon-up {
  display: none;
}

.chatbot-container.open .chatbot-toggle .toggle-icon-close {
  display: block;
}

.chatbot-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #F9FAFB;
}

.chatbot-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: slideIn 0.3s ease-out;
}

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

.chatbot-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chatbot-message.bot .message-avatar {
  background: #D1FAE5;
}

.chatbot-message.user .message-avatar {
  background: #4A90E2;
  color: white;
}

.message-content {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.chatbot-message.bot .message-content {
  background: white;
  color: #333;
  border-top-left-radius: 4px;
}

.chatbot-message.user .message-content {
  background: #4A90E2;
  color: white;
  border-top-right-radius: 4px;
}

.chatbot-quick-questions {
  padding: 12px 20px;
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  flex-shrink: 0;
}

.quick-question-item {
  padding: 8px 12px;
  background: #F3F4F6;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.quick-question-item:hover {
  background: #E5E7EB;
  border-color: #10B981;
  color: #10B981;
}

.chatbot-input-container {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid #E0E0E0;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.chatbot-input:focus {
  border-color: #10B981;
}

.chatbot-send {
  width: 44px;
  height: 44px;
  background: #10B981;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.chatbot-send:hover {
  background: #059669;
}

.chatbot-send:disabled {
  background: #D1FAE5;
  cursor: not-allowed;
}

/* Scrollbar for chatbot */
.chatbot-messages::-webkit-scrollbar,
.chatbot-quick-questions::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track,
.chatbot-quick-questions::-webkit-scrollbar-track {
  background: #F3F4F6;
}

.chatbot-messages::-webkit-scrollbar-thumb,
.chatbot-quick-questions::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover,
.chatbot-quick-questions::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Footer */
.main-footer {
  background-color: #F5F5F5;
  border-top: 1px solid #E0E0E0;
  padding: 12px 30px;
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #666;
  flex: 1;
  min-width: 0;
}

.footer-separator {
  color: #CCC;
}

.footer-right {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #666;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .chatbot-container {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    right: 15px !important;
    bottom: 80px !important;
    transform: translateY(0) !important;
    overflow: visible !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s ease-out !important;
    z-index: 10002 !important;
    position: fixed !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Force chatbot visibility on mobile */
  #chatbotContainer {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: fixed !important;
    z-index: 10002 !important;
  }
  
  /* Ensure chatbot is always visible */
  body .chatbot-container,
  html .chatbot-container,
  .chatbot-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    z-index: 10002 !important;
  }
  
  .chatbot-container:not(.open) {
    transform: translateY(0) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
  }
  
  .chatbot-container:not(.open) {
    cursor: pointer !important;
  }
  
  .chatbot-container:not(.open) .chatbot-header {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .chatbot-container:not(.open) .chatbot-header-content {
    display: none !important;
  }
  
  /* İkonu header-content gizli olsa bile göster */
  .chatbot-container:not(.open) .chatbot-header-content,
  .chatbot-container:not(.open) .chatbot-header-content * {
    display: none !important;
  }
  
  .chatbot-container:not(.open) .chatbot-header-content .chatbot-icon,
  .chatbot-container:not(.open) .chatbot-icon {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 32px !important;
    height: 32px !important;
    z-index: 100 !important;
  }
  
  .chatbot-container:not(.open) .chatbot-toggle {
    display: none !important;
  }
  
  /* İkonu header içinde doğrudan göster - header-content gizli olsa bile */
  .chatbot-container:not(.open) .chatbot-header::before {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='6' y='8' width='12' height='10' rx='2' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='9.5' cy='13' r='1.5' fill='white'/%3E%3Ccircle cx='14.5' cy='13' r='1.5' fill='white'/%3E%3Cpath d='M9 16H15' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 8V6C12 5.44772 11.5523 5 11 5H9C8.44772 5 8 5.44772 8 6V8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M16 6C16 5.44772 15.5523 5 15 5H13C12.4477 5 12 5.44772 12 6V8' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M19 4L19.5 3L20 4L21 4.5L20 5L19.5 6L19 5L18 4.5L19 4Z' fill='white'/%3E%3Cpath d='M5 20L5.5 19L6 20L7 20.5L6 21L5.5 22L5 21L4 20.5L5 20Z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ayrıca mevcut ikonu da göster */
  .chatbot-container:not(.open) .chatbot-icon {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
  }
  
  .chatbot-container:not(.open) .chatbot-icon svg {
    width: 32px !important;
    height: 32px !important;
    stroke: white !important;
    fill: white !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
  }
  
  .chatbot-container:not(.open) .chatbot-body {
    display: none !important;
  }
  
  /* Ensure chatbot is always visible on mobile */
  #chatbotContainer {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .chatbot-container.open {
    width: calc(100% - 30px) !important;
    height: calc(100vh - 100px) !important;
    max-height: 600px !important;
    border-radius: 16px !important;
    transform: translateY(0) !important;
    overflow: hidden !important;
    bottom: 80px !important;
  }
  
  .chatbot-container.open .chatbot-header {
    border-radius: 16px 16px 0 0 !important;
    padding: 16px 20px !important;
    height: auto !important;
  }
  
  .chatbot-container.open .chatbot-header-content {
    display: flex !important;
  }
  
  .chatbot-container.open .chatbot-toggle {
    display: flex !important;
  }
  
  .chatbot-container.open .chatbot-icon {
    width: 40px !important;
    height: 40px !important;
    position: static !important;
    background: rgba(255, 255, 255, 0.2) !important;
  }
  
  .chatbot-container.open .chatbot-icon svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .chatbot-container.open .chatbot-body {
    display: flex !important;
  }
  
  .main-footer {
    padding: 10px 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background-color: white;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    font-size: 11px;
  }
  
  .footer-separator {
    display: none;
  }
  
  .footer-right {
    width: 100%;
    justify-content: flex-start;
    font-size: 11px;
  }
  
  .main-content {
    padding-bottom: 60px;
  }
  
  .content-area {
    padding-bottom: 80px;
  }
}

