:root {
  --sidebar-width: 80px;
  --header-height: 60px;
  --footer-height: 48px;
  --sidebar-gradient-start: #2BB5FF;
  --sidebar-gradient-end: #0043CE;
  --accent: #ff8a00;
  --text-main: #222222;
  --text-muted: #777777;
  --border-subtle: #e5e5e5;
  --page-bg: #ffffff;
  --video-bg: #2a2a2a;
  --avatar-border: #88e1ff;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,sans-serif;
  --text: #1f2a37;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
  --blue: #2196f3;
  --primaryTextColor:#1F66F7;
  --secondaryTextColor:#ff8a00;
  --color-error: #E20804;
  --color-success: #00980F;
}

.docx-color-467886 {
  color: #467886;
}

.docx-color-1f487c {
  color: #1F487C;
}

.docx-color-0e2841 {
  color: #0E2841;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--page-bg);
}

.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 420px;
}

/* ---- Login Page ----*/
a.regLink {
    text-decoration: none;
    font-size: small;
    color: #1F66F7;
}

a.regLink:hover {
    text-decoration: underline;
    font-size: small;
    color: var(--secondaryTextColor);
}

.loginButton {
    background: #1396ea;
    border: none;
    color: #fff;
    padding: 5px 10px 5px 10px;
    width: 150px;
    cursor: pointer;
    box-shadow: 2px 2px 4px #cccccc;
    border-radius: 2px
}

.loginButton:hover {
    background: var(--secondaryTextColor);
}

/* Login page styles */
.login-page-wrapper {
    display: flex;
}

.loginContainer {
    margin-top: 250px;
    display: flex;
    flex-direction: column;
}

.login-welcome-text {
    font-size: 1.5rem;
    color: #1F66F7;
    white-space: nowrap;
}

.login-button-wrapper {
    margin-top: calc(1vh);
    margin-bottom: calc(1vh);
}

.login-spacer {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
}

/* ---- Layout shell ---- */

.app-root {
  min-height: 100vh;
  /*background: var(--page-bg);*/
}

/* main-column is everything to the right of the sidebar */
.main-column {
  /* margin-left: var(--sidebar-width); */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-content-wrapper,
.upload-page,
.credentials-page{
  flex: 1;
  overflow: auto;
  min-height: 0;
  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);
  margin-left: var(--sidebar-width);
}

/* ---- Sidebar ---- */

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  /* height: 100vh; */
  height: calc(100vh - var(--header-height) - var(--footer-height));
  background: linear-gradient(
    to bottom,
    var(--sidebar-gradient-start),
    var(--sidebar-gradient-end)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  /* padding: 8px 0; */
  z-index: 10;
}

.sidebar-logo {
  margin: 16px 0 16px;
}

.sidebar-logo img {
  display: block;
  width: 45px;
  height: auto;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  /* margin: 16px 0 0; */
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sidebar-nav-item {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
  border-left: 5px solid transparent;
}

.sidebar-nav-item a img {
  width: 18px;
  height: 18px;
}

.sidebar-nav-item a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-item:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.sidebar-nav-item.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
  border-left: 5px solid #FFF;
}

/* ---- line between nav items ---- */
.sidebar-nav-item + .sidebar-nav-item::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* ---- Top bar ---- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
  gap: 16px;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ibm-mark img {
  display: block;
  height: 18px;
  width: auto;
}

.app-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.app-lock {
  width: 20px;
  height: 20px;
}

.app-lock img {
  width: 100%;
  height: 100%;
}

.app-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 16px;
  color: var(--text-muted);
  white-space: nowrap;
}

