:root {
    --brand-primary: #3f68ff;
    --brand-primary-dark: #294dcc;
    --brand-red: #ff4000;
    --brand-gold: #f2d545;
    --page-background: #f5f7fc;
    --text-main: #17213c;
}

html,
body {
    min-height: 100%;
}

.app-shell {
    min-height: 100vh;
    background: var(--page-background);
}

.app-shell:not(.d-none) {
    display: flex;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1020;
    flex-direction: column;
    width: 17rem;
    padding: 1.5rem 1rem;
    background: #fff;
    border-right: 1px solid #e8ebf2;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    min-height: 4rem;
    padding: .25rem .75rem 1.5rem;
}

.sidebar-brand img {
    width: 12rem;
    max-width: 100%;
    height: auto;
}

.sidebar-nav {
    gap: .4rem;
}

.sidebar-nav .nav-link,
.sidebar-logout {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 3rem;
    padding: .75rem 1rem;
    color: #566078;
    font-weight: 600;
    border-radius: .75rem;
    text-align: left;
}

.sidebar-nav .nav-link i,
.sidebar-logout i {
    font-size: 1.15rem;
}

.sidebar-nav .nav-link.active {
    color: var(--brand-primary);
    background: rgba(63, 104, 255, .1);
}

.sidebar-logout:hover,
.sidebar-logout:focus {
    color: var(--brand-red);
    background: rgba(255, 64, 0, .08);
}

.app-main {
    width: 100%;
    min-width: 0;
    margin-left: 17rem;
}

.content-wrapper {
    max-width: 96rem;
    margin-inline: auto;
    padding: 2.5rem clamp(1.25rem, 3vw, 3rem) 4rem;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.page-eyebrow {
    color: var(--brand-primary);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-card,
.results-card {
    border-radius: 1rem;
    box-shadow: 0 .35rem 1.5rem rgba(30, 50, 100, .07);
}

.results-card {
    overflow: hidden;
}

.results-card .card-header,
.results-card .card-footer {
    border-color: #edf0f5;
}

.table > :not(caption) > * > * {
    padding: 1rem 1.25rem;
    border-color: #edf0f5;
}

.table thead th {
    color: #667085;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
    background: #f8f9fc;
    white-space: nowrap;
}

.voucher-type {
    display: inline-flex;
    align-items: center;
    padding: .35rem .65rem;
    color: #294dcc;
    font-size: .78rem;
    font-weight: 700;
    border-radius: 999px;
    background: rgba(63, 104, 255, .1);
    white-space: nowrap;
}

.voucher-number {
    color: var(--text-main);
    font-weight: 700;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: .4rem;
}

.action-buttons .btn {
    --bs-btn-padding-x: .65rem;
    --bs-btn-padding-y: .4rem;
}

.table-state {
    min-height: 16rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 2rem;
    text-align: center;
}

.table-state.d-none {
    display: none !important;
}

.empty-icon {
    color: #a9b1c3;
    font-size: 3rem;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 1010;
    align-items: center;
    gap: 1rem;
    height: 4.5rem;
    padding: .75rem 1.25rem;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid #e8ebf2;
    backdrop-filter: blur(10px);
}

.app-header img {
    width: 10rem;
    height: auto;
}

.menu-button {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.4rem;
}

.app-offcanvas {
    width: min(19rem, 86vw) !important;
}

.modal-content {
    border-radius: 1rem;
    box-shadow: 0 1rem 4rem rgba(15, 27, 60, .18);
}

.modal-header {
    padding: 1.25rem 1.5rem;
}

.detail-table-container {
    border: 1px solid #edf0f5;
    border-radius: .75rem;
}

body {
    color: var(--text-main);
    background: var(--page-background);
}

.login-brand-panel {
    position: relative;
    align-items: center;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 7rem);
    color: #fff;
    background: linear-gradient(145deg, #3159ee 0%, var(--brand-primary) 58%, #577cff 100%);
}

.login-brand-content {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.login-brand-content .lead {
    max-width: 31rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
}

.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .45rem .85rem;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .1);
}

.brand-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.brand-decoration-one {
    right: -8rem;
    bottom: -10rem;
    width: 26rem;
    height: 26rem;
    border: 4rem solid rgba(242, 213, 69, .16);
}

.brand-decoration-two {
    top: -5rem;
    right: 12%;
    width: 12rem;
    height: 12rem;
    background: rgba(255, 64, 0, .13);
}

.login-form-panel {
    padding: 2rem 1.25rem;
    background:
        radial-gradient(circle at 100% 0, rgba(63, 104, 255, .08), transparent 35%),
        #fff;
}

.login-card {
    max-width: 28rem;
    padding: clamp(1rem, 3vw, 2rem);
}

.login-logo {
    display: block;
    width: min(100%, 15rem);
    height: auto;
    margin-inline: auto;
}

.form-label {
    font-weight: 600;
}

.form-control,
.form-select,
.password-toggle {
    min-height: 3.25rem;
}

.form-control,
.form-select {
    border-color: #d7ddea;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .25rem rgba(63, 104, 255, .14);
}

.password-toggle {
    min-width: 3.25rem;
    color: #606b85;
    border-color: #d7ddea;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--brand-primary);
    background-color: #f3f6ff;
    border-color: var(--brand-primary);
}

.btn-primary {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: var(--brand-primary-dark);
    --bs-btn-hover-border-color: var(--brand-primary-dark);
    --bs-btn-active-bg: var(--brand-primary-dark);
    --bs-btn-active-border-color: var(--brand-primary-dark);
    --bs-btn-disabled-bg: var(--brand-primary);
    --bs-btn-disabled-border-color: var(--brand-primary);
    min-height: 3.25rem;
    font-weight: 600;
}

.login-footer {
    font-size: .875rem;
}

@media (max-width: 991.98px) {
    .login-form-panel {
        background:
            linear-gradient(180deg, rgba(63, 104, 255, .08), transparent 18rem),
            #fff;
    }

    .login-card {
        padding-block: 2rem;
    }

    .app-main {
        margin-left: 0;
    }

    .app-header:not(.d-none) {
        display: flex;
    }

    .content-wrapper {
        padding-top: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .login-form-panel {
        align-items: flex-start !important;
        padding: 1.25rem .5rem;
    }

    .login-card {
        max-width: 100%;
    }

    .login-logo {
        width: 12rem;
    }

    .content-wrapper {
        padding-inline: .85rem;
    }

    .page-heading {
        padding-inline: .25rem;
    }

    .filter-card .card-body,
    .results-card .card-header {
        padding: 1.25rem !important;
    }

    #paginationBar {
        align-items: stretch !important;
        flex-direction: column;
    }

    #paginationBar .btn-group {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
