/* Add this CSS to your styles.css file */

/* Mobile-specific fixes for centering content */
@media (max-width: 990px) {
  .container-fluid {
    padding: 0 !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center;
  }

  #legendInfoDesktop {
    display: none;
  }

  #legendInfoBtn {
    display: flex;
  }

  #legendContainer {
    display: none;
  }

@media (max-width: 786px) {
  #legendContainer {
    margin-right: 0px !important;
  }
}

  /* Ensure the wrapper is centered */
  .wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  /* Center the tool title */
  .tool-title {
    text-align: center;
    padding: 0 15px;
  }

  /* Fix content wrapper alignment */
  .content-wrapper {
    width: 100%;
    margin: 0 auto;
  }

  /* Ensure content area takes full width on mobile */
  .content-area {
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-blue-500);
    box-shadow: none;
  }

  .custom-textarea {
    border-bottom: none;
  }

  .mode-synonym-header {
    padding: 12px 16px;
  }

  .section-bottom {
    display: none;
  }

  /* Stack columns vertically on mobile and center them */
  .content-row {
    flex-direction: column;
    align-items: center;
  }

  .content-row > div {
    width: 100%;
    max-width: 100%;
    border-left: none !important;
    /* Remove left border on mobile */
  }

  /* Hide sidebar on mobile or ensure it doesn't affect layout */
  .sidebar {
    display: none;
  }

  /* Hide sidebar on mobile or ensure it doesn't affect layout */
  .sidebar {
    display: none;
  }

  .container-fluid {
    padding: 0 !important;
  }

  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    justify-content: center;
  }

  /* Ensure the wrapper is centered */
  .wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  /* Center the tool title */
  .tool-title {
    text-align: center;
    padding: 0 15px;
  }

  /* Fix content wrapper alignment */
  .content-wrapper {
    width: 100%;
    margin: 0 auto;
  }

  /* Ensure content area takes full width on mobile */
  .content-area {
    width: 100%;
    margin: 0 auto;
  }

  /* Stack columns vertically on mobile and center them */
  .content-row {
    flex-direction: column;
    align-items: center;
  }

  .content-row > div {
    width: 100%;
    max-width: 100%;
    border-left: none !important;
    /* Remove left border on mobile */
  }

  /* Hide sidebar on mobile or ensure it doesn't affect layout */
  .sidebar {
    display: none;
  }

  #mode-freeze-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
  }

  .dropdown-container {
    display: none;
  }

  .freeze-mode-container {
    display: flex;
    flex-direction: row;
  }

  #closeFreezeWordDropdown {
    margin-bottom: 4px;
  }

  .freeze-mode-header {
    padding: 4px 10px;
  }

  .freeze-text {
    color: #676767;
    cursor: pointer;
    padding: 10px 0px;
    font-size: 12px;
    font-weight: 700;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 16px;
    border-bottom: 1px solid #eee;
  }
  .modal-header h2 {
    color: var(--Humanize-Tropical-Blue-tropical-blue-900, #595a64);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
  }
  #model-content {
    padding-right: 16px;
    padding-left: 16px;
  }
  #model-content h2 {
    color: var(--color-text-505050);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
  }
  .freeze-bottom-modle-btn {
    padding: 3px 8px;
    justify-content: center;
    display: flex;
    height: 3vh;
    width: 3vh;
    align-self: center;
    align-items: center;
    padding-bottom: 2px;
    margin-right: 10px;

    border-radius: var(--rounded-lg, 8px);
    border: 1px solid var(--Humanize-Grey-grey-50, #f1f1f1);
    background: var(--Humanize-Grey-white, #fff);
  }

  .modal {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99999999;
  }

  .bottom-modal {
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* center horizontally */
    height: 50vh;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 16px;
    border-bottom: 1px solid #eee;
  }

  .modal-header h2 {
    color: var(--Humanize-Tropical-Blue-tropical-blue-900, #595a64);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    /* 24px */
  }

  #modle-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  #modle-content h2 {
    color: var(--color-text-505050);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    /* 24px */
  }
}

/* Alternative approach - if you want to use flexbox */
@media (max-width: 990px) {
  .container-fluid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
  }

  .row {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    /* background-color: var(--color-white) */
  }
}

/* Mobile Language/Mode Toggle Styles */

