﻿/* kens ai bot styling here */
#flyout-nav .main-nav .AIBot {
  padding: 2.03704vh 3.57143em 2.03704vh 2.38095em;
}

.AIBot form {
  display: flex;
  gap: 8px;
}

.AIBot .AIQuestion {
  flex: 1;
  border-radius: .35714em;
  font-size: .69444em;
  height:42px;
  padding-right:30px;
}

.AIAction {
  font-size: .69444em;
  font-family: owners-wide, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  padding: .75em;
  border-radius: .35714em;
  background-color: #0b4ff2;
  border: 0 !important;
  text-align: left;
  outline: none;
  position: relative;
  cursor: pointer;
  color: #fff;
  -webkit-transition: all .4s;
  transition: all .4s;
}

/* Modal Overlay */
.ai-modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  transform: none !important;
}

  .ai-modal.active {
    display: block !important;
  }

.ai-modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2147483647 !important;
}

/* Modal Container */
.ai-modal-container {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-radius: 16px;
  overflow: hidden;
  z-index: 2147483647 !important;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 79, 242, 0.3);
  box-shadow: 0 0 60px rgba(11, 79, 242, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modal Header */
.ai-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(11, 79, 242, 0.3);
  flex-shrink: 0;
  background: transparent;
}

.ai-modal-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-modal-icon {
  width: 70px;
  height: 70px;
  /*border-radius: 10px;*/
 /* background: linear-gradient(135deg, #0b4ff2 0%, #3b7fff 100%);*/
  display: flex;
  align-items: center;
  justify-content: center;
  /*box-shadow: 0 0 20px rgba(11, 79, 242, 0.5);*/
}

  .ai-modal-icon svg {
    width: 70px;
    height: 70px;
    stroke: white;
    fill: none;
  }

.ai-modal-title-group h2 {
  margin: 0;
  font-size: .9rem;
  color: #ffffff;
  font-weight: 600;
}

.ai-modal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.ai-status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.ai-modal-status span {
  color: #94a3b8;
  font-size: 0.75rem;
}

.ai-modal-close {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

  .ai-modal-close:hover,
  .ai-modal-close:focus {
    background: rgba(148, 163, 184, 0.1);
    color: #ffffff;
    outline: none;
    border-color: rgba(148, 163, 184, 0.5);
    opacity: 1;
  }

/* Modal Body */
.ai-modal-body {
  padding: 24px;
  min-height: 150px;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
  flex-grow: 1;
  font-size:18px;
}

  /* Scrollbar Styling */
  .ai-modal-body::-webkit-scrollbar {
    width: 8px;
  }

  .ai-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
  }

  .ai-modal-body::-webkit-scrollbar-thumb {
    background: rgba(11, 79, 242, 0.4);
    border-radius: 4px;
  }

    .ai-modal-body::-webkit-scrollbar-thumb:hover {
      background: rgba(11, 79, 242, 0.6);
    }

/* Content Styling */
.ai-modal-content {
  line-height: 1.6;
  color: #e2e8f0;
}

  .ai-modal-content p {
    margin: 0 0 16px 0;
    color: #e2e8f0;
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .ai-modal-content strong {
    color: #6b9fff;
    font-weight: 600;
  }

  .ai-modal-content h5 {
    color: #6b9fff;
    margin: 24px 0 16px 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }

    .ai-modal-content h5:first-child {
      margin-top: 0;
    }

  .ai-modal-content h6 {
    color: #9dbfff;
    margin: 20px 0 12px 0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }

  .ai-modal-content ul,
  .ai-modal-content ol {
    margin: 0 0 16px 0;
    padding-left: 0;
    list-style: none;
  }

  .ai-modal-content li {
    padding: 10px 16px 10px 28px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
  }

    .ai-modal-content li::before {
      content: "◆";
      color: #0b4ff2;
      position: absolute;
      left: 12px;
      font-size: 0.5rem;
      top: 20px;
      transform: translateY(-50%);
    }

  /* Grid for multiple links */
  .ai-modal-content .ai-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
  }

@media (max-width: 500px) {
  .ai-modal-content .ai-grid {
    grid-template-columns: 1fr;
  }
}

/* Link Styling */
.ai-modal-content a.aiRecommendation {
  color: #9dbfff;
  text-decoration: none;
  transition: all 0.2s;
}

  .ai-modal-content a.aiRecommendation:hover {
    color: #6b9fff;
    text-decoration: underline;
  }

