:root {
  --license-navy: #0f172a;
  --license-blue: #1677ff;
  --license-soft: #eef4fb;
}

body {
  background: #edf2f8;
  color: #0b1b33;
}

.license-sidebar {
  background: var(--license-navy);
}

.license-sidebar .nav-link,
.license-sidebar .navbar-brand {
  color: rgba(255, 255, 255, 0.88);
}

.license-sidebar .nav-link:hover,
.license-sidebar .nav-item.active .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.license-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.license-brand span span {
  color: #68c7ff;
}

.license-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(22, 119, 255, 0.18);
  border: 1px solid rgba(104, 199, 255, 0.35);
  color: #fff;
  font-size: 20px;
}

.license-topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #d8e2ee;
  position: relative;
  z-index: 1050;
}

.license-topbar .dropdown-menu {
  z-index: 1060;
}

.license-topbar .navbar-nav,
.license-topbar .nav-item.dropdown {
  position: relative;
  z-index: 1055;
}

.license-shell {
  max-width: none;
  padding-left: 24px;
  padding-right: 24px;
}

.license-login-page {
  background:
    radial-gradient(circle at 15% 10%, rgba(22, 119, 255, 0.25), transparent 35%),
    linear-gradient(135deg, #0f172a 0%, #172554 45%, #eff6ff 45%, #eff6ff 100%);
}

.license-login-hero {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.license-stat-card .card-body {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.license-stat-card i {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e8f1ff;
  color: var(--license-blue);
  font-size: 24px;
}

.license-workspace {
  min-height: calc(100vh - 135px);
}

.license-form-card,
.license-list-card,
.license-log-card {
  height: calc(100vh - 125px);
  overflow: hidden;
}

.license-scroll-area {
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.license-form-card .card-body {
  padding: 14px 16px;
}

.license-form-card .form-label {
  margin-bottom: 4px;
  font-size: .78rem;
  font-weight: 700;
}

.license-form-card .form-control,
.license-form-card .form-select {
  min-height: 36px;
}

.license-form-card .hr-text {
  margin: 14px 0;
}

.license-table-scroll {
  max-height: calc(100vh - 250px);
  overflow: auto;
}

.license-log-card {
  display: flex;
  flex-direction: column;
}

.license-log-card > .card-body {
  flex: 0 0 auto;
  padding-bottom: 16px;
}

.license-log-card > .license-table-scroll {
  flex: 1 1 auto;
  max-height: none;
}

.license-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #e5edf6;
  color: #06172f;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  border-bottom: 1px solid #ccd8e6;
}

.license-table td {
  vertical-align: middle;
}

.license-table tbody tr:hover td {
  background: #f4f8fd;
}

.license-search {
  min-width: 320px;
}

.license-check {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  background: #f8fbff;
}

.license-check .form-check-input {
  margin-left: 0;
  margin-right: 8px;
}

@media (max-width: 1199px) {
  .license-form-card,
  .license-list-card,
  .license-log-card {
    height: auto;
  }

  .license-scroll-area,
  .license-table-scroll {
    max-height: none;
  }
}

@media (min-width: 1600px) {
  .license-shell {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 767px) {
  .license-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .license-search {
    min-width: 100%;
  }
}
