/*
 * Application theme.
 * Layered on top of Bootstrap 5.3 — see public/assets/vendor/bootstrap.
 */

:root {
    --app-sidebar-width: 16rem;
    --app-header-height: 3.5rem;
}

body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* -------------------------------------------------------------------------- */
/* Brand mark                                                                 */
/* -------------------------------------------------------------------------- */

.app-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.app-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border-radius: 0.5rem;
    background-color: var(--bs-emphasis-color);
    color: var(--bs-body-bg);
}

.app-logo__mark svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

/* -------------------------------------------------------------------------- */
/* Application shell                                                          */
/* -------------------------------------------------------------------------- */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--app-sidebar-width);
    flex: 0 0 var(--app-sidebar-width);
    border-right: 1px solid var(--bs-border-color);
    background-color: var(--bs-tertiary-bg);
}

.app-sidebar__inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 1rem;
    overflow-y: auto;
}

.app-content {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .app-sidebar {
        display: none;
    }
}

/* Sidebar navigation */

.app-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--bs-secondary-color);
    font-size: 0.9375rem;
}

.app-nav .nav-link:hover {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-emphasis-color);
}

.app-nav .nav-link.active {
    background-color: var(--bs-secondary-bg);
    color: var(--bs-emphasis-color);
    font-weight: 500;
}

.app-nav__heading {
    padding: 0 0.75rem;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

/* -------------------------------------------------------------------------- */
/* Auth layouts                                                               */
/* -------------------------------------------------------------------------- */

.auth-simple,
.auth-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-simple__inner,
.auth-card__inner {
    width: 100%;
    max-width: 24rem;
}

.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-split__aside {
    display: none;
    flex: 1 1 50%;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
    background-color: var(--bs-emphasis-color);
    color: var(--bs-body-bg);
}

.auth-split__main {
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

@media (min-width: 992px) {
    .auth-split__aside {
        display: flex;
    }
}

/* -------------------------------------------------------------------------- */
/* Stat cards                                                                 */
/* -------------------------------------------------------------------------- */

.stat-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: 0.5rem;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-size: 1.125rem;
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------- */
/* Bar chart                                                                  */
/* -------------------------------------------------------------------------- */

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 12rem;
}

.bar-chart__column {
    display: flex;
    flex: 1 1 0;
    align-items: flex-end;
    height: 100%;
}

.bar-chart__bar {
    width: 100%;
    min-height: 2px;
    border-radius: 0.25rem 0.25rem 0 0;
    background-color: var(--bs-secondary-bg);
    transition: background-color 0.15s ease-in-out;
}

.bar-chart__bar--filled {
    background-color: var(--bs-primary);
}

.bar-chart__column:hover .bar-chart__bar {
    opacity: 0.75;
}

/* -------------------------------------------------------------------------- */
/* Misc                                                                       */
/* -------------------------------------------------------------------------- */

.avatar-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-emphasis-color);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
}

.avatar-initials--sm {
    width: 1.875rem;
    height: 1.875rem;
    font-size: 0.6875rem;
}

.recovery-codes {
    font-family: var(--bs-font-monospace);
    font-size: 0.8125rem;
    line-height: 1.9;
    word-break: break-all;
}

[x-cloak] {
    display: none !important;
}

.otp-input {
    max-width: 12rem;
    margin-inline: auto;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    text-align: center;
    text-indent: 0.5em;
}