/* Links inside the grid */
.ai-modal-content .ai-grid a.aiRecommendation {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 16px;
  border-radius: 10px;
  color: #f1f5f9;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

  .ai-modal-content .ai-grid a.aiRecommendation::before {
    content: "◆";
    color: #0b4ff2;
    font-size: 0.625rem;
  }

  .ai-modal-content .ai-grid a.aiRecommendation:hover {
    background: rgba(11, 79, 242, 0.15);
    border-color: rgba(11, 79, 242, 0.4);
    text-decoration: none;
    transform: translateY(-2px);
  }

/* Spinner */
.ai-spinner {
  display: none;
  text-align: center;
  padding: 40px 0;
}

  .ai-spinner.active {
    display: block;
  }

.ai-spinner-circle {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid rgba(11, 79, 242, 0.2);
  border-top-color: #0b4ff2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(11, 79, 242, 0.4);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Focus visible for accessibility */
.ai-modal-container:focus {
  outline: none;
}


/* ========================================
   DARK THEME
   <div id="aiModal" class="ai-modal dark">
   ======================================== */
.ai-modal.dark .ai-modal-container {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(11, 79, 242, 0.3);
  box-shadow: 0 0 60px rgba(11, 79, 242, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ai-modal.dark .ai-modal-header {
  border-bottom: 1px solid rgba(11, 79, 242, 0.3);
}

.ai-modal.dark .ai-modal-icon {
  /*background: linear-gradient(135deg, #0b4ff2 0%, #3b7fff 100%);*/
  /*box-shadow: 0 0 20px rgba(11, 79, 242, 0.5);*/
}

  .ai-modal.dark .ai-modal-icon svg {
    /*stroke: white;*/
  }

.ai-modal.dark .ai-modal-title-group h2 {
  color: #ffffff;
}

.ai-modal.dark .ai-status-dot {
  background: #22c55e;
}

.ai-modal.dark .ai-modal-status span {
  color: #94a3b8;
}

.ai-modal.dark .ai-modal-close {
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

  .ai-modal.dark .ai-modal-close:hover,
  .ai-modal.dark .ai-modal-close:focus {
    background: rgba(148, 163, 184, 0.1);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.5);
  }

.ai-modal.dark .ai-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.ai-modal.dark .ai-modal-body::-webkit-scrollbar-thumb {
  background: rgba(11, 79, 242, 0.4);
}

  .ai-modal.dark .ai-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 79, 242, 0.6);
  }

.ai-modal.dark .ai-modal-content {
  color: #e2e8f0;
}

  .ai-modal.dark .ai-modal-content p {
    color: #e2e8f0;
  }

  .ai-modal.dark .ai-modal-content strong {
    color: #6b9fff;
  }

  .ai-modal.dark .ai-modal-content h5 {
    color: #6b9fff;
  }

  .ai-modal.dark .ai-modal-content h6 {
    color: #9dbfff;
  }

  .ai-modal.dark .ai-modal-content li {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
  }

    .ai-modal.dark .ai-modal-content li::before {
      color: #0b4ff2;
    }

  .ai-modal.dark .ai-modal-content a.aiRecommendation {
    color: #9dbfff;
  }

    .ai-modal.dark .ai-modal-content a.aiRecommendation:hover {
      color: #6b9fff;
    }

  .ai-modal.dark .ai-modal-content .ai-grid a.aiRecommendation {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.1);
  }

    .ai-modal.dark .ai-modal-content .ai-grid a.aiRecommendation::before {
      color: #0b4ff2;
    }

    .ai-modal.dark .ai-modal-content .ai-grid a.aiRecommendation:hover {
      background: rgba(11, 79, 242, 0.15);
      border-color: rgba(11, 79, 242, 0.4);
    }

.ai-modal.dark .ai-spinner-circle {
  border-color: rgba(11, 79, 242, 0.2);
  border-top-color: #0b4ff2;
  box-shadow: 0 0 20px rgba(11, 79, 242, 0.4);
}


/* ========================================
   LIGHT THEME
   <div id="aiModal" class="ai-modal light">
   ======================================== */
.ai-modal.light .ai-modal-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.ai-modal.light .ai-modal-container {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(11, 79, 242, 0.2);
  box-shadow: 0 0 40px rgba(11, 79, 242, 0.1), 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.ai-modal.light .ai-modal-header {
  border-bottom: 1px solid rgba(11, 79, 242, 0.15);
}

.ai-modal.light .ai-modal-icon {
  /*background: linear-gradient(135deg, #0b4ff2 0%, #3b7fff 100%);*/
  /*box-shadow: 0 0 20px rgba(11, 79, 242, 0.3);*/
}

  .ai-modal.light .ai-modal-icon svg {
    /*stroke: white;*/
  }

.ai-modal.light .ai-modal-title-group h2 {
  color: #0f172a;
}

.ai-modal.light .ai-status-dot {
  background: #22c55e;
}

.ai-modal.light .ai-modal-status span {
  color: #64748b;
}

.ai-modal.light .ai-modal-close {
  border-color: rgba(100, 116, 139, 0.3);
  color: #64748b;
}

  .ai-modal.light .ai-modal-close:hover,
  .ai-modal.light .ai-modal-close:focus {
    background: rgba(100, 116, 139, 0.1);
    color: #0f172a;
    border-color: rgba(100, 116, 139, 0.5);
  }

.ai-modal.light .ai-modal-body::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.ai-modal.light .ai-modal-body::-webkit-scrollbar-thumb {
  background: rgba(11, 79, 242, 0.4);
}

  .ai-modal.light .ai-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 79, 242, 0.6);
  }

