:root {
    --app-border-radius: 0.75rem;
    --app-shadow: 0 0.4rem 1rem rgba(15, 23, 42, 0.08);
    --app-primary: #00a8a8;
    --app-primary-rgb: 0, 168, 168;
    --app-primary-hover: #009696;
    --app-primary-active: #008383;
    --bs-primary: var(--app-primary);
    --bs-primary-rgb: var(--app-primary-rgb);
}

body {
    min-height: 100vh;
    background: var(--bs-tertiary-bg);
}

.app-navbar {
    backdrop-filter: blur(14px);
    background: color-mix(in srgb, var(--bs-body-bg) 88%, transparent);
}

.app-navbar-inner {
    position: relative;
    min-height: 2.2rem;
}

.app-navbar-brand {
    flex: 0 0 auto;
}

.app-navbar-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.app-navbar-right {
    margin-left: auto;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.demo-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
}

.demo-logo svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.app-card,
.app-sidebar-card {
    border-radius: var(--app-border-radius);
    box-shadow: var(--app-shadow);
    border-color: color-mix(in srgb, var(--bs-border-color) 85%, transparent);
}

.card-header {
    background: color-mix(in srgb, var(--bs-tertiary-bg) 78%, var(--bs-body-bg));
}

.app-table > :not(caption) > * > * {
    padding: 0.45rem 0.6rem;
}

.form-control,
.form-select,
.btn,
.alert,
.list-group-item,
.card,
.navbar,
.badge,
.dropdown-menu {
    border-radius: 0.6rem;
}

.icon-button {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
}

.app-toolbar-button {
    height: 2.1rem;
    border-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.theme-toggle-btn {
    border: 1px solid #e2b100;
    background: color-mix(in srgb, #7cc7ff 78%, var(--bs-body-bg));
    color: #0f2f49;
    height: 1.95rem;
    min-width: 5.4rem;
    padding: 0 0.72rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.34rem;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
}

.theme-toggle-btn .theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.92rem;
    height: 0.92rem;
    color: #f3c623;
}

.theme-toggle-btn .theme-toggle-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

html[data-bs-theme='dark'] .theme-toggle-btn {
    background: color-mix(in srgb, #1f3158 88%, var(--bs-body-bg));
    color: #f2f5ff;
}

html[data-bs-theme='light'] .theme-icon-moon,
html[data-bs-theme='dark'] .theme-icon-sun {
    display: none;
}

.info-point-btn {
    width: 1.2rem;
    height: 1.2rem;
    min-width: 1.2rem;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.update-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.24rem;
    border-radius: 999px;
    background-color: #dc3545;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.icon-button > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: currentColor;
    display: block;
}

.icon-button .icon-moon svg {
    transform: none;
}

.app-user-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    transform-origin: top right;
}

html[data-bs-theme='light'] .icon-moon,
html[data-bs-theme='dark'] .icon-sun {
    display: none;
}

.list-group-item.active {
    font-weight: 600;
    color: #fff;
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-primary {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary-hover);
    --bs-btn-hover-border-color: var(--app-primary-hover);
    --bs-btn-active-bg: var(--app-primary-active);
    --bs-btn-active-border-color: var(--app-primary-active);
    --bs-btn-disabled-bg: var(--app-primary);
    --bs-btn-disabled-border-color: var(--app-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
    --bs-btn-active-bg: var(--app-primary-active);
    --bs-btn-active-border-color: var(--app-primary-active);
    --bs-btn-disabled-color: var(--app-primary);
    --bs-btn-disabled-border-color: var(--app-primary);
}

@media (min-width: 992px) {
    .app-sidebar-card {
        top: 5.4rem;
    }
}
