@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {

  --ui-font-family-headers: "Roboto", sans-serif;
  --ui-font-family: "Roboto", sans-serif;
  --color-alpha: #8B0000;
  /* Red */
  --color-alpha-darken-20: #6B0000;
  /* performance metrics tooltips ui */
  --morale-positive: #10B981;
  --morale-negative: #EF4444;
  --morale-neutral: #F59E0B;
  --mood-energised: #10B981;
  --mood-relaxed: #3B82F6;
  --mood-indifferent: #9CA3AF;
  --mood-uncertain: #F59E0B;
  --mood-anxious: #EF4444;
  --morale-font-weight: 600;

}

.bg-alpha {
  background-color: var(--color-alpha);
}

.ui-box.--sitemetric {
  width: 100%;
  height: 28rem;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  background-color: white;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ui-button.--sitemetric {
  background-color: var(--color-alpha);
  color: white;

  &:hover {
    background-color: var(--color-alpha-darken-20);
  }
}


.ui-button {

  &.--blue-link {
    color: #2563EB;

    &:hover {
      text-decoration: underline;
      color: #1D4ED8;
      background-color: var(--ui-color-grey-100);
    }
  }
}

.ui-sidebar {
  position: relative;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;

  &.--visible {
    transition: opacity 0.3s ease;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    .--overlay {
      visibility: visible;
    }

    .--dialog {
      transform: translateX(0);
    }
  }

  .--overlay {
    background-color: rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .--wrapper-outer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10;
    width: 100vw;
    overflow-y: scroll;
  }

  .--wrapper-inner {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: end;
    padding: 1rem;
    text-align: center;
  }

  .--dialog {
    position: relative;
    overflow: hidden;
    border-radius: var(--ui-modal-border-radius);
    background-color: var(--ui-modal-background-color);
    padding: var(--ui-modal-padding);
    width: 100vw;
    height: calc(100vh - 2rem);
    max-width: 500px;
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(100%);
    text-align: left;
    overflow-y: scroll;

    &.--xs {
      max-width: var(--ui-modal-max-width-xs);
    }

    &.--sm {
      max-width: var(--ui-modal-max-width-sm);
    }

    &.--lg {
      max-width: var(--ui-modal-max-width-lg);
    }

    &.--xl {
      max-width: var(--ui-modal-max-width-xl);
    }

    &.--2xl {
      max-width: var(--ui-modal-max-width-2xl);
    }

    & .--modal-top-section,
    & .--modal-bottom-section {
      display: flex;
      padding: var(--ui-modal-padding);
      margin-left: calc(-1 * var(--ui-modal-padding));
      margin-right: calc(-1 * var(--ui-modal-padding));
      justify-content: space-between;
      align-items: center;
    }

    & .--modal-top-section {
      border-bottom: var(--ui-box-separator-border);
      margin-bottom: var(--ui-modal-padding);
      margin-top: calc(-1 * var(--ui-modal-padding));
    }

    & .--modal-bottom-section {
      border-top: var(--ui-box-separator-border);
      margin-top: var(--ui-modal-padding);
      margin-bottom: calc(-1 * var(--ui-modal-padding));
    }
  }
}

/* for koenig editor */
.koenig-lexical figcaption {
  display: none;
}

[data-testid="alt-toggle-button"] {
  display: none;
}

[data-testid="image-caption-editor"] {
  display: none;
}

.koenig-lexical-caption {
  display: none;
}

/* Preview for edit posts */
/* MS Teams Preview */
.ms-team-header-bg {
  background-color: #444791;
}

.ms-team-nav-bg {
  background-color: #2D2C3B;
}

.workvivo-bg-orange {
  background-color: #FF8800;
}

.post-preview-container {
  height: 500px;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0 1.25rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  min-height: 24rem;
  overflow-y: auto;
}

.sharepoint-preview {
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  margin-bottom: 1rem;

  .sharepoint-preview-header {
    background-color: #F5F5F5;
  }
}

/* Koenig file attachment styling  */
.kg-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background-color: #ffffff;
  margin: 16px 0;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.kg-file-card:hover {
  background-color: #f8f9fa;
  border-color: #d1d5db;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.kg-file-card-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.kg-file-card-contents {
  flex: 1;
  min-width: 0;
}

.kg-file-card-title {
  font-weight: 600;
  font-size: 16px;
  color: #1f2937;
  margin-bottom: 4px;
  line-height: 1.3;
}

.kg-file-card-caption {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 0;
  line-height: 1.4;
}

.kg-file-card-metadata {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #6b7280;
}

.kg-file-card-filename {
  font-weight: 500;
}

.kg-file-card-filesize {
  color: #9ca3af;
}

.kg-file-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin-left: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.kg-file-card:hover .kg-file-card-icon {
  background-color: #e5e7eb;
}

.kg-file-card-icon svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  color: #10b981;
}

