/* ---------------------------------------------------------------------------------------------
 * Asset Adding — light blue theme.
 *
 * The palette is taken from the AAI mark on the company letterhead (docs/CamScanner.pdf): a
 * building rising left-to-right, drawn as a navy-to-steel-blue gradient. The scan reads
 * #212B4C at its darkest through #3E5E86 to #7898B8 at the highlights; printing and scanning
 * strip saturation, so the tokens below hold the same hue family (~205-210 degrees) with the
 * saturation restored to what the mark is drawn in.
 *
 * --brand is the one to change for a re-brand; everything else here refers to these tokens
 * rather than repeating a hex. --brand carries white text at 5.4:1, which clears WCAG AA for
 * body text, so it is safe on buttons, the topbar rule and the sidebar alike.
 * ------------------------------------------------------------------------------------------- */
:root {
    --brand-navy:  #143A5C; /* logo darkest — gradient foot, sidebar base */
    --brand-dark:  #155A8A; /* hover / active */
    --brand:       #1B6FA8; /* primary */
    --brand-mid:   #2E86C1;
    --brand-light: #4FA3D8; /* logo highlight — gradient head */
    --brand-pale:  #A9D3EC;
    --brand-tint:  #E3F1FA; /* surface tint */
    --brand-wash:  #F4FAFD;
    --brand-focus: rgba(27, 111, 168, .5);
}

/* The login/register side panel. background-image is set on its own line rather than through the
 * background shorthand so the auth screens can point it at an uploaded logo inline without having
 * to restate the position, size and colour. */
.bg-login-image {
    background-image: url(../img/Dialog.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #fff;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #000;
    background-color: #fff;
    background: 0 0;
    font-weight: bold;
    border-bottom: 2px solid var(--brand);
    border-radius: 0px;
}
.page-item.active .page-link {
    z-index: 0;
}
/* Light at the head, navy at the foot — the same direction the logo's own gradient runs. */
.bg-gradient-dialog {
    background-color: var(--brand);
    background-image: linear-gradient(180deg, var(--brand-light) 0%, var(--brand) 50%, var(--brand-navy) 100%);
    background-size: cover;
}
body.theme-dialog .topbar {
    border-bottom: 3px solid var(--brand);
}
body.theme-white .topbar {
    border-bottom: 3px solid #e3e6f0;
}
body.bg-gradient-dialog a {
    color: var(--brand);
}
body.bg-gradient-dialog a:hover {
    color: var(--brand-navy);
}
.btn-dialog {
    color: #fff;
    background-color: var(--brand);
    border-color: var(--brand);
}
.btn-dialog:hover,
.btn-dialog:focus,
.btn-dialog:active {
    color: #fff;
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
}
.btn-dialog:focus,
.btn-dialog.focus {
    box-shadow: 0 0 0 .2rem var(--brand-focus);
}