/* Hide language section on mobile - we'll show it in the mode area */
@media (max-width: 990px) {
  .language-section {
    display: none !important;
  }

  .total-output-sentences {
    display: none;
  }
  .total-output-words {
    display: none;
  }

  /* Hide mode selector on mobile */
  .mode-selector {
    display: none !important;
  }

  /* Show mobile language dropdown in place of mode selector */
  .mobile-language-selector {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    position: relative;
  }

  .mobile-language-dropdown {
    position: relative;
    width: 125px;
  }

  .mobile-language-btn {
    width: 100%;
    padding: 8px 15px;
    background: white;
    /* border: 1px solid #e9ecef; */
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
  }

  .mobile-language-btn:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
  }

  .mobile-language-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
  }

  .mobile-language-btn.active .mobile-language-arrow {
    transform: rotate(180deg);
  }

  .mobile-language-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
  }

  .mobile-language-list.show {
    display: block;
  }

  .mobile-language-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    /* border-bottom: 1px solid #f5f5f5; */
    transition: background-color 0.2s ease;
  }

  .mobile-language-option:hover {
    background-color: #f8f9fa;
  }

  .mobile-language-option:last-child {
    border-bottom: none;
  }

  /* .mobile-language-option.selected {
    background-color: #f0f7ff;
    color: var(--color-primary-light);
    font-weight: 500;
  } */

  /* Adjust synonym range to take remaining space */
  .synonym-range {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
  }

  .synonym-range .range-title {
    font-size: 12px;
    white-space: nowrap;
  }

  .range-slider-container {
    max-width: 120px;
  }

  #mode-freeze-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: var(--color-white);
  }

  .dropdown-container {
    display: none;
  }

  .freeze-mode-container {
    display: flex;
    flex-direction: row;
  }
  #closeFreezeWordDropdown {
    margin-bottom: 4px;
  }
  .freeze-mode-header {
    padding: 4px 10px;
  }
  .freeze-text {
    color: #676767;
    cursor: pointer;
    padding: 10px 0px;
    font-size: 12px;
    font-weight: 700;
  }

  .freeze-bottom-model-btn {
    padding: 3px 8px;
    justify-content: center;
    display: flex;
    height: 3vh;
    width: 3vh;
    align-self: center;
    align-items: center;
    padding-bottom: 2px;
    margin-right: 10px;
    border-radius: var(--rounded-lg, 8px);
    border: 1px solid var(--Humanize-Grey-grey-50, #f1f1f1);
    background: var(--Humanize-Grey-white, #fff);
  }

  .modal {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99999999;
  }
  .synonym-range {
    display: none;
  }
  .bottom-modal {
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto; /* center horizontally */
    height: 50vh;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 16px;
    border-bottom: 1px solid #eee;
  }
  .modal-header h2 {
    color: var(--Humanize-Tropical-Blue-tropical-blue-900, #595a64);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
  }
  #model-content {
    padding-right: 16px;
    padding-left: 16px;
  }
  #model-content h2 {
    color: var(--color-text-505050);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
  }
  .total-output-sentences {
    display: none;
  }

  .total-output-words {
    display: none;
  }

  /* Hide mode selector on mobile */
  .mode-selector {
    display: none !important;
  }

  /* Show mobile language dropdown in place of mode selector */
  .mobile-language-selector {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
    position: relative;
  }

  .mobile-language-dropdown {
    position: relative;
    width: 125px;
  }

  .legend-wrapper {
    /* align-items: start; */
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;

  }

  .legend-row {
    justify-content: center;
  }

  .mobile-language-btn {
    width: 100%;
    padding: 8px 15px;
    background: white;
    /* border: 1px solid #e9ecef; */
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    gap: 4px;
    transition: all 0.2s ease;
  }

  .mobile-language-btn:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
  }

  .mobile-language-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: #666;
  }

  .mobile-language-btn.active .mobile-language-arrow {
    transform: rotate(180deg);
  }

  .mobile-language-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
  }

  .mobile-language-list.show {
    display: block;
  }

  .mobile-language-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    /* border-bottom: 1px solid #f5f5f5; */
    transition: background-color 0.2s ease;
  }

  .mobile-language-option:hover {
    background-color: #f8f9fa;
  }

  .mobile-language-option:last-child {
    border-bottom: none;
  }

  /* .mobile-language-option.selected {
    background-color: #f0f7ff;
    color: var(--color-primary-light);
    font-weight: 500;
  } */

  /* Adjust synonym range to take remaining space */
  .synonym-range {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
  }

  .synonym-range .range-title {
    font-size: 12px;
    white-space: nowrap;
  }

  .range-slider-container {
    max-width: 120px;
  }

  #mode-freeze-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: var(--color-white);
  }

  .dropdown-container {
    display: none;
  }

  .freeze-mode-container {
    display: flex;
    flex-direction: row;
  }

  #closeFreezeWordDropdown {
    margin-bottom: 4px;
  }

  .freeze-mode-header {
    padding: 4px 10px;
  }

  .freeze-text {
    color: #676767;
    cursor: pointer;
    padding: 10px 0px;
    font-size: 12px;
    font-weight: 700;
  }

  .freeze-bottom-modle-btn {
    padding: 3px 8px;
    justify-content: center;
    display: flex;
    height: 3vh;
    width: 3vh;
    align-self: center;
    align-items: center;
    padding-bottom: 2px;
    margin-right: 10px;

    border-radius: var(--rounded-lg, 8px);
    border: 1px solid var(--Humanize-Grey-grey-50, #f1f1f1);
    background: var(--Humanize-Grey-white, #fff);
  }

  .modal {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 99999999;
  }

  .synonym-range {
    display: none;
  }

  .bottom-modal {
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 10px 10px 0 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    /* center horizontally */
    height: 50vh;
  }

  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 16px 16px;
    border-bottom: 1px solid #eee;
  }

  .modal-header h2 {
    color: var(--Humanize-Tropical-Blue-tropical-blue-900, #595a64);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    /* 24px */
  }

  #modle-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  #modle-content h2 {
    color: var(--color-text-505050);
    font-family: Satoshi;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    /* 24px */
  }
}