.user-separator {
  display: inline-block;
  margin: 0 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar img {
  width: 40px;
  height: 40px;
}

.user-name .signout-link {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: 500;
}

.user-name .signout-link:hover {
  color: var(--blue) !important;
  text-decoration: none;
}

.user-name .signout-link:visited,
.user-name .signout-link:active {
  color: inherit;
  text-decoration: none;
}

.user-name .signout-link {
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.user-name .signout-link:hover {
  opacity: 1;
}

.signout-link.is-logging-out {
  pointer-events: none;
  opacity: 0.7;
}

/* ---- Bottom bar ---- */

.bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #262626;
  gap: 16px;
  z-index: 20;
}

.bottombar-left {
  margin-left: var(--sidebar-width);
  display: flex;
  align-items: center;
  gap: 32px;
}

.bottombar-left-item {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.16px;
  color: #fff;
}

.bottombar-left-item,
.bottombar-left-item:visited {
  color: #c6c6c6;
  text-decoration: none;
}

.bottombar-left-item:hover,
.bottombar-left-item:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Main content area ---- */

.main-content-wrapper {
  flex: 1;
  overflow: auto;
  margin-left: var(--sidebar-width);
}

.main-content-wrapper.home {
  display: grid;
  grid-template-columns: minmax(0, 1024px) minmax(0, 420px);
  grid-template-rows: 500px auto;
  grid-template-areas:
    "video features"
    "desc  .";
  column-gap: clamp(32px, 10vw, 180px);
  row-gap: 18px;
  align-items: start;
  position: relative;
  padding: clamp(24px, 6vw, 48px) clamp(16px, 6vw, 64px) 64px;
  box-sizing: border-box;
}

.video-content-container {
  grid-area: video;
  height: 100%;
  min-height: 0;
  display: block;
}


.section-title {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Video card */
.video-card {
  background: var(--video-bg);
  border-radius: 10px;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
    box-shadow: inset 0 0 5px 4px #cccccc;
  background: url(../images/index_First_Frame.png);
}

.video-card > .video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: clamp(48px, 10vw, 64px);
  height: clamp(48px, 10vw, 64px);
  border-radius: 50%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button::before {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #ffffff;
  margin-left: 3px;
}

.section-description {
  grid-area: desc;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
  margin: 0;
  line-height: 1.55;
}

.feature-container {
  grid-area: features;
  height: 100%;
}

.feature-section {
  display: grid;
  gap: 44px;
  height: 100%;
}

.feature-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.feature-icon--gear {
  background-image: url(/public/images/icon-setting-feature.svg);
}

.feature-icon--credentials {
  background-image: url(/public/images/icon-credentials-feature.svg);
}

.feature-icon--upload {
  background-image: url(/public/images/icon-upload-feature.svg);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff8a00;
  line-height: 1.2;
  margin-top: 2px;
}

.feature-desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.35;
  color: #7a7f88;
}

.home-watermark {
  position: absolute;
  right: 36px;
  bottom: 24px;
  width: 260px;
  height: 260px;
  opacity: 50%;
  background: url(/public/images/icon-lock-watermark.svg) no-repeat;
  background-size: contain;
  background-position: right bottom;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1200px) {
  .main-content-wrapper.home {
    grid-template-columns: 1fr minmax(0, 380px);
    column-gap: 48px;
    grid-template-rows: 460px auto;
  }
}

@media (max-width: 1024px) {
  .main-content-wrapper.home {
    grid-template-columns: 1fr;
    grid-template-rows: 380px auto auto;
    grid-template-areas:
      "video"
      "desc"
      "features";
    row-gap: 18px;
    column-gap: 0;
  }

  .video-content-container {
    height: 100%;
  }

  .feature-container {
    height: auto;
  }

  .feature-section {
    height: auto;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .main-content-wrapper.home {
    grid-template-rows: 300px auto auto;
    padding: 20px 16px 48px;
  }

  .feature-item {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-desc {
    font-size: 13px;
  }
}


/* -----------Load Spinner---------- */
.loader {
  background: url(/public/images/loader.svg) no-repeat;
  background-size: 45px;
  background-position: center;
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.loaderMedium {
  background: url(/public/images/loader.svg) no-repeat;
  background-size: 45px;
  background-position: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.pageLoader {
  padding: 40px 0;
}

/* ---- Responsiveness (without moving sidebar) ---- */

@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
  }

  .app-subtitle {
    display: none;
  }

  .video-content-container {
    padding-inline: 20px;
  }
}

/* On very small screens, shrink sidebar width a bit to free content space */
@media (max-width: 600px) {
  :root {
    --sidebar-width: 52px;
  }

  .sidebar-logo img {
    width: 26px;
  }

  .sidebar-nav-item {
    width: 32px;
    height: 32px;
  }

  .sidebar-nav-item img {
    width: 16px;
    height: 16px;
  }

  .topbar {
    padding: 0 12px;
    min-height: 52px;
  }

  .user-name {
    display: none;
  }

  .section-description {
    margin-top: 24px;
  }
}

@media (max-width: 400px) {
  .app-name {
    font-size: 13px;
  }
}

/* Main upload page wrapper (sits inside .main-column) */
.upload-page {
  padding: 32px 56px 24px;
  box-sizing: border-box;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  /* gap: 24px; */
}

/* Header row container */
.upload-header-row,
.credentials-header-row {
  margin-bottom: 24px;
}

/* Row that holds the two filters */
.upload-filters, .credentials-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

/* Each select container */
.upload-filter, .credentials-filter {
  position: relative;
}

/* Pill-style select */
.case-select {
  min-width: 360px;
  padding: 10px 40px 10px 20px;
  border-radius: 999px;
  border: 1px solid #e2e7f0;
  background-color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  color: #2196f3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  outline: none;
  cursor: pointer;

  /* Remove default arrows */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Hover / focus states */
.case-select:hover {
  border-color: #c8d2e6;
}

.case-select:focus {
  border-color: #0f62fe;
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.16);
}

/* force autofill to match */
.case-select:-webkit-autofill,
.case-select:-webkit-autofill:hover,
.case-select:-webkit-autofill:focus,
.case-select:-webkit-autofill:active {
  -webkit-text-fill-color: #2196f3 !important;
  caret-color: #2196f3 !important;

  /* force white background even when browser paints autofill */
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;

  /* keep your default border + shadow */
  border: 1px solid #e2e7f0 !important;
  border-radius: 999px;
}

/* Keep hover style even when autofilled  */
.case-select:-webkit-autofill:hover {
  border-color: #c8d2e6 !important;
}

/* Keep focus style even when autofilled */
.case-select:-webkit-autofill:focus {
  border-color: #0f62fe !important;
  box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.16),
              0 0 0 1000px #ffffff inset !important;
}

/* prevents Chrome’s delayed autofill bg flash */
.case-select:-webkit-autofill {
  transition: background-color 999999s ease-out 0s;
}

.case-input-wrap{
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 520px;
}

.case-input-wrap .case-select{
  width: 100%;
  padding-right: 42px;
}

.case-input-status{
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.case-input-wrap.is-validating .case-input-status,
.case-input-wrap.is-ok .case-input-status,
.case-input-wrap.is-error .case-input-status{
  opacity: 1;
}

.case-input-wrap.is-validating .case-input-status{
  background-image: url("/public/images/loader.svg");
  animation: none;
}

.case-input-wrap.is-ok .case-input-status{
  background-image: url("/public/images/icon-success-circle.svg");
  animation: none;
}

.case-input-wrap.is-error .case-input-status{
  background-image: url("/public/images/icon-error-circle.svg");
  animation: none;
}

/* Adding broder colors on validation */
.case-input-wrap.is-ok .case-select{
  color: var(--color-success); 
  border-color: var(--color-success); 
}

.case-input-wrap.is-error .case-select{
  color: var(--color-error); 
  border-color: var(--color-error); 
}

/* keep hover consistent while in a state */
.case-input-wrap.is-ok .case-select:hover{
  border-color: var(--color-success); 
}
.case-input-wrap.is-error .case-select:hover{
  border-color: var(--color-error);
}

/* focus ring color also changes when in a state */
.case-input-wrap.is-ok .case-select:focus{
  border-color: var(--color-success); 
  box-shadow: 0 0 0 2px rgba(21, 128, 61, 0.18);
}
.case-input-wrap.is-error .case-select:focus{
  border-color: var(--color-error);
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.18);
}

/* ---------- Autofill overrides for states ---------- */
.case-input-wrap.is-ok .case-select:-webkit-autofill,
.case-input-wrap.is-ok .case-select:-webkit-autofill:hover,
.case-input-wrap.is-ok .case-select:-webkit-autofill:focus,
.case-input-wrap.is-ok .case-select:-webkit-autofill:active{
  -webkit-text-fill-color: var(--color-success) !important;
  caret-color: var(--color-success) !important;
  border-color: var(--color-success) !important;
}

.case-input-wrap.is-error .case-select:-webkit-autofill,
.case-input-wrap.is-error .case-select:-webkit-autofill:hover,
.case-input-wrap.is-error .case-select:-webkit-autofill:focus,
.case-input-wrap.is-error .case-select:-webkit-autofill:active{
  -webkit-text-fill-color: var(--color-error) !important;
  caret-color: var(--color-error) !important; 
  border-color: var(--color-error) !important;
}

/* Mobile / narrow screens */
@media (max-width: 768px) {
  .upload-page {
    padding: 24px 16px;
  }

  .case-select {
    min-width: 100%;
  }
}

/* simple utility to hide */
.hideDisplay {
  display: none !important;
}

/* main upload layout (HTTPS body area) */
.upload-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

/* dropzone */
.upload-dropzone {
  flex: 1 1 auto;
  min-height: 460px;
  border-radius: 8px;
  border: 2px dashed #d4dbe8;
  background-color: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.upload-dropzone-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 157, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.upload-dropzone-icon-circle span {
  font-size: 22px;
  color: #0f9dff;
}

.upload-dropzone-icon{
  width: 20px;
  height: 20px;
  background: url("/public/images/icon-upload.svg") no-repeat center;
  background-size: contain;
}

.upload-dropzone-text {
  font-size: 13px;
  color: #6b7280;
}

.upload-dropzone-link {
  color: #0f9dff;
  font-weight: 500;
  text-decoration: none;
}

.upload-dropzone-link:hover {
  text-decoration: underline;
}

#upload-dropzone.hover {
  border-color: #0f9dff;
  background-color: rgba(15, 157, 255, 0.06);
  transform: translateY(-1px);
}

.upload-dropzone.is-disabled{
  cursor: not-allowed;
  opacity: 1;
  border-color: #e5e7eb;
  background-color: #f3f4f6;
  box-shadow: none;
  transform: none;
  filter: grayscale(1);
}

.upload-dropzone.is-disabled .upload-dropzone-link{
  color: #9ca3af;
  pointer-events: none;
  text-decoration: none;
}

.upload-dropzone.is-disabled .upload-dropzone-icon-circle{
  background: rgba(107,114,128,0.10);
}

.upload-dropzone.is-disabled .upload-dropzone-icon{
  opacity: 0.55;
}

#upload-dropzone.is-disabled.hover{
  border-color: #e5e7eb;
  background-color: #f3f4f6;
  transform: none;
}

.upload-dropzone.is-disabled .upload-dropzone-link:hover{
  text-decoration: none;
}


/* right side: file summary */
.upload-summary {
  width: 435px;
  display: flex;
  flex-direction: column;
  gap: 12px;

  max-height: calc(100vh - 235px);
  overflow-y: auto;

  padding-right: 15px;
  overscroll-behavior: contain
}

.upload-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.upload-wait-loader{
  display: none;
  width: 18px;
  height: 18px;
  background: url(/public/images/loader.svg) no-repeat center;
  background-size: 18px;
}

.upload-card[data-state="finalizing"] .upload-cancel-btn{
  display: none;
}

.upload-card[data-state="finalizing"] .upload-wait-loader{
  display: inline-block;
}

.upload-card-left {
  flex: 0 0 auto;
}

.upload-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: rgba(15, 157, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-icon {
  width: 18px;
  height: 18px;
  background: url("/public/images/icon-upload.svg") no-repeat center;
  background-size: contain;
}

.upload-card-right {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-row--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upload-filename {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.upload-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #D9D9D9;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  border-radius: inherit;
  transition: width 220ms ease;
  width: var(--progress-width, 0%);
}

.upload-row--bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.upload-case{
  color: #6b7280;
}

.upload-subtext {
  font-size: 11px;
  color: #6b7280;
}

.upload-pct {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  flex: 0 0 auto;
}

.upload-cancel-btn {
  width: 18px;
  height: 18px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 999px;
  position: relative;
}

.upload-cancel-btn:hover {
  opacity: 1;
  background: rgba(17, 24, 39, 0.06);
}

.upload-cancel-btn::before,
.upload-cancel-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: #6b7280;
  transform-origin: center;
  border-radius: 2px;
}

.upload-cancel-btn::before { transform: translate(-50%, -50%) rotate(45deg); }
.upload-cancel-btn::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.upload-status-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

/* IN PROGRESS */
.upload-card--in-progress .upload-progress-bar { background: #0f9dff; }
.upload-card--in-progress .upload-status-icon { display: none; }

/* SUCCESS */
.upload-card--success .upload-progress { background: #D9D9D9; }
.upload-card--success .upload-progress-bar { background: #00980f; width: 100% !important; }
.upload-card--success .upload-status-icon {
  display: inline-block;
  background-image: url("/public/images/icon-success-circle.svg");
}
.upload-card--success .upload-cancel-btn { display: none; }

/* ERROR */
.upload-card--error .upload-progress { background: #D9D9D9; }
.upload-card--error .upload-progress-bar { background: #ef4444;}
.upload-card--error .upload-status-icon {
  display: inline-block;
  background-image: url("/public/images/icon-error-circle.svg");
}
.upload-card--error .upload-cancel-btn { display: none; }


/* responsive tweaks */
@media (max-width: 1024px) {
  .upload-layout {
    flex-direction: column;
  }

  .upload-summary {
    width: 100%;
  }
}

/* CREDENTIALS PAGE */
.credentials-page {
  background: var(--page-bg);
  padding: 22px 56px 24px;
  box-sizing: border-box;
}

.credentials-top, .upload-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 12px;
}

.upload-top{
    padding: 5px 0 17px !important;
}

.credentials-title, .upload-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

.credentials-search {
  position: relative;
  width: min(420px, 45vw);
}

.credentials-searchIcon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: #9aa4b2;
  pointer-events: none;
}

.credentials-searchInput{
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 0 12px 0 38px;
  font-size: 12px;
  color: var(--text);
  outline: none;
}

.credentials-searchInput::placeholder{
  color: #98a2b3;
}

.credentials-divider{
  height: 1px;
  background: var(--line);
  margin: 0 0 18px;
}

.upload-divider {
  height: 0.5px;
  background: var(--line);
  margin: 0 0 18px;
}


/* No Credentials message */
.noCredentials{
  background: #ffe4a6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
  max-width: 820px;
  margin: 18px auto;
}

.noCredentials-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.45);
  background: rgba(255,255,255,0.35);
  flex: 0 0 auto;
  position: relative;
  margin-top: 2px;
}

.noCredentials-icon::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background-color: rgba(15, 23, 42, 0.45);
  -webkit-mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
          mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
}

.noCredential-text{
  flex: 1 1 auto;
  min-width: 0;
}

.noCredentials h3{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.1px;
}

.noCredentials p{
  margin: 6px 0 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7280;
}

/* Responsive: stack nicely on small screens */
@media (max-width: 640px){
  .noCredentials{
    flex-direction: column;
    align-items: stretch;
  }
  .noCredentials__actions{
    margin-left: 0;
    justify-content: flex-start;
  }
}


/* Card grid */
.cardGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 360px));
  gap: 18px;
  align-items: start;
}

