body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.02em;
  background-color: #FFFFFF;
}
.summary-content h1 {
font-size: 2rem;
font-weight: bold;
margin-bottom: 1rem;
margin-top: 1.5rem;
word-wrap: break-word; /* Break the word at the end of the line */
overflow-wrap: break-word; /* As a fallback */
}
.summary-content h2 {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.75rem;
margin-top: 1.25rem;
}
.summary-content h3 {
font-size: 1.125rem;
font-weight: 500;
margin-bottom: 0.5rem;
margin-top: 1rem;
}
.summary-content p { 
  margin-bottom: 1rem; 
}

.summary-content ul, .summary-content ol {
  list-style-type: disc;
  margin-bottom: 1rem;
  margin-left: 1rem;
  padding: 2rem;
  padding-top: 0rem;
  padding-bottom: 0rem;
}

.chat-option {
  position: relative;
  text-align: center;
  display: grid;
  grid-template-columns: 10fr 4fr;
  grid-template-areas:
    "title user"
    "date status";
  align-items: center;
  margin-bottom: 10px;
  border-radius: 28px;
  padding: 15px 20px;
  box-sizing: border-box;
  border: solid 1px transparent;
  background-image: linear-gradient(white, white), linear-gradient(90deg, rgba(255, 255, 255, 1) 15%, rgba(10, 102, 195, 1));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  z-index: 0;
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  gap: 10px;
  overflow: hidden;
  transition: background 0.3s ease;
}

.chat-option::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -4px;
  right: -4px;
  bottom: -2px;
  z-index: -1;
  background: linear-gradient(150deg, rgb(10 120 195 / 10%), rgb(10 120 195 / 1%));
  border-radius: 29px;
}

.chat-option:hover {
  background: linear-gradient(109deg, rgba(10, 102, 195, 0.30) 40.85%, rgba(10, 102, 195, 0.10) 104.17%);
}

.summary-title {
  grid-area: title;
  font-size: 1.125rem; /* text-lg */
  font-weight: 600; /* font-semibold */
  color: #1f2937; /* text-gray-800 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.user-info-list {
  grid-area: user;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 0.875rem; /* text-sm */
  color: #4b5563; /* text-gray-600 */
  /* margin-right: 5px; */
}

.user-info-list span {
  /* margin-right: 0.25rem; */ /* mr-1 */
}

.user-info-list img {
  width: 2.2rem; /* w-8 */
  height: 2.2rem; /* h-8 */
  border-radius: 9999px; /* rounded-full */
  object-fit: cover;
  border: 2px solid #3b82f6; /* border-2 border-blue-500 */
  margin-right: 5px;
}

#summaryDate-list {
  grid-area: date;
  font-size: 0.875rem; /* text-sm */
  color: #6b7280; /* text-gray-500 */
  display: flex;
  align-items: center;
  margin-top: 0.25rem; /* mt-1 */
}

#summaryDate-list svg {
  width: 1rem; /* w-4 */
  height: 1rem; /* h-4 */
  margin-right: 0.25rem; /* mr-1 */
}

.status {
grid-area: status;
font-size: 0.75rem;
font-weight: 600;
padding: 0.35rem 0.15rem;
border-radius: 9999px;
display: inline-block;
text-align: center;
}

#loadingIndicator {
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(1px);
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #0075ea1f #fff;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #0075ea1f;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #0075ea3f;
}

.hidden {
  display: none !important;
}

#loadingIndicator.hidden {
display: none;
}

header {
  margin-bottom: 2rem;
}


.tab-button {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: #6B7280;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 16px;
}

.tab-button:hover {
  color: #4B5563;
  background-color: #F3F4F6;
}

.tab-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.tab-button.active {
  color: #0A66C3;
  border-bottom-color: #0A66C3;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0A66C3;
  transform: scaleX(0);
  transition: transform 0.2s ease-in-out;
}

.tab-button.active::after {
  transform: scaleX(1);
}

.tab-button:hover::after {
  transform: scaleX(1);
}

.action-button {position: relative;text-align: center;display: inline-flex;align-items: center;justify-content: center;margin-bottom: 10px;border-radius: 1.25rem;padding: 0.5rem 1rem;box-sizing: border-box;border: solid 1px transparent;background-color: #0A66C3;color: white;background-origin: border-box;background-clip: padding-box, border-box;font-weight: 600;font-size: 0.8rem;cursor: pointer;transition: all 0.3s ease;min-width: 120px;}

.action-button::before {
content: "";
position: absolute;
top: -2px;
left: -4px;
right: -4px;
bottom: -2px;
z-index: -1;
background-color: #0a67c37c;
color: white;
border-radius: 1.25rem;
opacity: 0;
transition: opacity 0.3s ease;
}

.action-button:hover::before {
opacity: 1;
}

#approveBtn.approved {
background-color: #dcfce7;
color: #166534;
cursor: default;
}