/* Desktop - keep original behavior */
@media (min-width: 990px) {
  .mobile-language-selector {
    display: none !important;
  }
  #legendInfoDesktop {
    display: none;
  }

  .language-section {
    display: flex !important;
  }

  .mode-selector {
    display: flex !important;
  }
  .freeze-bottom-modle-btn{
    display: none;
  }

  .expand-collape {
    display: none;
  }

  .delete-button-mobile {
    display: none;
  }

  .output-section {
    min-height: 498px;
    border-bottom-left-radius: 12px;
  }

  .fluent-feature {
    display: none;
  }

  .mode-selector-mobile {
    display: none;
  }

  .fluent-feature {
    display: none;
  }
  .mode-selector-mobile {
    display: none;
  }
}

/* Custom scrollbar for mobile language list */
@media (max-width: 990px) {
  .mobile-language-list::-webkit-scrollbar {
    width: 4px;
  }

  .mobile-language-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }

  .mobile-language-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
  }

  .mobile-language-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
}

/* Mobile Output Section Layout Changes */

@media (max-width: 990px) {
  /* Hide paraphrase button from input section on mobile */
  .section-bottom .rephrase-btn {
    display: none !important;
  }

  .output-area.expanded {
    height: 200px;
    padding: 15px 45px 15px 15px;
    overflow-y: scroll !important;
    /* Adjust this value as needed */
  }

  .output-area {
    height: 0;
    overflow: hidden !important;
    padding: 0px;
    transition: height 0.3s ease;
    /* Remove any fixed height you might have */
  }

  .expand-collape svg {
    overflow: visible !important;
  }

  /* Hide humanize button from output section on mobile */
  .humanize-btn {
    display: none !important;
  }

  #upload-file {
    display: none !important;
  }

  #pasteButton {
    display: none !important;
  }

  /* Reorganize input section bottom */
  .section-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    align-items: stretch !important;
  }

  .section-bottom > div:last-child {
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* Style the upload doc to appear below paste text */
  .input-actions-mobile {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
    margin-top: 10px;
  }

  .delete-button {
    display: none;
  }

  .paste-upload-container {
    /* display: flex !important; */
    flex-direction: column !important;
    gap: 8px !important;
    align-items: center !important;
    width: 100% !important;
    position: absolute;
    bottom: 10px;
  }

  #pasteButtonMobile {
    position: static !important;
    transform: none !important;
    width: auto !important;
    margin: 0 !important;
  }

  #pasteButtonMobile .outline-btn {
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  #uploadFileMobile {
    position: static !important;
    cursor: pointer !important;
    padding: 8px 16px !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    background: white !important;
    /* display: flex !important; */
    align-items: center !important;
    gap: 6px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
  }

  .upload-file:hover {
    border-color: #007bff !important;
    background-color: #f8f9fa !important;
  }

  /* Output section modifications */
  .output-section {
    position: relative !important;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
  }

  /* Create mobile paraphrase button container */
  .mobile-paraphrase-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    /* padding: 15px !important; */
    border-bottom: 1px solid #e9ecef !important;
  }

  .mobile-paraphrase-btn {
    background: var(--color-primary-light) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 150px !important;
    justify-content: center !important;
  }

  .mobile-paraphrase-btn:hover {
    transform: translateY(-1px) !important;
  }

  .mobile-paraphrase-btn:hover {
    transform: translateY(-1px) !important;
  }

  .mode-selector-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0px 16px;
  }

  .mode-title {
    flex-shrink: 0;
    /* Prevent the title from shrinking */
    font-weight: bold;
  }

  .mode-options-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    flex-grow: 1;
    /* Take remaining space */
  }

  /* Hide scrollbar for Chrome/Safari */
  .mode-options-container::-webkit-scrollbar {
    display: none;
  }

  .mode-btn {
    flex-shrink: 0;
    /* Prevent buttons from shrinking */
    /* Rest of your button styles */
  }

  .mobile-paraphrase-btn:active {
    transform: translateY(0) !important;
  }

  .mobile-paraphrase-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed !important;
    transform: none !important;
  }

  /* Adjust output area to accommodate button */
  .output-area {
    /* min-height: 200px !important;    */
    margin-top: 0 !important;
    border-top: none;
  }

  /* Modify output bottom section */
  .output-bottom-section {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
    border-top: 1px solid #e9ecef !important;
    background: white !important;
    gap: 2px !important;
    border-bottom-left-radius: 12px; 
    border-bottom-right-radius: 12px; 
  }

  .output-stats {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    font-size: 12px !important;
    color: #757682 !important;
  }

  .output-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  /* Hide up-down arrows on mobile */
  .up-down-output {
    display: none !important;
  }

  /* Adjust copy and download buttons */
  .copy-output,
  .download-output {
    padding: 8px !important;
    cursor: pointer !important;
    border-radius: 4px !important;
    transition: background-color 0.2s ease !important;
  }

  .copy-output:hover,
  .download-output:hover {
    background-color: #f8f9fa !important;
  }

  .rephrase-tooltip {
    display: none;
  }

  /* Word counter adjustments */
  #wordCounter {
    display: none;
  }

  /* Empty state styling for mobile */
  .textarea-container.empty .mobile-paraphrase-container {
    background: #f8f9fa !important;
    opacity: 0.7 !important;
  }

  /* .paste-upload-container {
    display: none !important;
  } */

  /* .wordCounterValue{
  display: none;
} */

  .textarea-container.empty .mobile-paraphrase-btn {
    background: #6c757d !important;
    cursor: not-allowed !important;
  }
}

