/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  /* Force light theme regardless of Word's theme */
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* Override Office theme colors */
#container {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* ul {
  margin: 0;
  padding: 0;
} */

ul {
  display: block;
  margin-left: 0;
  margin-right: 0;
  padding-left: 18px;
}

:root {
  --font-otto-chatbot: "Aptos", sans-serif;
  --font-app-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji",
  "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";


  /* Spacing */
  --radius-sm:8px;
  --radius-m:10px;
  --radius-l:12px;
  --radius-xl:14px;
  --radius-xxl:16px;
}

html, body, #container, #root {
    font-family: var(--font-app-primary) !important;
}

.MuiTypography-root, 
.MuiTypography-body1, 
.MuiTypography-body2, 
.MuiTypography-caption,
.MuiTypography-h1, .MuiTypography-h2, .MuiTypography-h3, 
.MuiTypography-h4, .MuiTypography-h5, .MuiTypography-h6,
.MuiButton-root,
.MuiListItemText-primary,
.MuiListItemText-secondary,
.MuiInputBase-input,
.MuiTableCell-root,
[class*="MuiTypography"] {
    font-family: var(--font-app-primary) !important;
}
[class^="Mui"], [class*=" Mui"] {
    font-family: var(--font-app-primary) !important;
}
.font-otto {
    font-family: var(--font-otto-chatbot) !important;
}

.font-app {
    font-family: var(--font-app-primary) !important;
}
.MuiOutlinedInput-root,
.MuiOutlinedInput-input,
.MuiInputBase-input::placeholder {
    font-family: var(--font-app-primary) !important;
}

.MuiButton-root,
.MuiTooltip-tooltip {
    font-family: var(--font-app-primary) !important;
}
div[role="dialog"] *, 
.MuiPaper-root * {
    font-family: var(--font-app-primary) !important;
}