#approveBtn.approved:hover {
transform: none;
box-shadow: none;
}

#approveBtn.approved::before {
background-color: #0a67c37c;
color: white;
}

#approveBtn, #addCommentBtn {
min-width: 155px;
}

#commentSection {
margin-top: 1rem;
}

#commentInput {
width: 100%;
padding: 0.5rem;
border: 1px solid #d1d5db;
border-radius: 0.375rem;
margin-bottom: 0.5rem;
}

#submitCommentBtn {
margin-top: 0.5rem;
min-width: 150px;
}
.rating-button {
background-color: #eee;
color: #4B5563;
font-weight: 600;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transition-duration: 200ms;
}

.rating-button:hover {
background-color: #ddd;
}

.rating-button.active {
background-color: #0A66C3;
color: white;
}

@media (max-width: 640px) {
#individualSummary .flex-col > div:first-child {
  width: 100%;
}
#individualSummary .flex-col > div:last-child {
  /* width: 100%; */
  margin-top: 1rem;
}

#addCommentBtn {
margin-left: 0px;
}

.top-bar-content {
flex-direction: column;
align-items: center;
}

.user-info {
  margin-top: 0.5rem;
}

.tab-button {
  width: 50%;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.tab-button.active {
  border-left: 2px solid #0A66C3;
  border-bottom-color: transparent;
}

.tab-button::after {
  display: none;
}

.chat-option {
    grid-template-columns: 1fr;
    grid-template-areas: 
        "title"
        "user"
        "date"
        "status";
    gap: 8px;
}

.user-info-list {
    justify-content: flex-start;
}

.status {
    justify-self: end;
    padding: 0.35em 1em;
}

.summary-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}
}

@media (max-width: 480px) {
.chat-option {
  grid-template-columns: 1fr;
  grid-template-areas: 
      "title"
      "user"
      "date"
      "status";
  gap: 8px;
}

.user-info {
  justify-content: flex-start;
}

.status {
  justify-self: end;
  padding: 0.35em 1em;
}

#addCommentBtn {
margin-left: 0px;
}
}

/* Basic styling for the Google Sign-In button */
.login-with-google-btn {
display: flex;
align-items: center;
justify-content: center;
padding: 12px 16px;
border: none;
border-radius: 5px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
background-color: white;
color: #757575;
font-size: 14px;
font-weight: 500;
font-family: 'Roboto', sans-serif;
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
}

.login-with-google-btn img {
width: 20px;
height: 20px;
margin-right: 12px;
}

.login-with-google-btn:hover {
background-color: #f1f1f1;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-with-google-btn:active {
background-color: #e1e1e1;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-with-google-btn:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3);
}

#allApprovalsList{
  box-shadow: 0 0px 0px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.approval-time-div{
  text-align: right;
  font-size: 0.75rem;
  color: #6b7280;
  align-self: center;
}

.options{/* width: 90vw; */text-align: center;justify-content: space-between;align-items: center;text-align: left;position: relative;/* height: 68px; *//* padding: 19px 58px 19px 39px; */box-sizing: border-box;margin-bottom: 7px;margin-top: 20px;/* margin-left: 15px; *//* margin-right: 15px; */border-radius: 28px;border: 1px solid transparent;background-image: linear-gradient(white, white), linear-gradient(90deg, rgba(255, 255, 255, 1) 15%, rgba(10, 102, 195, 1));background-origin: border-box;background-clip: padding-box, border-box;z-index: 0;font-weight: 500;/* gap: 5px; */}

.options:hover{
background: linear-gradient(109deg, rgba(10, 102, 195, 0.30) 40.85%, rgba(10, 102, 195, 0.10) 104.17%);
cursor: pointer;
}

.options::before{
content: "";
position: absolute;
top: -2px; /* Adjust these values as needed */
left: -4px;
right: -4px;
bottom: -2px;
z-index: -1;
background: linear-gradient(150deg, rgb(10 120 195 / 10%), rgb(10 120 195 / 1%));
/* background-image: linear-gradient(109deg, rgba(10, 102, 195, 0.10) 40.85%, rgba(10, 102, 195, 1) 104.17%); */
border-radius: 29px;
}

.options summary {
  padding-right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;  
}

.options summary::-webkit-details-marker {
  display: none;
}

.options summary::after {
  content: '\25B6';
  transition: transform 0.3s ease;
}

.options[open] summary::after {
  transform: rotate(90deg);
}

details summary {
  padding-right: 2rem;
  display: grid;
  grid-template-columns: 15fr 45fr 1fr;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '\25B6';
  transition: transform 0.3s ease;
}

details[open] summary::after {
  transform: rotate(90deg);
}

#allSummaries{
  margin: 40px 40px;
  margin-top: 0px;
  width: auto;
  min-width: fit-content;
}