.kg-file-card-icon svg path,
.kg-file-card-icon svg circle,
.kg-file-card-icon svg rect {
  stroke-width: 2px;
}

/* Performance Metrics Dashboard Tooltip Styles */


.tooltip-line {
  margin: 2px 0;
  font-size: 14px;
  color: #D1D5DB;
}

/* Morale Score Colors */
.morale-positive {
  color: var(--morale-positive);
  font-weight: var(--morale-font-weight);
}

.morale-negative {
  color: var(--morale-negative);
  font-weight: var(--morale-font-weight);
}

.morale-neutral {
  color: var(--morale-neutral);
  font-weight: var(--morale-font-weight);
}

.mood-energised {
  color: var(--mood-energised);
  font-weight: var(--morale-font-weight);
}

.mood-relaxed {
  color: var(--mood-relaxed);
  font-weight: var(--morale-font-weight);
}

.mood-indifferent {
  color: var(--mood-indifferent);
  font-weight: var(--morale-font-weight);
}

.mood-uncertain {
  color: var(--mood-uncertain);
  font-weight: var(--morale-font-weight);
}

.mood-anxious {
  color: var(--mood-anxious);
  font-weight: var(--morale-font-weight);
}

.baseline-morale-label {
  color: #6B7280;
}

.morale-dashboard-nav {
  min-width: 200px;
  display: flex;
  flex: 1 1 0%;
}

.inset-full {
  top: 100%;
  right: 100%;
  bottom: 100%;
  left: 100%;
}

.-inset-full {
  top: -100%;
  right: -100%;
  bottom: -100%;
  left: -100%;
}

/* automation chart component */
.chart-container {
  width: 520px;
  height: 360px;
  margin: 0 auto;
  padding: 12px;
  background-color: #ffffff;
  box-sizing: border-box;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.dc-body {
  background: #ffffff;
  padding: 12px;
}

.dc-container {
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dc-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 2px;
}

.dc-gauge-content {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.dc-gauge-value {
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.dc-delta {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.dc-positive {
  color: #059669;
}

.dc-negative {
  color: #dc2626;
}

.dc-neutral {
  color: #6b7280;
}

.dc-theme-name {
  font-size: 16px;
  color: #111827;
  margin-bottom: 4px;
  font-weight: 600;
  line-height: 1.2;
}

.dc-progress-container {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 8px;
  margin-bottom: 2px;
  overflow: hidden;
}

.dc-progress-bar {
  height: 100%;
  background-color: #9333ea;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.dc-progress-percentage {
  font-size: 13px;
  color: #4b5563;
}

.dc-list-items {
  list-style: disc;
  list-style-position: inside;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  padding-left: 4px;
}

.dc-list-items li {
  margin-bottom: 2px;
}

.error-message {
  color: #dc2626;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* Automation Mailer Email Styles */
.automation-email-body {
  line-height: 1.6;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.automation-email-container {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 30px;
}

.automation-email-content {
  margin-top: 20px;
}

.automation-email-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 15px 0;
}

.automation-email-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