/* Card */
.credCard{
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.credCard-accent{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent);
}

.credCard-header{
  padding: 14px 16px 10px 18px;
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  cursor: default;
}

.credCard-id{
  font-size: 13px;
  font-weight: 700;
  color: #f97316;
  text-decoration: none;
}

.credCard-id:hover{
  text-decoration: underline;
}

.credCard-list{
  margin: 0;
  padding: 10px 16px 6px 18px;
}

.credRow{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 0;
  font-size: 12px;
  color: var(--text);
}

.credRow dt{
  color: #6b7280;
}

.credRow dd{
  margin: 0;
  display: flex;
  align-items: center;
  /* gap: 10px; */
  color: #374151;
}

.muted{
  color: #98a2b3;
}

.iconBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.iconBtn svg{
  width: 16px;
  height: 16px;
  fill: #9aa4b2;
}

.iconBtn:hover{
  background: rgba(15, 23, 42, 0.06);
}

.icon{
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.9;
}

.icon-copy{
  background-image: url("/public/images/icon-copy.svg");
  filter: brightness(0) saturate(100%) invert(58%) sepia(34%) saturate(5799%) hue-rotate(351deg) brightness(99%) contrast(97%);
}

.icon-eye{
  background-image: url("/public/images/icon-visible.svg");
}