/* Desktop - keep original layout */
@media (min-width: 990px) {
  .mobile-paraphrase-container {
    display: none !important;
  }

  .section-dot {
    display: flex;
    gap:10px;
    align-items: center;
  }

  .custom-textarea,
.output-area {
  min-height: 500px;
  transition: height 0.3s ease;
  /* overflow-y: auto; */
}

  .input-actions-mobile {
    display: none !important;
  }

  /* .wordCounterValueMobile{
    display: none;
  } */

  .expand-collape-input {
    display: none;
  }

  .custom-textarea {
    min-height: 500px;
    padding: 15px 45px 15px 15px;
    outline: none; /* Remove focus outline */
    white-space: pre-wrap; /* Preserve line breaks */
    overflow: scroll;
  }

  /* .paste-upload-container {
    display: none !important;
  } */

  /* Ensure original buttons show on desktop */
  .section-bottom .rephrase-btn {
    display: flex !important;
  }

  .humanize-btn {
    display: flex !important;
  }
}

/* Additional mobile refinements */
@media (max-width: 990px) {
  /* Adjust content row spacing */
  .content-row > div:first-child {
    margin-bottom: 0 !important;
  }

  .custom-textarea.expanded {
  height: 200px !important;
  padding: 15px 45px 15px 15px;
}

  .content-row > div:last-child {
    border-top: 1px solid #e9ecef !important;
    margin-top: 0 !important;
  }

  .custom-textarea {
    height: 0px;
    padding: 0px;
  }

  /* Improve textarea container on mobile */
  .textarea-container {
    /* margin-bottom: 10px !important; */
    /* height: 200px; */
    overflow-y: auto;
    /* padding: 15px 45px 15px 15px; */
  }

  /* Loading indicator adjustments */
  .loading-indicator {
    padding: 20px !important;
    text-align: center !important;
    font-size: 14px !important;
  }

  .main-container {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0px;
  }

  .main-container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important ;
  }

  .main-container {
    max-width: 100% !important;
    /* padding-left: 15px !important;
    padding-right: 15px !important; */
    min-height: 50vh;
    height: auto;
    margin-top: 100px;
    overflow-x: hidden;
    /* background-color: var(--color-white); */
  }

  .response-panel-header h3,   .response-info-panel-content span{
    padding-left: 10px;
  }
  .range-slider{
    margin: 10px;
  }
}