/* ==========================================================================
   Navbar
   ========================================================================== */

/* An entry is as tall as its content, and the entries are as tall as their icon:
   Google's Material Icons stylesheet makes a .material-icons span 24px high
   (font-size 24px, line-height 1). A flag is a background on a box of line-height
   1em, and the language code next to it is one text line, so the language entry
   came out ~4px shorter. Give the flag the same 24px box (the image itself stays
   inside it, background-size: contain centres it), so every entry is as tall as
   an icon entry and the entries have one height. */
#navbar .fi {
    height: 24px;
}

/* The entries follow the theme's text colour, so the header is a quiet dark grey (light grey
   in dark mode), and the accent stays for actions. Aura colours a menu bar button with the
   accent text colour, which is now the same orange as the primary action. */
#navbar vaadin-menu-bar-button {
    --vaadin-button-text-color: var(--vaadin-text-color);
}

/* ==========================================================================
   Simple search
   ========================================================================== */

/* Aura pads the drawer of an app layout only when the panel sits in a vaadin-scroller (its
   `vaadin-scroller[slot=drawer]` rule). BaseAppLayout slots the panel straight into the drawer to keep the
   full height, so the filters carry that distance themselves. Without it the panel is edge to edge, and on
   a phone - where the drawer is a full-width overlay - the handles of the range sliders sit against the
   screen edge, out of reach of a finger. The value is Aura's own drawer padding (see --vaadin-padding-l),
   so the panel is inset like the drawer of any other Aura application. */
.simpleSearchFilters {
    gap: 15px;
    padding: var(--vaadin-padding-l);
}

.navbarItemLabel {
    margin-left: 3px;
}

/* ==========================================================================
   Lists, chat and their surroundings: colours
   Their layout is in any-theme.css, because it is the same in every theme;
   what they look like is up to the theme, so the colours are here (and in
   lumo-specifics.css for Lumo). Aura draws them in its own surfaces and its
   accent, which is why the balloons and the separators differ from Lumo's.
   ========================================================================== */

/* -- lists ---------------------------------------------------------------- */

.listItem {
    border-bottom-color: var(--vaadin-border-color-secondary);
}

.listItem:hover {
    background-color: var(--vaadin-background-container);
}

.listItemExcerpt,
.listItemTime,
.listEmpty {
    color: var(--vaadin-text-color-secondary);
}

.listItemUnreadMarker {
    color: var(--aura-accent-color);
}

/* the chosen context (where a dancer searches: recreational, competitive or a specific event) */

.listItemSelected {
    background-color: var(--aura-accent-surface);
    box-shadow: inset 4px 0 0 var(--aura-accent-color);
}

/* scheduled jobs on the admin actions page: the status line colours with the outcome */

.scheduledJobSUCCESS .scheduledJobStatus {
    color: var(--aura-green-text);
}

.scheduledJobFAILED .scheduledJobStatus {
    color: var(--aura-red-text);
}

.scheduledJobRUNNING .scheduledJobStatus {
    color: var(--aura-orange-text);
}

.scheduledJobMessage {
    color: var(--vaadin-text-color-secondary);
}

/* chat (a Whatsapp-like conversation: balloons of the other participant(s) on the left, your own
   on the right, with the newest at the bottom) */

.chatConversationHeader {
    border-bottom-color: var(--vaadin-border-color-secondary);
}

.chatScroller {
    background-color: var(--vaadin-background-container);
}

.chatEmpty,
.chatBubbleDeleted,
.chatBubbleTime,
.chatBubbleEdited {
    color: var(--vaadin-text-color-secondary);
}

.chatBlockedNotice {
    color: var(--aura-red-text);
}

.chatComposer {
    border-top-color: var(--vaadin-border-color-secondary);
}

.chatBubble {
    background-color: var(--aura-surface-color-solid);
    box-shadow: var(--aura-shadow-xs);
}

.chatBubbleRow.mine .chatBubble {
    background-color: var(--aura-accent-surface);
}

.chatBubble.deleted {
    background-color: var(--vaadin-background-container);
}

.chatBubbleSender {
    color: var(--aura-accent-text-color);
}

/* ==========================================================================
   Help
   The layout and typography of the help page are shared (any-theme.css, since
   HelpContent renders markdown into ordinary elements); only what needs Aura's
   colours is here.
   ========================================================================== */

.helpIcon {
    color: var(--app-secondary);
}

.helpContent blockquote {
    border-left: 3px solid var(--app-highlight);
    background-color: var(--app-surface-secondary);
}

.helpContent pre {
    background-color: var(--app-surface-secondary);
}

.helpImage {
    border: 1px solid var(--app-border);
}

/* ==========================================================================
   Admin
   ========================================================================== */

/* a failed impersonation attempt on the admin page (see AdminImpersonationView) */
.impersonationFailure {
    color: var(--aura-red-text);
}