.passwordToggle.is-visible .icon-eye {
  background-image: url("/public/images/icon-hidden.svg");
}

.credCard-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 16px 14px 18px;
}

.credCard-expires{
  font-size: 11px;
  color: #7b8794;
}

.btnPrimary{
  height: 26px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29, 161, 242, 0.25);
}

.btnPrimary:hover{
  background: #1396ea;
}

.btnGenerateCred{
  min-width: 180px;
  height: 40px;
  padding: 0;
}

.btnLoading {
  position: relative;
  color: transparent;
  cursor: not-allowed;
  pointer-events: none
}

/* loader overlay */
.btnLoading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 26px;
  height: 26px;
  background-color: #fff;
  -webkit-mask: url(/public/images/loader.svg) no-repeat center / contain;
  mask: url(/public/images/loader.svg) no-repeat center / contain;
}

/* Responsive */
@media (max-width: 900px){
  .cardGrid{
    grid-template-columns: 1fr;
  }
  .credentials-search{
    width: min(360px, 52vw);
  }
}

@media (max-width: 560px){
  .credentials-top{
    flex-direction: column;
    align-items: flex-start;
  }
  .credentials-search{
    width: 100%;
  }
  .credRow{
    grid-template-columns: 110px 1fr;
  }
}

/* NOTIFICATIONS */
.notification{
  width: min(620px, 100%);
  padding: 16px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 220ms ease, opacity 220ms ease;
  font-family: inherit;
}

