html {
  font-size: 14px;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

:root {
  --gt-sidebar: #2a3f54;
  --gt-sidebar-text: #e7edf3;
  --gt-sidebar-muted: #9fb3c8;
  --gt-accent: #1abb9c;
  --gt-accent-dark: #169f85;
  --gt-page: #f7f7f7;
  --gt-border: #d9dee4;
  --gt-text: #34495e;
  --gt-muted: #73879c;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--gt-text);
  background: var(--gt-page);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: #337ab7;
  text-decoration: none;
}

a:hover {
  color: #23527c;
}

.app-shell {
  min-height: 100vh;
}

.left_col {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  width: 230px;
  overflow-y: auto;
  color: var(--gt-sidebar-text);
  background: var(--gt-sidebar);
  transition: width .2s ease, transform .2s ease;
}

.site_title {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 58px;
  padding: 0 18px;
  color: #ecf0f1;
  font-size: 1.35rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site_title:hover {
  color: #fff;
}

.site_title img {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.profile {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 18px 16px;
}

.profile_pic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--gt-sidebar);
  background: #fff;
  border: 3px solid rgba(255,255,255,.25);
  border-radius: 50%;
  font-size: 1.3rem;
}

.profile_info span {
  display: block;
  color: #bab8b8;
  font-size: .85rem;
}

.profile_info strong {
  display: block;
  max-width: 130px;
  overflow: hidden;
  color: #ecf0f1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main_menu {
  padding: 8px 0 24px;
}

.main_menu h3 {
  margin: 18px 16px 8px;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main_menu a {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--gt-sidebar-text);
  border-right: 4px solid transparent;
}

.main_menu a i {
  width: 20px;
  color: var(--gt-sidebar-muted);
  text-align: center;
}

.main_menu a:hover,
.main_menu a.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-right-color: var(--gt-accent);
}

.main_menu a.active i,
.main_menu a:hover i {
  color: var(--gt-accent);
}

.right_col {
  min-height: 100vh;
  margin-left: 230px;
  padding-top: 58px;
  transition: margin-left .2s ease;
}

.top_nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 230px;
  z-index: 1020;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  background: #ededed;
  border-bottom: 1px solid var(--gt-border);
  transition: left .2s ease;
}

.menu_toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #5a738e;
  background: transparent;
  border: 0;
  font-size: 1.25rem;
}

.top_nav_title {
  color: #5a738e;
  font-weight: 600;
}

.top_nav_user {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-left: auto;
  color: #5a738e;
}

.top_nav_user form {
  margin: 0;
}

.top_nav_user .nav-link,
.top_nav_user .btn-link {
  color: #5a738e;
  padding: .35rem .5rem;
  text-decoration: none;
}

.page-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px 24px 10px;
}

.page-title h1 {
  margin: 0;
  color: var(--gt-text);
  font-size: 1.65rem;
  font-weight: 400;
}

.page-title p {
  margin: 2px 0 0;
  color: var(--gt-muted);
}

.content {
  padding: 0 24px 28px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 24px;
  color: var(--gt-muted);
  background: #fff;
  border-top: 1px solid var(--gt-border);
}

.card {
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid #e6e9ed;
  border-radius: 2px;
  box-shadow: none;
}

.card-header {
  min-height: 48px;
  padding: 12px 16px;
  color: var(--gt-text);
  background: #fff;
  border-bottom: 2px solid #e6e9ed;
}

.card-title {
  margin: 0;
  color: var(--gt-text);
  font-size: 1rem;
  font-weight: 600;
}

.card-body,
.card-footer {
  background: #fff;
}

.table {
  margin-bottom: 0;
  color: var(--gt-text);
}

.table thead th {
  color: var(--gt-text);
  background: #f5f7fa;
  border-bottom: 1px solid var(--gt-border);
  font-weight: 600;
}

.table-bordered > :not(caption) > * {
  border-color: #e6e9ed;
}

