html {
  font-size: 14px;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  height: 100%;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0069FF;
}

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Page Layout */
.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Header Banner */
.header-banner {
  background: white;
  color: #333;
  padding: 1rem 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid #0069FF;
  flex-shrink: 0;
}

.header-banner h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.inline-logo {
  height: 30px;
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

/* Chatbot Main Section */
.chatbot-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-bottom: 1.5rem;
}

/* Chatbot Embed Wrapper */
.chatbot-embed-wrapper {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#bp-embedded-webchat {
  flex: 1;
  width: 100%;
  min-height: 0;
}

#bp-embedded-webchat iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
}

/* Features Sidebar */
.features-sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
}

.feature-item {
  background: transparent;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.feature-item h3 {
  color: #333;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.feature-item p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.4;
}

/* Footer - Small and locked to bottom */
.footer {
  background: #333 !important;
  color: white;
  padding: 0.5rem 0;
  text-align: center;
  border-top: none !important;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.footer p {
  margin: 0;
  line-height: 1.5;
}

.footer a {
  color: #F3E24E !important;
  text-decoration: none;
}

.footer a:hover {
  color: white !important;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 2rem;
  }

  .features-sidebar {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
  }

  .feature-item {
    min-width: 200px;
  }

  .chatbot-main {
    min-height: 500px;
    padding-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .header-banner {
    padding: 0.75rem 1rem;
  }

  .header-banner h1 {
    font-size: 1rem;
  }

  .inline-logo {
    height: 25px;
  }

  .main-content {
    padding: 1rem 1rem 1.5rem 1rem;
    gap: 1rem;
  }

  .chatbot-main {
    padding-bottom: 1rem;
  }

  .features-sidebar {
    gap: 0.75rem;
  }

  .feature-item {
    padding: 1rem;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .feature-item h3 {
    font-size: 1.1rem;
  }

  .footer {
    font-size: 0.75rem;
    padding: 0.4rem 0;
  }
}

/* Botpress Embedded Webchat Styling */
.bpw-header {
  background: #0069FF !important;
}

.bpw-send-button {
  background-color: #0069FF !important;
}

.bpw-send-button:hover {
  background-color: #003580 !important;
}

/* Custom accent for links and buttons */
a {
  color: #0069FF;
}

a:hover {
  color: #003580;
}