#summaries{
  margin-top: 0px;
}

.summary-list {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 16px;
  font-weight: 400;
  /* margin-bottom: 30px; */
  margin: 0px 5px;
  margin-bottom: 30px;
}
.summary-list h2 {
  margin-top: 0;
  color: #2c3e50;
  font-weight: 500;
}
.summary-list ul {
  list-style-type: none;
  padding: 0;
}
.summary-list li {
  margin-top: 15px;
  display: grid;
  grid-template-columns: 1fr 20fr;
  align-items: center;
}
.icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  fill: none;
  stroke: #3498db;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.multi-icon {
  display: flex;
  margin-right: 10px;
}
.multi-icon .icon {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}
.multi-icon .icon:first-child {
  stroke: #2ecc71;
}
.multi-icon .icon:last-child {
  stroke: #9b59b6;
}

summary {
  padding: 20px;
}

@media (max-width: 768px) {

  details summary::after{
    content: '';
  }
  
  details summary{
     display: block;
  }

  details summary #feedbackHeading::after {
    content: '\25B6';
    margin-left: 10px;
    transition: transform 0.3s ease;
  }

  details summary .sectionHeading::after {
    content: '\25B6'; 
    margin-left: 20px;
    transition: transform 0.3s ease;
  }
}


.initial-avatar{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #000048;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  margin-right: 5px;
}

#individualSummary table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

#individualSummary table td,
#individualSummary table th {
  border: 0.5pt solid #e2e8f0;  /* Light gray border */
  padding: 8px;
  text-align: left;
}

#individualSummary table th {
  background-color: #f8fafc;  /* Very light gray background */
  font-weight: 600;
}

li a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.2s;
}

li a:hover {
  color: #1e40af;
}

/* Or if you need to be more specific */
li > a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.2s;
}

/* Add these styles for edit mode */
.summary-content[contenteditable="true"] {
  min-height: 200px;
  outline: none;
  background-color: #fff;
  transition: all 0.3s ease;
}

.summary-content[contenteditable="true"]:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Style for edit and save buttons */
#editContentBtn, #saveContentBtn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  transition: all 0.2s;
}

#editContentBtn:hover, #saveContentBtn:hover {
  transform: translateY(-1px);
}


.summary-tabs {
    display: flex;
    border-bottom: 2px solid #edf2f7;
    margin-bottom: 1.5rem;
    gap: 1rem;  /* Reduced gap for mobile */
    padding: 0.5rem;
    justify-content: space-evenly;  /* Changed from space-evenly */
    overflow-x: auto;  /* Allow horizontal scroll on mobile */
    -webkit-overflow-scrolling: touch;  /* Smooth scroll on iOS */
    scrollbar-width: none;  /* Hide scrollbar Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
}

/* Hide scrollbar for Chrome/Safari */
.summary-tabs::-webkit-scrollbar {
    display: none;
}

.tab-button {
    position: relative;
    padding: 0.75rem 1rem;  /* Reduced padding */
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
    font-size: 0.9rem;  /* Slightly smaller font */
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
    flex-shrink: 0;  /* Prevent tab text from wrapping */
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .summary-tabs {
        gap: 0.5rem;  /* Even smaller gap on mobile */
    }

    .tab-button {
        padding: 0.75rem 0.75rem;  /* Smaller padding */
        font-size: 0.85rem;  /* Smaller font */
    }

    .tab-button .icon {
        width: 16px;  /* Smaller icons */
        height: 16px;
    }

    /* Optional: Show active tab more prominently on mobile */
    .tab-button.active {
        background-color: #f0f7ff;
        border-radius: 6px 6px 0 0;
    }
}

/* Optional: Add scroll indicators for mobile */
@media (max-width: 640px) {
    .summary-tabs::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, #fff);
        pointer-events: none;
        opacity: 0.8;
    }
}