.ai-modal.light .ai-modal-content {
  color: #334155;
}

  .ai-modal.light .ai-modal-content p {
    color: #334155;
  }

  .ai-modal.light .ai-modal-content strong {
    color: #0b4ff2;
  }

  .ai-modal.light .ai-modal-content h5 {
    color: #0b4ff2;
  }

  .ai-modal.light .ai-modal-content h6 {
    color: #3b7fff;
  }

  .ai-modal.light .ai-modal-content li {
    background: #f1f5f9;
    border-color: #e2e8f0;
  }

    .ai-modal.light .ai-modal-content li::before {
      color: #0b4ff2;
    }

  .ai-modal.light .ai-modal-content a.aiRecommendation {
    color: #0b4ff2;
  }

    .ai-modal.light .ai-modal-content a.aiRecommendation:hover {
      color: #0940c1;
    }

  .ai-modal.light .ai-modal-content .ai-grid a.aiRecommendation {
    background: #f1f5f9;
    color: #1e293b;
    border-color: #e2e8f0;
  }

    .ai-modal.light .ai-modal-content .ai-grid a.aiRecommendation::before {
      color: #0b4ff2;
    }

    .ai-modal.light .ai-modal-content .ai-grid a.aiRecommendation:hover {
      background: rgba(11, 79, 242, 0.1);
      border-color: rgba(11, 79, 242, 0.4);
    }

.ai-modal.light .ai-spinner-circle {
  border-color: rgba(11, 79, 242, 0.2);
  border-top-color: #0b4ff2;
  box-shadow: 0 0 20px rgba(11, 79, 242, 0.2);
}


/* ========================================
   TECH THEME
   <div id="aiModal" class="ai-modal tech">
   ======================================== */
.ai-modal.tech .ai-modal-container {
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 60px rgba(34, 197, 94, 0.2), 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
}

.ai-modal.tech .ai-modal-header {
  border-bottom: 1px solid rgba(34, 197, 94, 0.3);
}

.ai-modal.tech .ai-modal-icon {
  /*background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);*/
  /*box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);*/
}

  .ai-modal.tech .ai-modal-icon svg {
    /*stroke: white;*/
  }

