:root {
  --itm8-purple: #5F259F;
  --itm8-purple-dark: #2d0f50;
  --itm8-purple-mid: #3d1669;
  --itm8-purple-light: #7B35B8;
  --itm8-purple-accent: #c77dff;
  --itm8-sidebar-bg: #1a0a30;
  --itm8-content-bg: #f5f3fa;
  --itm8-card-border: #ebe8f4;
  --itm8-text-dark: #2d0f4e;
  --itm8-gradient-start: #2a0845;
  --itm8-purple-rgb: 95, 37, 159;
  --itm8-purple-end: #8B3DCC;
}

body {
  font-size: .875rem;
}

/* ===== FEATHER ICONS ===== */
.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 52px 0 0;
  background-color: var(--itm8-sidebar-bg);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 52px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar-heading {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  padding: 12px 16px 6px;
}

.sidebar .nav-link {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar .nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.sidebar .nav-link.active {
  color: #ffffff;
  font-weight: 600;
  background-color: rgba(199, 125, 255, 0.15);
  border-left-color: var(--itm8-purple-accent);
}

.sidebar .nav-link .feather {
  color: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

/* ===== NAVBAR ===== */
.navbar-brand {
  padding-top: .5rem;
  padding-bottom: .5rem;
  font-size: 1rem;
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

/* ===== CONTENT AREA ===== */
main {
  background-color: var(--itm8-content-bg);
  min-height: 100vh;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--itm8-gradient-start) 0%, var(--itm8-purple) 55%, var(--itm8-purple-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  top: -150px;
  right: -150px;
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  bottom: -100px;
  left: -80px;
  pointer-events: none;
}

.login-card {
  background: white;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.login-logo-wrap {
  display: inline-block;
  background: var(--itm8-purple);
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
}

.login-logo-wrap img {
  height: 32px;
  width: auto;
  display: block;
}

.login-card h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--itm8-text-dark);
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.875rem;
  color: #888;
  margin-bottom: 28px;
}

.login-card .form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #444;
  margin-bottom: 5px;
}

.login-card .form-control {
  border: 1.5px solid var(--itm8-card-border);
  border-radius: 8px;
  background: #faf8fd;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-card .form-control:focus {
  border-color: var(--itm8-purple);
  box-shadow: 0 0 0 3px rgba(var(--itm8-purple-rgb), 0.12);
  background: #fff;
  outline: none;
}

.btn-login {
  width: 100%;
  padding: 11px;
  background: linear-gradient(90deg, var(--itm8-purple), var(--itm8-purple-light));
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(var(--itm8-purple-rgb), 0.35);
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  margin-top: 4px;
}

.btn-login:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(var(--itm8-purple-rgb), 0.45);
  color: white;
}

/* ===== FILTER TABLE ===== */
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid var(--itm8-card-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(var(--itm8-purple-rgb), 0.07);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-right: 1px solid var(--itm8-card-border);
  border-bottom: 1px solid var(--itm8-card-border);
  cursor: pointer;
  transition: background-color 0.1s ease, opacity 0.1s ease;
  user-select: none;
  margin: 0;
}

.filter-item:nth-child(even) {
  background-color: rgba(var(--itm8-purple-rgb), 0.03);
}

.filter-item:hover {
  background-color: rgba(var(--itm8-purple-rgb), 0.08);
}

.filter-item input[type="checkbox"] {
  accent-color: var(--itm8-purple);
  width: 14px;
  height: 14px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.filter-item span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--itm8-text-dark);
  white-space: nowrap;
}

.filter-item:has(input:not(:checked)) {
  opacity: 0.4;
}

.filter-item:has(input:not(:checked)):hover {
  opacity: 0.6;
}