.form-control,
.form-select {
  border-color: #ccd0d7;
  border-radius: 2px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus {
  border-color: var(--gt-accent);
  box-shadow: 0 0 0 .2rem rgba(26, 187, 156, .18);
}

.btn {
  border-radius: 3px;
  font-weight: 500;
}

.btn-primary,
.btn-success {
  color: #fff;
  background-color: var(--gt-accent);
  border-color: var(--gt-accent-dark);
}

.btn-primary:hover,
.btn-success:hover {
  color: #fff;
  background-color: var(--gt-accent-dark);
  border-color: #138a72;
}

.btn-secondary {
  color: #fff;
  background-color: #5a738e;
  border-color: #4d637a;
}

.btn-outline-secondary {
  color: #5a738e;
  border-color: #5a738e;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #5a738e;
  border-color: #5a738e;
}

.pagination .page-link {
  color: #5a738e;
}

.pagination .active .page-link,
.page-item.active .page-link {
  background-color: var(--gt-accent);
  border-color: var(--gt-accent-dark);
}

.bg-primary,
.bg-success,
.bg-warning,
.bg-danger {
  color: var(--gt-text) !important;
  background: #fff !important;
  border-top: 3px solid var(--gt-accent);
}

.bg-warning {
  border-top-color: #f0ad4e;
}

.bg-danger {
  border-top-color: #d9534f;
}

.bg-primary .btn-light,
.bg-success .btn-light,
.bg-warning .btn-light,
.bg-danger .btn-light {
  color: #fff;
  background: #5a738e;
  border-color: #4d637a;
}

.auth-page {
  background: #eef2f6;
}

.auth-page .left_col,
.auth-page .top_nav,
.auth-page .page-title,
.auth-page .footer {
  display: none;
}

.auth-page .right_col {
  display: grid;
  min-height: 100vh;
  margin-left: 0;
  padding-top: 0;
  place-items: center;
}

.auth-page .content {
  width: min(1120px, 100%);
  padding: 28px;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.12fr) minmax(360px, 430px);
  min-height: 680px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(31, 45, 61, .18);
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  color: #f4f8fb;
  background:
    linear-gradient(90deg, rgba(21, 36, 52, .92), rgba(23, 45, 68, .72) 52%, rgba(23, 45, 68, .5)),
    url("/img/login-hero.png");
  background-size: cover;
  background-position: center;
}

.login-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(10, 21, 32, .4), transparent 42%),
    radial-gradient(circle at 18% 12%, rgba(26, 187, 156, .22), transparent 32%);
  pointer-events: none;
}

.login-hero > * {
  position: relative;
  z-index: 1;
}

.login-brandline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .2);
}

.login-brandline strong,
.login-brandline span {
  display: block;
}

.login-brandline strong {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.1;
}

.login-brandline span {
  color: #c7d4df;
  font-size: .88rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gt-accent);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-copy {
  max-width: 560px;
}

.login-copy h1 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
}

.login-copy p:last-child {
  max-width: 460px;
  margin: 0;
  color: #d7e2ec;
  font-size: 1.02rem;
  line-height: 1.7;
}

.login-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-highlights div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  color: #edf6f8;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
}

.login-highlights i {
  color: var(--gt-accent);
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  background: #fff;
}

.login-card-header {
  margin-bottom: 28px;
}

.login-card-header h2 {
  margin: 0;
  color: #1f2d3d;
  font-size: 2rem;
  font-weight: 650;
}

.login-card-header span {
  display: block;
  margin-top: 8px;
  color: var(--gt-muted);
}

.login-card .form-label {
  color: #34495e;
  font-weight: 650;
}

.input-icon {
  position: relative;
}

.input-icon i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #8aa0b4;
  transform: translateY(-50%);
}

.input-icon .form-control {
  min-height: 48px;
  padding-left: 44px;
  background: #f8fafc;
  border-color: #d8e0e8;
  border-radius: 4px;
  font-size: .98rem;
}

.login-card .btn-primary {
  min-height: 48px;
  border-radius: 4px;
}

.login-help {
  margin-top: 24px;
  padding: 14px 16px;
  color: #50667d;
  background: #f8fafc;
  border: 1px solid #e4eaf0;
  border-radius: 4px;
  font-size: .9rem;
}

.login-help span,
.login-help strong {
  display: block;
}

.login-help strong {
  margin-top: 2px;
  color: #34495e;
  font-weight: 650;
}

body.sidebar-collapsed .left_col {
  width: 72px;
}

body.sidebar-collapsed .right_col {
  margin-left: 72px;
}

body.sidebar-collapsed .top_nav {
  left: 72px;
}

body.sidebar-collapsed .site_title span,
body.sidebar-collapsed .profile_info,
body.sidebar-collapsed .main_menu h3,
body.sidebar-collapsed .main_menu a span {
  display: none;
}

body.sidebar-collapsed .site_title,
body.sidebar-collapsed .main_menu a {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

body.sidebar-collapsed .profile {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 991.98px) {
  .left_col {
    transform: translateX(-230px);
  }

  .right_col {
    margin-left: 0;
  }

  .top_nav {
    left: 0;
  }

  body.sidebar-open .left_col {
    z-index: 1035;
    transform: translateX(0);
  }

  body.sidebar-open::after {
    position: fixed;
    inset: 0;
    z-index: 1025;
    content: "";
    background: rgba(23, 45, 68, .35);
  }

  .page-title,
  .content,
  .footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .top_nav_user span {
    display: none;
  }

  .login-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .login-hero {
    min-height: 360px;
    padding: 30px;
  }

  .login-highlights {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 32px;
  }
}