/* Gallery styles */
.image-gallery {
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.gallery-grid img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

/* Modal styles */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.gallery-modal .modal-content {
    max-width: 95%;
    max-height: 95vh;
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Controls */
.close-modal,
.prev-image,
.next-image,
.zoom-in,
.zoom-out {
    background: rgba(0, 0, 0, 0.05);
    color: #1e293b;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.prev-image,
.next-image {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 1.5rem;
}

.prev-image { left: 1.5rem; }
.next-image { right: 1.5rem; }

.zoom-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.zoom-in,
.zoom-out {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.25rem;
}

/* Hover states */
.close-modal:hover,
.prev-image:hover,
.next-image:hover,
.zoom-in:hover,
.zoom-out:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* Empty state */
.gallery-grid:empty::after {
    content: 'No images found in this document';
    display: block;
    text-align: center;
    color: #64748b;
    padding: 3rem;
    grid-column: 1 / -1;
    font-size: 1.1rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

/* Helper text */
.gallery-modal::after {
    content: 'Use Ctrl + Mouse Wheel to zoom, click and drag to pan';
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #475569;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0.9;
    backdrop-filter: blur(5px);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-button .icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.2s ease;
}

/* Adjust icon colors for different states */
.tab-button:hover .icon {
    stroke: #3182ce;
}

.tab-button.active .icon {
    stroke: #2563eb;
}

/* Optional: Add a subtle animation for icon on hover */
.tab-button:hover .icon {
    transform: scale(1.1);
}

/* Add these styles for tab panes */
.tab-pane {
    display: none;  /* Hide all tab panes by default */
}

.tab-pane.active {
    display: block;  /* Show only active tab pane */
    animation: fadeIn 0.3s ease;
}

/* Extension History Container styling */
#extensionHistoryContainer {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    margin-top: 0.5rem;
}

/* Empty state for extension history */
#extensionHistoryContainer:empty::after,
#extensionHistoryContainer > p.text-gray-500 {
    display: block;
    text-align: center;
    color: #64748b;
    padding: 3rem;
    font-size: 1.1rem;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
    margin: 1rem 0;
}

/* Chat Box Container styling */
.chatBox {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
}

/* Scrollbar styling for chat box */
.chatBox {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.chatBox::-webkit-scrollbar {
    width: 6px;
}

.chatBox::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 8px;
}

.chatBox::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 8px;
}

.chatBox::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Base tab pane styles */
.tab-pane {
    display: none;
    width: 100%;  /* Ensure full width */
    min-height: 200px;  /* Minimum height to show content */
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
    .tab-pane {
        padding: 1rem 0.5rem;  /* Add some padding on mobile */
        overflow-x: hidden;  /* Prevent horizontal scroll */
    }

    .tab-pane.active {
        display: block !important;  /* Force display on mobile */
    }

    /* Ensure content containers are properly sized */
    #allCommentsSection,
    #askFollowupSection,
    #extensionHistorySection,
    .image-gallery {
        width: 100%;
        max-width: 100vw;
        margin: 0;
        box-sizing: border-box;
    }

    /* Adjust chat box height for mobile */
    .chatBox {
        min-height: 300px;  /* Smaller minimum height on mobile */
        max-height: 70vh;   /* Relative to viewport height */
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .tab-pane.active {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

.tab-button {
    position: relative;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: 0.01em;
    justify-content: center;
  }
  
  /* Inactive state hover */
  .tab-button:hover {
    color: #3182ce;
    background-color: #f8fafc;
  
  
  
  
  
  }
  
  /* Active state */
  .tab-button.active {
    color: #2563eb;
    font-weight: 600;
  }
  
  /* Active indicator line */
  .tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
    transition: transform 0.2s ease;
  
  }
  
  /* Optional: Add subtle shadow on hover for depth */
  .tab-button:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 6px 6px 0 0;
  }
  
  /* Optional: Add icon space if needed */
  .tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Make the active tab more prominent */
  .tab-pane.active {
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0.8; }
    to { opacity: 1; }
  }

/* Add loading indicator styles */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-with-google-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.login-with-google-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-with-google-btn.loading img {
  opacity: 0.5;
}

#documentSectionsContent img{
  justify-self: center;
}

/* Markdown Content Styling */
.markdown-content {
  line-height: 1.6;
  color: #24292e;
  font-size: 16px;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin-top: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.markdown-content h1 {
  font-size: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-content h2 {
  font-size: 1.5em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eaecef;
}

.markdown-content h3 {
  font-size: 1.25em;
}

.markdown-content code {
  background-color: rgba(27, 31, 35, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 85%;
}

.markdown-content pre {
  background-color: #f6f8fa;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.45;
  margin-bottom: 16px;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  font-size: 100%;
  white-space: pre;
}

.markdown-content blockquote {
  border-left: 4px solid #dfe2e5;
  color: #6a737d;
  margin: 0 0 16px;
  padding: 0 1em;
}

.markdown-content ul,
.markdown-content ol {
  padding-left: 2em;
  margin-bottom: 16px;
}

.markdown-content li + li {
  margin-top: 0.25em;
}

.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}

.markdown-content th,
.markdown-content td {
  border: 1px solid #dfe2e5;
  padding: 6px 13px;
}

.markdown-content th {
  background-color: #f6f8fa;
  font-weight: 600;
}

.markdown-content tr:nth-child(2n) {
  background-color: #f8f9fa;
}

.markdown-content p {
  margin-bottom: 16px;
}

.markdown-content a {
  color: #0366d6;
  text-decoration: none;
}

.markdown-content a:hover {
  text-decoration: underline;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
}

.markdown-content hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}


.summary-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-tabs .tab-button {
  flex: 1 1 calc(50% - 0.5rem);
}