/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./styles/markdown.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
.markdown-content {
  /* Base styles */
  color: white;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.6;

  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 500;
  }

  h1 { font-size: 2.5em; }
  h2 { font-size: 2em; }
  h3 { font-size: 1.5em; }
  h4 { font-size: 1.2em; }
  h5 { font-size: 1.1em; }
  h6 { font-size: 1em; }

  /* Paragraphs and spacing */
  p {
    margin: 0;
    line-height: 1.6;
  }

  /* Text formatting */
  strong, b {
    font-weight: 600;
  }

  em, i {
    font-style: italic;
  }

  /* Strikethrough - GFM feature */
  del, s {
    text-decoration: line-through;
  }

  /* Lists */
  ul, ol {
    margin: 0;
    padding-left: 2em;
    line-height: 1.6;
  }

  li {
    margin: 0;
    padding-left: 0.5em;
  }

  ul li {
    list-style-type: disc;
  }

  ol li {
    list-style-type: decimal;
  }

  /* Task lists - GFM feature */
  ul.contains-task-list {
    list-style-type: none;
    padding-left: 0;
  }

  .task-list-item {
    list-style-type: none;
    padding-left: 1.5em;
    position: relative;
  }

  .task-list-item-checkbox {
    position: absolute;
    left: 0;
    top: 0.25em;
    margin-right: 0.5em;
  }

  /* Links */
  a {
    color: rgb(20, 184, 166);
    text-decoration: underline;
    font-weight: 500;
    
    &:hover {
      opacity: 0.8;
      color: rgb(13, 148, 136);
    }
  }

  /* Code blocks */
  pre {
    background-color: #1e1e1e;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
  }

  code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 0 0.4em;
    background-color: #1e1e1e;
    border-radius: 3px;
  }

  /* Blockquotes */
  blockquote {
    border-left: 4px solid rgb(20, 184, 166);
    margin: 0;
    padding-left: 1em;
    font-style: italic;
    background-color: rgba(20, 184, 166, 0.1);
    border-radius: 0 4px 4px 0;
  }

  /* Tables - Theme-matching styling */
  table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    background-color: #111827; /* Dark background matching the site theme */
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #4B5563; /* Slightly thicker and lighter border for better visibility */
    box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.1); /* Changed from purple to teal */
  }

  th, td {
    border: 1px solid #4B5563; /* Lighter border color for better contrast */
    padding: 0.75em;
    text-align: left;
  }

  /* Add a slightly more visible outer border to the table */
  tr:first-child th {
    border-top: 2px solid #4B5563;
  }
  
  tr:last-child td {
    border-bottom: 2px solid #4B5563;
  }
  
  th:first-child, td:first-child {
    border-left: 2px solid #4B5563;
  }
  
  th:last-child, td:last-child {
    border-right: 2px solid #4B5563;
  }

  th {
    background-color: #1f2937; /* Darker header background */
    font-weight: 600;
    color: white; /* Changed from purple to white to match rest of content */
  }

  tr:nth-child(even) {
    background-color: #1a202c; /* Slightly lighter for alternating rows */
  }

  tr:hover {
    background-color: #282c34; /* Highlight on hover */
  }

  /* Horizontal rule */
  hr {
    border: 0;
    border-top: 1px solid #444;
    margin: 1.5em 0;
  }

  /* Images */
  img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
  }

  /* Definition Lists */
  dl {
    margin: 1em 0;
  }

  dt {
    font-weight: bold;
    margin-top: 0.5em;
  }

  dd {
    margin-left: 2em;
    margin-bottom: 0.5em;
  }
} 
/*!******************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./components/Settings/Settings.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************/
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
}

.tab-button:hover {
  opacity: 0.8;
}