.notification.show{
  opacity: 1;
  transform: translateX(0);
}
.notification.hide{
  opacity: 0;
  transform: translateX(16px);
}

.notification.success{ background: #b4ffb9; } /* light green option #bbf7d0 */
.notification.info{ background: #90cdff; } /* light blue option #bae6fd */
.notification.warning{ background: #ffe4a6; } /* light amber option #fde68a */
.notification.error{ background: #ffa6a6; } /* light red option #fecaca  */

.notificationIconWrap{
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(15, 23, 42, 0.45);
  background: rgba(255,255,255,0.35);
}

.notificationIcon{
  width: 16px;
  height: 16px;
  background-color: rgba(15, 23, 42, 0.75);
  -webkit-mask: none;
  mask: none;
}

.notificationIcon.success{
  -webkit-mask: url("/public/images/icon-alert-success.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-success.svg") no-repeat center / contain;
}
.notificationIcon.info{
  -webkit-mask: url("/public/images/icon-alert-info.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-info.svg") no-repeat center / contain;
}
.notificationIcon.warning{
  -webkit-mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
}
.notificationIcon.error{
  -webkit-mask: url("/public/images/icon-alert-error.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-error.svg") no-repeat center / contain;
}

.notificationText{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notificationTitle{
  font-weight: 700;
  font-size: 18px;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.1;
}

.notificationBody{
  font-size: 14px;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.25;
}

.notificationBody, .notificationTitle{
  overflow-wrap: anywhere;
}

/* Close button */
.notificationClose{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 0;
}

.notificationClose:hover{
  color: rgba(15, 23, 42, 0.85);
  background: rgba(255,255,255,0.35);
}

.notification-password-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.notification-password-label{
  white-space: nowrap;
}

.notification-password-value{
  word-break: break-all;
}

.notification-copy-btn{
  padding: 0;
  margin-left: 2px;
  flex: 0 0 auto;
}


/* Overlay */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35); /* subtle dim */
  display: none;                      /* hidden by default */
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.modalOverlay.is-open{
  display: flex;
}

/* Modal box */
.modal{
  width: min(780px, 92vw);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  overflow: hidden;
}

/* Header */
.modal-header{
  position: relative;
  padding: 14px 18px 10px;
}

.modal-close{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  color: #9aa4b2;
  cursor: pointer;
}

.modal-close:hover{
  background: rgba(15, 23, 42, 0.06);
  color: #6b7280;
}

.modal-title{
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #f97316; /* orange title like screenshot */
}

/* Divider line */
.modal-divider{
  height: 1px;
  background: #e5e7eb;
}

/* Body */
.modal-body{
  padding: 18px 18px 22px;
  text-align: center;
}

.modal-message{
  margin: 6px 0 18px;
  font-size: 12px;
  color: #6b7280;
}

/* Actions */
.modal-actions{
  display: flex;
  justify-content: center;
  gap: 10px;
}

#resetSftpModal[data-busy="1"] .modal-close,
#resetSftpModal[data-busy="1"] .close-reset-modal {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* Secondary button */
.btnSecondary{
  height: 26px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btnSecondary:hover{
  background: #f3f4f6;
}


/* ========================================
   FAQ Page Styles
   ======================================== */

/* FAQ Page Container */
.faq-page {
  padding: 32px 56px 24px;
  box-sizing: border-box;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);
  margin-left: var(--sidebar-width);
}

/* FAQ Page Header */
.faq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.faq-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

.faq-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 32px;
}

/* Two-Column Layout */
.faq-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

/* Left Column: Navigation */
.faq-nav {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  background: #f9fafb;
  border-radius: 8px;
  padding: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faq-nav-item {
  margin: 0;
  padding: 0;
}

.faq-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  color: var(--blue);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  position: relative;
}

.faq-nav-link:hover {
  background-color: rgba(33, 150, 243, 0.08);
  color: #1976d2;
}

.faq-nav-link.is-active {
  background-color: rgba(33, 150, 243, 0.12);
  color: #1565c0;
  font-weight: 600;
}

/* Category Links with Chevron */
.faq-nav-link--category {
  border-bottom: 1px solid rgba(33, 150, 243, 0.2);
}

.faq-chevron {
  width: 16px;
  height: 16px;
  display: inline-block;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-chevron::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.faq-nav-item--expandable.is-expanded .faq-chevron {
  transform: rotate(180deg);
}

/* Submenu */
.faq-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  transition: max-height 0.3s ease-out;
}

.faq-nav-item--expandable.is-expanded .faq-submenu {
  max-height: 1000px;
  transition: max-height 0.3s ease-in;
}

.faq-submenu-item {
  margin: 0;
  padding: 0;
}

.faq-submenu-link {
  display: block;
  padding: 10px 24px 10px 48px;
  color: #5a9fd4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.faq-submenu-link:hover {
  background-color: rgba(33, 150, 243, 0.05);
  color: var(--blue);
}

.faq-submenu-link.is-active {
  background-color: rgba(33, 150, 243, 0.1);
  color: #1565c0;
  font-weight: 500;
}

/* Right Column: Content Area */
.faq-content {
  background: #ffffff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 500px;
}

.faq-content-inner {
  max-width: 900px;
}

/* Content Loader */
.faq-content-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

/* Content Error State */
.faq-content-error {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.faq-content-error h3 {
  color: var(--color-error);
  font-size: 20px;
  margin-bottom: 12px;
}

.faq-content-error p {
  font-size: 15px;
  margin: 8px 0;
}

.faq-error-details {
  font-family: monospace;
  font-size: 13px;
  color: var(--muted);
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 16px;
}

/* FAQ Article Content Styles */
.faq-article {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-article-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--blue);
}

.faq-article-content {
  color: var(--text-main);
  line-height: 1.7;
}

.faq-article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 32px 0 16px 0;
}

.faq-article-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin: 24px 0 12px 0;
}

.faq-article-content p {
  margin: 0 0 16px 0;
  font-size: 15px;
}

.faq-article-content ul,
.faq-article-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.faq-article-content li {
  margin-bottom: 8px;
  font-size: 15px;
}

.faq-article-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #d63384;
}

