:root {
  --wt-navy: #0b1930;
  --wt-blue: #1976d2;
  --wt-background: #f3f6fa;
  --wt-border: #b7c5d5;
  --wt-text: #233247;
  --wt-sidebar-width: 255px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--wt-text);
  background: var(--wt-background);
}

.app {
  display: flex;
  min-height: 100vh;
}

#app-sidebar {
  width: var(--wt-sidebar-width);
  flex: 0 0 var(--wt-sidebar-width);
  align-self: stretch;
  background: linear-gradient(155deg, #172b49, #142740 75%, #1b3455);
}

.sidebar {
  width: 100%;
  min-height: 100%;
  background: linear-gradient(155deg, #172b49, #142740 75%, #1b3455);
  color: #c5d6ef;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 25px 18px 12px;
  font-size: 19px;
  font-weight: bold;
  letter-spacing: 1px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-blue {
  color: #52a9ff;
}

.sidebar-layer {
  padding: 8px 20px 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9cb3d0;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 10px 20px;
}

.nav-item {
  height: 47px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 12px;
  border-radius: 10px;
  color: #c5d6ef;
  text-decoration: none;
  font-size: 15px;
}

.nav-item:hover {
  background: #29496e;
  color: white;
}

.nav-item.active {
  background: linear-gradient(110deg, #2d86f4, #2774e8);
  color: white;
}

.nav-icon {
  flex: 0 0 29px;
  width: 29px;
  text-align: center;
  font-size: 24px;
  color: #a6c2e8;
  font-weight: bold;
}

.nav-item.active .nav-icon {
  color: white;
}

.sidebar-bottom {
  margin-top: auto;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #9cb3d0;
  font-size: 10px;
  letter-spacing: 2px;
}

.workspace {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  padding: 14px 26px;
  background: white;
  border-bottom: 1px solid #dfe6ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  padding: 10px;
  border: 1px solid #d7e0eb;
  border-radius: 5px;
}

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

.notification-button {
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 20px;
}

.notification-count {
  font-size: 10px;
}

.profile-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #d9eaff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: bold;
}

.profile-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}

.profile-info span {
  color: #718198;
  margin-top: 3px;
}

.page-main {
  width: 100%;
  padding: 28px;
  flex: 1;
}

.page-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.page-heading h1 {
  margin: 0;
  font-size: 25px;
}

.page-code {
  font-size: 10px;
  color: #8796a9;
}

.wt-wireframe {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wt-row {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.wt-row-1 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wt-row-2,
.wt-row-3 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.wt-row-4 {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.wt-row-5 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wt-card {
  min-width: 0;
  min-height: 180px;
  padding: 20px;
  border: 2px dashed var(--wt-border);
  border-radius: 8px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #73859b;
  font-size: 14px;
  font-weight: 600;
}

.app-footer {
  padding: 18px 28px;
  background: white;
  border-top: 1px solid #dfe6ef;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: #718198;
}

.footer-left {
  display: flex;
  gap: 9px;
}

.footer-brand {
  font-weight: bold;
  color: var(--wt-navy);
}

@media (max-width: 1100px) {
  :root {
    --wt-sidebar-width: 220px;
  }

  .page-main {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .app {
    flex-direction: column;
  }

  #app-sidebar {
    width: 100%;
    flex-basis: auto;
  }

  .sidebar {
    width: 100%;
  }

  .side-nav {
    max-height: 220px;
    overflow-y: auto;
  }

  .sidebar-bottom {
    display: none;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .wt-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .wt-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-footer {
    flex-direction: column;
  }

  .profile-info {
    display: none;
  }
}


/* WYSETRACK SHARED DROPDOWN NAVIGATION */
.wt-nav-group {
  width: 100%;
}

.wt-nav-group-title {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-radius: 10px;
  color: #c5d6ef;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.wt-nav-group-title::-webkit-details-marker {
  display: none;
}

.wt-nav-group-title:hover {
  background: #29496e;
  color: #fff;
}

.wt-nav-chevron {
  font-size: 20px;
  transition: transform .2s ease;
}

.wt-nav-group[open] .wt-nav-chevron {
  transform: rotate(180deg);
}

.wt-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 3px 0 6px 12px;
}

.wt-nav-submenu .nav-item {
  min-height: 41px;
  height: auto;
  padding: 7px 10px;
  font-size: 13px;
  gap: 10px;
}

.wt-nav-submenu .nav-icon {
  width: 24px;
  flex-basis: 24px;
  font-size: 19px;
}

.wt-nav-group:has(.nav-item.active) > .wt-nav-group-title {
  color: #fff;
}


/* WYSETRACK MOBILE TWO-LINE NAVIGATION */
.wt-mobile-menu-button {
  display: none;
}

@media (max-width: 760px) {
  #app-sidebar {
    width: 100%;
    flex-basis: auto;
  }

  #app-sidebar .sidebar {
    min-height: 0;
  }

  #app-sidebar .brand {
    position: relative;
    padding-right: 70px;
    min-height: 66px;
  }

  .wt-mobile-menu-button {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #58718f;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    z-index: 2;
  }

  .wt-mobile-menu-button span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: #ffffff;
  }

  .wt-mobile-menu-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
  }

  #app-sidebar .sidebar-layer,
  #app-sidebar .side-nav {
    display: none;
  }

  #app-sidebar .sidebar.wt-mobile-open .sidebar-layer {
    display: block;
  }

  #app-sidebar .sidebar.wt-mobile-open .side-nav {
    display: flex;
    max-height: none;
    overflow-y: visible;
  }

  #app-sidebar .sidebar-bottom {
    display: none;
  }
}