.MuiChip-label, 
.MuiChip-root,
.skill-name-section span,
.metadata-chips div {
    font-family: var(--font-app-primary) !important;
}
.MuiChip-labelSmall {
    font-family: var(--font-app-primary) !important;
}
.MuiList-root,
.MuiListItem-root,
.MuiListItemText-root {
  transform: translateZ(0);
  will-change: auto;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ms-welcome__header {
  padding: 20px;
  padding-bottom: 30px;
  padding-top: 100px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  align-items: center;
}

.ms-welcome__main {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex: 1 0 0;
  flex: 1 0 0;
  padding: 10px 20px;
}

.ms-welcome__main > h2 {
  width: 100%;
  text-align: center;
}

.ms-welcome__features {
  list-style-type: none;
  margin-top: 20px;
}

.ms-welcome__features.ms-List .ms-ListItem {
  padding-bottom: 20px;
  display: -webkit-flex;
  display: flex;
}

.ms-welcome__features.ms-List .ms-ListItem > .ms-Icon {
  margin-right: 10px;
}

.ms-welcome__action.ms-Button--hero {
  margin-top: 30px;
}

.ms-Button.ms-Button--hero .ms-Button-label {
  color: #0078d7;
}

.ms-Button.ms-Button--hero:hover .ms-Button-label,
.ms-Button.ms-Button--hero:focus .ms-Button-label {
  color: #005a9e;
  cursor: pointer;
}

.ms-Button.ms-Button--default.msBlack {
  /* background-color: #181918; */
  color: white;
}
.ms-Button.ms-Button--default.msBlack:hover {
  background-color: rgb(0, 0, 0);
}

b {
  font-weight: bold;
}

.primary-button {
  background-color: #146cb8;
  color: white;
}

.primary-button:hover {
  background-color: #0b5596;
  color: white;
}

.primary-button:disabled {
  background-color: #c8c8c8;
  color: #6a6a6a;
}

a[href], input[type='submit'], input[type='image'], label[for], select, button, .pointer {
  cursor: pointer;
}

.pointer:hover {
  cursor: pointer;
  text-decoration: underline;
}

.body-109 {
  height: 100%;
}

.muiLi:hover {
  cursor: pointer;
  background-color: #f5f2f2;
}

.truncate-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.color-box {
  width: 20px;
  height: 20px;
  cursor: pointer;
  border: 1px solid black;
}

.color-box:hover {
  cursor: pointer;
  border: 1px solid orange;
}

.color-picker-box {
  width: 25px;
  height: 25px;
  cursor: pointer;
  border: 1px solid black;
}

.color-picker-box:hover {
  cursor: pointer;
  padding: 1px;
  border: 1px solid orange;
}

.link {
  color: #069;
  cursor: pointer;
}
.link:hover {
  text-decoration: underline;
}

.msgTableContainer {
  overflow-x: auto;
}
.message-table table {
  font-size: 12px;
  font-family: aptos, sans-serif !important;
  border-collapse: collapse;
  width: "100%";
}

.message-table th,
.message-table td {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}
.message-table tr:nth-child(odd) {
  background-color: #ffffff;
}

.message-table tr:nth-child(even) {
  background-color: #f7f7f7;
}

/* HTML: <div class="loader"></div> */
/* .loader {
  width: 1rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #1677ff;
  border-right: 2px solid #1677ff;
  animation: l2 1s infinite linear;
} */

.loader {
  width: 16px; /* Fixed size */
  height: 16px; /* Fixed size */
  border-radius: 50%;
  border: 2px solid #1677ff;
  border-top-color: transparent; /* Makes the spinner effect */
  animation: spin 0.8s linear infinite;
}

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

.loadingBar{
  /* Your loader styles here */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
@keyframes l2 {to{transform: rotate(1turn)}}

h6 {
  font-size: 16px;
}

h5 {
  font-size: 18px;
}


.markdown-table-container {
  overflow-x: auto;
}
.markdown-rendered {
  white-space: normal;
  /* Add more general body styles here if needed */
}

.markdown-rendered p{
  margin : 0;
}

.markdown-rendered pre {
  margin: 0;
  padding: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

.markdown-rendered blockquote {
  margin-inline-start: 20px;
  margin-inline-end: 20px;
}

.markdown-rendered table {
  width: 100%;
  border-collapse: collapse;
}

.markdown-rendered th,
.markdown-rendered td {
  border: 1px solid #ddd;
  padding: 8px;
}

.markdown-rendered th {
  background-color: #f2f2f2;
}

.markdown-rendered .table-container {
  overflow-x: auto;
}

.markdown-rendered pre {
  margin: 0;
}

.markdown-rendered code:has(br),
.markdown-rendered code[class*="language-"],
.markdown-rendered code.block {
  display: block;

  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.5;
  white-space: pre;
}

/* Inline code */
.markdown-rendered code {

  padding: 0.15em 0.8em;
  border-radius: 4px;
  white-space: pre-wrap;
}

.markdown-rendered ul,
.markdown-rendered ol {
  margin-top: 0px;
}

.markdown-rendered h1,
.markdown-rendered h2,
.markdown-rendered h3,
.markdown-rendered h4,
.markdown-rendered h5,
.markdown-rendered h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.markdown-rendered h1 {
  font-size: 1.5rem; /* 32px */
  line-height: 1.75rem;
}
.markdown-rendered h2 {
  font-size: 1.25rem; /* 28px */
  line-height: 1.5rem;
}
.markdown-rendered h3 {
  font-size: 1.25rem; /* 24px */
  line-height: 1.5rem;
}
.markdown-rendered h4 {
  font-size: 1.15rem; /* 20px */
  line-height: 1.5rem;
}
.markdown-rendered h5 {
  font-size: 1.25rem; /* 18px */
  line-height: 1.5rem;
}
.markdown-rendered h6 {
  font-size: 1rem; /* 16px */
  line-height: 1.2rem;
}
.markdown-rendered strong{
  font-weight: 600;
}
.typing-cursor {
  display: inline-block;
  vertical-align: bottom;
  width: 2px;
  height: 1.2em;
  background-color: currentColor;
  animation: blink 0.5s step-end infinite;
  margin-left: 2px;
}

.typing-cursor::after {
  content: "|";
  animation: cursor-blink 0.5s step-end infinite;
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}
.image-viewer {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: 100vh;
}

.image-viewer-2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100vh;
}

.image-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  height: auto;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  background: #333;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.image-toolbar-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: auto;
  min-height: 32px;
  width: auto;
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  background: #333;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.zoom-scale {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  color: #e0e0e0;
  min-width: 48px;
  text-align: center;
  font-weight: 500;
}

.image-stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  user-select: none;
  border: clamp(4px, 1vw, 8px) solid rgb(247, 247, 247);
  box-sizing: border-box;
}

.view-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 80ms ease-out;
  will-change: transform, transform-origin;
  user-select: none;
  pointer-events: none;
  cursor: inherit;
  overflow: auto;
  border-radius: 5px;
}

.sticky-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.no-image,
.error-message {
  color: #757575;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

.error-message {
  color: red;
}

.skeletonImage{
  width: 90vw;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: 5px;
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {

  .image-toolbar,
  .image-toolbar-2 {
    padding: 0.25rem 0.5rem;
    gap: 0.25rem;
  }

  .image-toolbar .MuiButton-root,
  .image-toolbar-2 .MuiButton-root {
    min-width: 32px;
    padding: 4px;
  }

  .zoom-scale {
    min-width: 36px;
    font-size: 0.75rem;
  }

  .image-stage {
    border-width: 4px;
  }
}

@media (min-width: 601px) and (max-width: 960px) {

  .image-toolbar,
  .image-toolbar-2 {
    padding: 0.375rem 0.625rem;
    gap: 0.375rem;
  }

  .image-toolbar .MuiButton-root,
  .image-toolbar-2 .MuiButton-root {
    min-width: 36px;
    padding: 5px;
  }

  .zoom-scale {
    min-width: 40px;
    font-size: 0.8125rem;
  }

  .image-stage {
    border-width: 6px;
  }
}