.faq-article-content pre {
  background: #f5f5f5;
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 16px 0;
}

.faq-article-content pre code {
  background: none;
  padding: 0;
  color: var(--text-main);
}

.faq-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 16px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-article-content a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.faq-article-content a:hover {
  border-bottom-color: var(--blue);
}

.faq-article-content em {
  color: var(--muted);
  font-style: italic;
}

.faq-article-content strong {
  font-weight: 600;
  color: var(--text-main);
}

.faq-article-content blockquote {
  border-left: 4px solid var(--blue);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--muted);
  font-style: italic;
}

.faq-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.faq-article-content th,
.faq-article-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.faq-article-content th {
  background: #f9fafb;
  font-weight: 600;
  color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .faq-layout {
    grid-template-columns: 280px 1fr;
    gap: 32px;
  }
}

@media (max-width: 992px) {
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .faq-nav {
    position: static;
    margin-bottom: 24px;
  }

  .faq-content {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .faq-page {
    padding: 24px 16px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-nav {
    padding: 16px 0;
  }

  .faq-nav-link {
    padding: 10px 16px;
    font-size: 14px;
  }

  .faq-submenu-link {
    padding: 8px 16px 8px 32px;
    font-size: 13px;
  }

  .faq-content {
    padding: 20px;
  }

  .faq-article-title {
    font-size: 22px;
  }

  .faq-article-content h3 {
    font-size: 18px;
  }

  .faq-article-content p,
  .faq-article-content li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .faq-page {
    padding: 16px 12px;
  }

  .faq-title {
    font-size: 20px;
  }

  .faq-content {
    padding: 16px;
  }

  .faq-article-title {
    font-size: 20px;
  }
}


/* ========================================
   CSP Compliance - Inline Style Replacements
   ======================================== */

/* IBM Logo Styling */
.ibm-logo-filtered {
  filter: brightness(0) saturate(100%);
  width: 50px;
}

/* Hidden Elements */
.app-meta-hidden {
  display: none;
}

/* Notification Container */
.notification-container-fixed {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  width: 420px;
}

/* Page Wrappers */
.page-wrapper-flex {
  display: flex;
}

/* Login Container */
.login-container-centered {
  margin-top: 250px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

/* Login Welcome Text */
.login-welcome-text {
  font-size: 1.5rem;
  color: #1F66F7;
  white-space: nowrap;
}

/* Login Button Wrapper */
.login-button-wrapper {
  margin-top: calc(1vh);
  margin-bottom: calc(1vh);
}

/* Login Spacer */
.login-spacer {
  width: 100%;
  display: flex;
  flex-direction: row-reverse;
}

/* 404 Page Styling */
.error-404-container {
  margin-top: 250px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.error-404-title {
  font-size: 2rem;
  color: #1F66F7;
  margin-left: 50px;
}

.error-404-message {
  font-size: 1rem;
  color: #1F66F7;
  margin-left: 50px;
  margin-top: 25px;
}

/* Body Background Gradients */
.body-gradient-login {
  background: radial-gradient(100vh at 20% 50%, #ffffff, #1f66f705);
}

/* Main Column Adjustments */
.main-column-no-margin {
  margin-left: 0;
}

/* Login page specific styles */
.login-page-body {
  background: radial-gradient(100vh at 20% 50%, #ffffff, #1f66f705);
}

.main-column-no-sidebar {
  margin-left: 0;
}

/* FAQ Content Styling */
.faq-text-blue {
  color: #1273e3;
}

.faq-text-green {
  color: #43AC6A;
}

.faq-text-bright-green {
  color: #92D050;
}

.faq-text-link-blue {
  color: #0563C1;
}

.faq-text-dark-green {
  color: #0C3512;
}

.faq-text-ibm-blue {
  color: #1F487C;
}

/* Certificate Download Links */
.faq-cert-downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top:15px;
  margin-left:50px;
  margin-bottom:15px;
}

.faq-cert-row {
  display: flex;
  align-items: center;
}

.faq-cert-label {
  min-width: 150px;
  font-weight: 600;
}

.faq-cert-link {
  margin-right: 20px;
}