.ai-modal.tech .ai-modal-title-group h2 {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

  .ai-modal.tech .ai-modal-title-group h2::before {
    content: "> ";
  }

.ai-modal.tech .ai-status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.ai-modal.tech .ai-modal-status span {
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6875rem;
}

.ai-modal.tech .ai-modal-close {
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

  .ai-modal.tech .ai-modal-close:hover,
  .ai-modal.tech .ai-modal-close:focus {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
  }

.ai-modal.tech .ai-modal-body::-webkit-scrollbar-track {
  background: rgba(34, 197, 94, 0.05);
}

.ai-modal.tech .ai-modal-body::-webkit-scrollbar-thumb {
  background: rgba(34, 197, 94, 0.3);
}

  .ai-modal.tech .ai-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
  }

.ai-modal.tech .ai-modal-content {
  color: #d1d5db;
}

  .ai-modal.tech .ai-modal-content p {
    color: #d1d5db;
  }

  .ai-modal.tech .ai-modal-content strong {
    color: #22c55e;
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
  }

  .ai-modal.tech .ai-modal-content h5 {
    color: #22c55e;
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  }

    .ai-modal.tech .ai-modal-content h5::before {
      content: "[ ";
    }

    .ai-modal.tech .ai-modal-content h5::after {
      content: " ]";
    }

  .ai-modal.tech .ai-modal-content h6 {
    color: #4ade80;
  }

  .ai-modal.tech .ai-modal-content li {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
  }

    .ai-modal.tech .ai-modal-content li::before {
      content: "►";
      color: #22c55e;
      text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
    }

  .ai-modal.tech .ai-modal-content a.aiRecommendation {
    color: #4ade80;
  }

    .ai-modal.tech .ai-modal-content a.aiRecommendation:hover {
      color: #22c55e;
      text-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
    }

  .ai-modal.tech .ai-modal-content .ai-grid a.aiRecommendation {
    background: rgba(34, 197, 94, 0.05);
    color: #d1d5db;
    border-color: rgba(34, 197, 94, 0.2);
  }

    .ai-modal.tech .ai-modal-content .ai-grid a.aiRecommendation::before {
      content: "►";
      color: #22c55e;
      text-shadow: 0 0 5px rgba(34, 197, 94, 0.5);
    }

    .ai-modal.tech .ai-modal-content .ai-grid a.aiRecommendation:hover {
      background: rgba(34, 197, 94, 0.15);
      border-color: rgba(34, 197, 94, 0.5);
      box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
    }

.ai-modal.tech .ai-spinner-circle {
  border-color: rgba(34, 197, 94, 0.2);
  border-top-color: #22c55e;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.4);
}

/*speech to text styling*/
/* Speech-to-Text Input Wrapper */
/* Speech-to-Text Input Wrapper */
.speech-input-wrapper {
  position: relative;
  display: block; /* Changed from inline-block */
  width: 100%;
  flex: 1; /* Add this to work in flex containers */
}

  .speech-input-wrapper input {
    width: 100%;
    padding-right: 40px; /* Make room for the mic icon */
    box-sizing: border-box;
  }

/* Microphone Button */
.speech-mic-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  color: #666;
  font-size: 16px;
  transition: color 0.2s ease;
}

  .speech-mic-btn:hover {
    color: #333;
  }

  .speech-mic-btn:focus {
    outline: none;
    color: #333; /* Just a subtle color change instead */
  }

  /* Listening State - Animated pulse */
  .speech-mic-btn.listening {
    color: #dc3545;
    animation: pulse 1s infinite;
  }

    .speech-mic-btn.listening i {
      animation: micPulse 0.5s infinite alternate;
    }

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes micPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

/* Optional: Add a subtle recording indicator ring */
.speech-mic-btn.listening::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid #dc3545;
  border-radius: 50%;
  animation: ring 1s infinite;
  pointer-events: none;
  margin-top:-2px;
}

@keyframes ring {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

/* Moncur Intelligence Section Styling */
#moncur-intelligence .AIBot form {
  gap: 0;
}

#moncur-intelligence .AIQuestion::placeholder {
  color: #999;
}

#moncur-intelligence .AIQuestion:focus {
  border-color: #0064ff;
  box-shadow: 0 0 0 3px rgba(0, 100, 255, 0.25);
  outline: none;
}

#moncur-intelligence .AIAction {
  background: linear-gradient(135deg, #0064ff 0%, #0b4ff2 100%);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

  #moncur-intelligence .AIAction:hover {
    background: linear-gradient(135deg, #0050dd 0%, #0940c1 100%);
  }

/* Mic button for white input */
#moncur-intelligence .speech-mic-btn {
  right: 10px;
  font-size: 16px;
  color: #0064ff;
}

  #moncur-intelligence .speech-mic-btn:hover {
    color: #0050dd;
  }

css /* Responsive adjustments for Moncur Intelligence section */
@media (max-width: 576px) {
  #moncur-intelligence h3

{
  font-size: 1.1rem !important;
}

#moncur-intelligence .AIQuestion {
  font-size: 0.85rem !important;
  height: 44px !important;
}

#moncur-intelligence .AIAction {
  height: 44px !important;
  padding: 0 1rem !important;
  font-size: 0.75rem !important;
}

#moncur-intelligence svg {
  width: 40px !important;
  height: 56px !important;
}

#moncur-intelligence h3 span {
  font-size: 0.55rem !important;
  padding: 0.15rem 0.4rem !important;
}

#moncur-intelligence p {
  font-size: 0.95rem !important;
}

}

@media (max-width: 400px) {
  #moncur-intelligence h3 {
    font-size: 0.95rem !important;
  }

  #moncur-intelligence .AIQuestion {
    font-size: 0.8rem !important;
  }

  #moncur-intelligence svg {
    width: 32px !important;
    height: 45px !important;
  }
}
/* end kens styling */
