html,

:root {
  --bg: #f5f5f5;
  --bg-secondary: #eeeae4;
  --text: #000000;
  --text-secondary: #0f0f10;
  --menu-item: #f5f5f5;
  --block-bg: #0152a7;
  --brand-block-bg-hover: #0063d6;
  --brand-block-bg: #e6e6e6;
  --block-text: #ffffff;
  --block-bg-secondary: #323232;
  --block-text-secondary: #E2E5EF;
  --block-text-link: #989898;
  --block-text-link-hover: #d1d1d1;
  --menu-sidebar-item: #1e1e1e;
  --menu-sidebar-item-hover: #f5f5f5;
  --text-primary: #000000;
  --text-secondary: #0f0f10;
  --primary-color: #000746;
  --secondary-color: #00489B;
  --accent: #ffdd00;
  --accent-light: #ffeb66;
  --border-radius: 0.7rem;
}

body {
  font-variant-ligatures: none;
  font-feature-settings:
    "liga" 0,
    "clig" 0;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--color-text-primary, #1a1a1a);
}

.card-img-top {
  object-fit: cover;
  height: 160px;
  width: 100%;
  background-color: var(--block-bg, #173b6a);
}

.list-unstyled {
  font-size: 13px;
}

.list-unstyled>li,
.list-unstyled li>ul>li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
}

.list-unstyled>li:last-child,
.list-unstyled li>ul>li:last-child {
  border-bottom: none;
}


.btn-outline-primary {
  background: var(--block-bg);
  color: var(--block-text) !important;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 0;
  transition: background 0.15s;
}

.btn-outline-primary:hover {
  background: var(--block-text-secondary);
  color: var(--block-text-secondary) !important;
}

/* Material Symbol */
.material-symbols-rounded {
  --icon-fill: 0;
  --icon-weight: 200;
  --icon-grade: -25;
  --icon-optical-size: 24;
  font-family:
    "Material Symbols Sharp",
    "Material Symbols Rounded";
  font-variation-settings:
    "FILL" var(--icon-fill),
    "wght" var(--icon-weight),
    "GRAD" var(--icon-grade),
    "opsz" var(--icon-optical-size);
  vertical-align: middle;
  line-height: 1;
  position: relative;
  top: -2px;
}

button .material-symbols-rounded {
  top: 0;
}

a .material-symbols-rounded {
  top: 0;
}

/* Spinner icon */
.spinner-icon {
  display: inline-block;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Toast alert */
.toast-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast,
.alert {
  border-radius: var(--border-radius);
}

.toast.has-timer,
.alert.has-timer {
  --toast-time: 5000ms;
  position: relative;
  overflow: hidden;
  min-width: 280px;
  pointer-events: auto;
}

/* Bottom timer bar */
.toast.has-timer::after,
.alert.has-timer::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background-color: currentColor;
  opacity: 0.35;
  transform: scaleX(0);
  transform-origin: left;
  animation: toast-timer var(--toast-time) linear forwards;
}

.toast.has-timer.paused::after {
  animation-play-state: paused;
}

/* Status color tuning */
.toast.bg-success.has-timer::after,
.alert-success.has-timer::after {
  background-color: #198754;
}

.toast.bg-danger.has-timer::after,
.alert-danger.has-timer::after {
  background-color: #dc3545;
}

.toast.bg-warning.has-timer::after,
.alert-warning.has-timer::after {
  background-color: #ffc107;
}

.toast.bg-info.has-timer::after,
.alert-info.has-timer::after {
  background-color: #0dcaf0;
}

/* Animation */
@keyframes toast-timer {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.has-timer::after {
  animation-play-state: running;
}

.has-timer.paused::after {
  animation-play-state: paused;
}

/* Forms */
div.input-group>* {
  border-radius: 0;
}

div.input-group>*:first-child {
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
}

div.input-group>*:last-child {
  border-top-right-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

/* Password toggle */
.password-toggle .btn-toggle {
  border: 1px solid var(--bs-border-color);
  background: var(--bs-border-color);
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.password-toggle .material-symbols-rounded {
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
}

/* Badge */
a.badge {
  text-decoration: none;
}

.badge {
  border-radius: var(--border-radius);
}

/* App Mode Banner */
.app-mode-banner {
  width: 100%;
  text-align: center;
  padding: 0.5rem 0;
  color: #000;
  background-color: #dccb35;
}

.submenu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.nav-item.has-submenu:hover .submenu {
  display: block;
  animation: fadeIn 0.3s ease;
}

.submenu .nav-link {
  padding: 10px 15px 10px 45px;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.submenu .nav-link:hover {
  color: #ffffff;
  background-color: #121212;
}

.has-submenu:hover .ms-auto {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}