/* WYSETRACK MESSAGES THREE-COLUMN LAYOUT */

/* Desktop: FlossForce proportions */
.wt-wireframe .wt-row.wt-messages-main-row {
  display: grid;
  grid-template-columns:
    minmax(230px, 1fr)
    minmax(300px, 1.45fr)
    minmax(220px, 0.9fr);
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 600px;
  height: min(710px, 76vh);
  align-items: stretch;
}

.wt-messages-main-row > .wt-card {
  min-width: 0;
  min-height: 0;
  width: auto;
  height: 100%;
}

/* Tablet: two columns, third panel below */
@media (min-width: 600px) and (max-width: 1100px) {
  .wt-wireframe .wt-row.wt-messages-main-row {
    grid-template-columns:
      minmax(220px, 0.9fr)
      minmax(0, 1.6fr);
    height: auto;
    min-height: 600px;
  }

  .wt-messages-main-row > .wt-card:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 150px;
    max-height: 260px;
  }
}

/* Phone: single column */
@media (max-width: 599px) {
  .wt-wireframe .wt-row.wt-messages-main-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
    min-height: 0;
  }

  .wt-messages-main-row > .wt-card {
    width: 100%;
    height: auto;
    min-height: 240px;
  }
}

/* WYSETRACK LOGIN SCREEN */
body.wt-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.wt-login-page .wt-login-layout {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 35px 7%;
    background: url('/Assets/Images/login.png') center / cover no-repeat;
}

.wt-login-page .wt-login-form-panel {
    width: 100%;
    max-width: 470px;
}

.wt-login-page .wt-login-card {
    box-sizing: border-box;
    padding: 42px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.95);
    background: rgba(255,255,255,.90);
    box-shadow:
        inset 2px 2px 4px rgba(255,255,255,.95),
        inset -3px -3px 6px rgba(85,105,125,.18),
        0 18px 55px rgba(0,0,0,.30);
}

.wt-login-page .wt-login-brand {
    text-align: center;
    margin-bottom: 25px;
}

.wt-login-page .wt-login-logo {
    display: block;
    max-width: 240px;
    max-height: 135px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.wt-login-page .wt-login-heading h1 {
    margin: 0 0 8px;
    font-size: 29px;
    color: #193b5c;
}

.wt-login-page .wt-login-heading p {
    margin: 0 0 28px;
    color: #617184;
}

.wt-login-page .wt-login-field {
    margin-bottom: 20px;
}

.wt-login-page .wt-login-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #263d54;
}

.wt-login-page .wt-login-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid #cbd5df;
    border-radius: 9px;
    background: rgba(255,255,255,.95);
    font-size: 15px;
}

.wt-login-page .wt-login-field input:focus {
    outline: 2px solid #2974ae;
    outline-offset: 1px;
}

.wt-login-page .wt-login-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wt-login-page .wt-login-password-wrap input {
    padding-right: 75px;
}

.wt-login-page #wt-login-toggle-password {
    position: absolute;
    right: 10px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: #276b9b;
    cursor: pointer;
}

.wt-login-page .wt-login-options {
    text-align: right;
    margin: -5px 0 23px;
}

.wt-login-page .wt-login-options a {
    color: #246a9e;
    text-decoration: none;
    font-size: 14px;
}

.wt-login-page .wt-login-submit {
    width: 100%;
    padding: 15px;
    border: 0;
    border-radius: 9px;
    background: #e99a25;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.wt-login-page .wt-login-submit:hover {
    background: #d78612;
}

.wt-login-page .wt-login-error {
    color: #a82424;
    margin-bottom: 15px;
}

.wt-login-page .wt-login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #667789;
}

@media (max-width: 700px) {
    .wt-login-page .wt-login-layout {
        justify-content: center;
        padding: 24px 15px;
    }

    .wt-login-page .wt-login-form-panel {
        max-width: 440px;
    }

    .wt-login-page .wt-login-card {
        padding: 28px 22px;
    }
}
/* Password requirements and reset controls */
.wt-login-page .wt-password-requirements {
    margin: 9px 0 0;
    padding-left: 19px;
    font-size: 11px;
    line-height: 1.6;
    color: #bb2020;
}
.wt-login-page .wt-password-requirements li.wt-met {
    color: #188038;
}
.wt-login-page #wt-forgot-password {
    padding: 0;
    border: 0;
    background: transparent;
    color: #246a9e;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.wt-login-page [hidden] {
    display: none !important;
}
/* END WYSETRACK LOGIN SCREEN */