.tab-button.active {
  background-image: linear-gradient(to right, #0cdbb6, #1fd0f0);
  color: white;
  border-radius: 5px;
}

.settings html {
  scroll-behavior: smooth;
}

.settings body {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  line-height: 1.6;
  background-size: 200% 200%;
  background-image: linear-gradient(45deg, #151A2D, #2D284D, #151A2D);
  animation: gradientBG 10s ease infinite;
}

.settings .landing {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh; /* Adjusted height */
  text-align: center;
}

.settings .landing h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.settings .landing p {
  font-size: 1.5rem;
  font-weight: 400;
  max-width: 500px;
  margin: auto;
  margin-bottom: 2rem;
}

.settings .container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
  transition: all .3s ease-in-out;
  max-height: 80vh; /* Fixed maximum height */
  overflow-y: auto; /* Enable scrolling if content overflows */
}

.settings .container:hover {
  transform: scale(1.01);
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
}

.settings .static-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  max-height: 80vh; /* Fixed maximum height */
  overflow-y: auto; /* Enable scrolling if content overflows */
}

.settings input, 
.settings select, 
.settings #output, 
.settings #reportContainer {
  background-color: rgba(0, 0, 0, 0.5); /* Darker background color */
  border: none;
  color: #fff; /* White text color */
  transition: all .3s ease-in-out;
}

.settings input:hover, 
.settings input:focus, 
.settings select:hover, 
.settings select:focus {
  background-color: #333; /* Darker hover/focus background color */
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.settings .btn-primary {
  background: linear-gradient(to right, #0062cc, #007bff);
  border: none;
  transition: all .3s ease-in-out;
}

.settings .btn-secondary {
  background: linear-gradient(to right, #6c757d, #6c757d);
  border: none;
  transition: all .3s ease-in-out;
}

.settings .btn:hover {
  opacity: 0.8;
  transform: scale(1.1);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.settings .agent_question {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: white; /* Clean white color for the dark background */
  letter-spacing: 0.01em;
}

.settings footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(to right, #151A2D, #111827);
  color: white;
  text-align: center;
  padding: 10px 0;
}

.settings .margin-div {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 10px;
}

.settings .agent_response {
  background-color: #747d8c;
  margin: 10px;
  padding: 10px;
  border-radius: 12px;
}

.settings #output {
  height: 150px; /* Adjusted height */
  font-family: 'Times New Roman', Times, "Courier New", serif;
  overflow: auto;
  padding: 10px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.settings #reportContainer {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  transition: all .3s ease-in-out;
  padding: 10px;
  border-radius: 12px;
}

/* refactoring inline css */
.settings .sayGoodbye {
  background-image: linear-gradient(to right, #9867F0, #ED4E50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.settings .form-group {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
}

.settings .form-group label {
  flex: 1;
  margin-right: 1rem;
}

.settings .form-group input,
.settings .form-group select {
  flex: 2;
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem; /* Rounded corners */
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.5); /* Darker background color */
  color: #fff; /* White text color */
  transition: all 0.3s ease-in-out;
}

.settings .form-group input:hover,
.settings .form-group input:focus,
.settings .form-group select:hover,
.settings .form-group select:focus {
  background-color: #333; /* Darker hover/focus background color */
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.report_settings_static {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
}

.form-control-static {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  appearance: none; /* Remove default arrow */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1em;
  transition: all 0.2s ease-in-out;
}

.form-control-static:hover {
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1);
}

.form-control-static:focus {
  outline: none;
  border-color: rgba(20, 184, 166, 0.8);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.form-control-static option {
  background-color: #1f2937;
  color: white;
  padding: 8px;
}

.input-static {
  flex: 1;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.button-static {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background-color: #0d9488;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
}

.domain-tag-static {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  background-color: #ede9fe;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  margin-right: 0.5rem;
}

.domain-text-static {
  color: #0d9488;
}

.domain-button-static {
  margin-left: 0.5rem;
  color: #9f7aea;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Add this after the existing .settings .agent_question rule */

.modal-content .agent_question {
  color: white;
  font-weight: 600;
  letter-spacing: 0.015em;
  margin-bottom: 0.2rem;
  display: block; /* Force block level for better spacing in the modal */
  position: relative;
}

/* Removing the ::after pseudo-element that created the gradient underline */

/* Adjust form-group styling in modal context */
.modal-content .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.modal-content .form-group label {
  margin-bottom: 0.5rem;
  margin-right: 0;
  width: 100%;
}

.modal-content .form-group select,
.modal-content .form-group input {
  width: 100%;
}

/* More specific rule that excludes MCP section */
.modal-content .form-group:not(.mcp-section) input,
.modal-content .form-group:not(.mcp-section) select {
  width: 100%;
}

/* Reset the width for MCP section to allow natural layout - make this more specific */
.modal-content .form-group.mcp-section input,
.modal-content .form-group.mcp-section select,
.modal-content .form-group.mcp-section textarea {
  width: auto !important;
}

/* Ensure MCP header layout stays horizontal */
.modal-content .mcp-section .mcp-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 15px !important;
  justify-content: flex-start !important;
}

.modal-content .mcp-section .mcp-header label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  flex: 1 !important;
}

.modal-content .mcp-section .mcp-toggle {
  width: auto !important;
  margin: 0 !important;
}

/* MCP Section Styles for Next.js Settings */
.settings .mcp-section {
  margin-bottom: 1.5rem;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.settings .mcp-section:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.settings .mcp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
  justify-content: flex-start;
}

.settings .mcp-header label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.3s ease;
  flex: 1;
}

.settings .mcp-header label:hover {
  color: #0d9488;
}

.settings .mcp-toggle {
  margin: 0;
  accent-color: #0d9488;
  width: 18px;
  height: 18px;
  cursor: pointer;
  transform: scale(1.2);
}

.settings .mcp-info-btn {
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(13, 148, 136, 0.3);
  color: #0d9488;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  min-width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.settings .mcp-info-btn:hover {
  background: rgba(13, 148, 136, 0.3);
  border-color: #0d9488;
  color: #0cdbb6;
  transform: scale(1.05);
}

.settings .mcp-config-section {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.2), rgba(13, 148, 136, 0.05));
  backdrop-filter: blur(5px);
}

.settings .mcp-presets {
  margin-bottom: 20px;
}

.settings .preset-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.settings .preset-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 148, 136, 0.4);
  color: #fff;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.2), rgba(13, 148, 136, 0.1));
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.settings .preset-btn:hover {
  border-color: #0d9488;
  color: #0cdbb6;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.3), rgba(13, 148, 136, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
}

.settings .preset-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.settings .preset-btn i {
  font-size: 1rem;
  color: #0d9488;
}

.settings .preset-btn:hover i {
  color: #0cdbb6;
}

.settings .mcp-config-group {
  margin-bottom: 15px;
}

.settings .mcp-config-textarea {
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 100%;
  min-height: 300px;
  max-height: 500px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.settings .mcp-config-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

.settings .mcp-config-textarea:focus {
  border-color: #0d9488;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 3px rgba(13, 148, 136, 0.2);
  outline: none;
}

.settings .mcp-config-textarea.invalid {
  border-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(220, 53, 69, 0.3);
}

.settings .mcp-config-textarea.valid {
  border-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(40, 167, 69, 0.3);
}

.settings .mcp-config-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.settings .mcp-status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings .mcp-status-text::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #6c757d;
}

.settings .mcp-status-text.valid {
  color: #28a745;
}

.settings .mcp-status-text.valid::before {
  background-color: #28a745;
  box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.settings .mcp-status-text.invalid {
  color: #dc3545;
}

.settings .mcp-status-text.invalid::before {
  background-color: #dc3545;
  box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
}

.settings .mcp-format-btn {
  font-size: 0.85rem;
  padding: 8px 16px;
  background: linear-gradient(145deg, rgba(108, 117, 125, 0.8), rgba(108, 117, 125, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings .mcp-format-btn:hover {
  background: linear-gradient(145deg, rgba(108, 117, 125, 1), rgba(108, 117, 125, 0.8));
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.settings .mcp-format-btn i {
  color: #0d9488;
}

.settings .mcp-example-link {
  color: #0d9488;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.settings .mcp-example-link:hover {
  text-decoration: underline;
  color: #0cdbb6;
  transform: translateX(2px);
}

/* MCP Info Modal for Next.js */
.settings .mcp-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.settings .mcp-info-modal.visible {
  opacity: 1;
  visibility: visible;
}

.settings .mcp-info-content {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  padding: 30px;
  border-radius: 16px;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  margin: 20px;
  border: 1px solid rgba(13, 148, 136, 0.3);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.settings .mcp-info-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.settings .mcp-info-close:hover {
  background: rgba(220, 53, 69, 0.2);
  border-color: #dc3545;
  color: #dc3545;
  transform: scale(1.1);
}

.settings .mcp-info-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #fff;
  border-bottom: 2px solid #0d9488;
  padding-bottom: 12px;
  font-size: 1.4rem;
  font-weight: 600;
}

.settings .mcp-info-content h4 {
  color: #0cdbb6;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 600;
}

.settings .mcp-info-content p {
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 15px;
}

.settings .mcp-info-content ul {
  padding-left: 25px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.settings .mcp-info-content li {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
}

.settings .mcp-info-content .highlight {
  color: #0cdbb6;
  font-weight: 600;
}

.settings .mcp-info-content::-webkit-scrollbar {
  width: 8px;
}

.settings .mcp-info-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.settings .mcp-info-content::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}

.settings .mcp-info-content::-webkit-scrollbar-thumb:hover {
  background: #0cdbb6;
}

/* Mobile responsive for MCP section */
@media (max-width: 768px) {
  .settings .preset-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .settings .preset-btn {
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  .settings .mcp-info-content {
    margin: 15px;
    padding: 25px;
    max-height: 90vh;
  }
  
  .settings .mcp-config-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .settings .mcp-config-textarea {
    min-height: 250px;
    font-size: 13px;
  }

  .settings .mcp-section {
    padding: 15px;
  }

  .settings .mcp-config-section {
    padding: 15px;
  }
}

.settings .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.85rem;
}

/* Modal positioning and height management fixes */
.modal-container {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  width: auto !important;
  max-width: 95vw !important;
  z-index: 1001 !important;
}

/* Ensure modal content is scrollable when expanded */
.modal-content {
  max-height: 85vh !important;
  overflow-y: auto !important;
  position: relative !important;
}

/* Add scrollbar styling for modal content */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: #0cdbb6;
}

/* Ensure modal backdrop doesn't interfere with positioning */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999 !important;
}

/* For framer-motion modals, ensure proper centering */
[class*="fixed"][class*="inset-0"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

/* Specific positioning for the settings modal */
.settings .fixed.inset-0 {
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

/* Ensure modal doesn't get too tall */
.settings .relative.w-auto {
  max-height: 90vh !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Make sure modal content scrolls instead of expanding beyond viewport */
@media (max-height: 800px) {
  .modal-container {
    max-height: 85vh !important;
  }
  
  .modal-content {
    max-height: 75vh !important;
  }
  
  .settings .mcp-config-textarea {
    min-height: 200px !important;
    max-height: 250px !important;
  }
}

/* For very small screens */
@media (max-height: 600px) {
  .modal-container {
    max-height: 95vh !important;
    top: 2.5vh !important;
    transform: translateX(-50%) !important;
  }
  
  .modal-content {
    max-height: 90vh !important;
  }
  
  .settings .mcp-config-textarea {
    min-height: 150px !important;
    max-height: 200px !important;
  }
}

/* Framer Motion Modal specific positioning fixes */
.settings [class*="fixed"][class*="inset-0"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

/* Ensure the modal content wrapper has proper constraints */
.settings [class*="relative"][class*="w-auto"] {
  max-height: 90vh !important;
  width: auto !important;
  max-width: min(95vw, 768px) !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Modal content scrollable area */
.settings .modal-content {
  max-height: 70vh !important;
  overflow-y: auto !important;
  flex: 1 !important;
  min-height: 0 !important;
}

/* Prevent the modal from growing too tall */
.settings .bg-gray-900\/95 {
  max-height: 70vh !important;
  overflow-y: auto !important;
}

/* Ensure MCP textarea doesn't make modal too tall */
.settings .modal-content .mcp-config-textarea {
  max-height: 300px !important;
  overflow-y: auto !important;
}
