body {
    padding-top: calc(56px + 30px);
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome and Opera */
}

/* Add a simple line below display headings */
.display-4 {
    font-size: 2.5rem;
    border-bottom: 1px solid var(--bs-border-color);
}

/* Flashes (messages) styles */
.flashes {
    position: fixed;
    top: 20px;
    right: 0;
    z-index: 1050;
}
.flashes .inner {
    position: absolute;
    top: 0;
    right: 20px;
}
.flashes .toast {
    min-width: 270px;
}

/* Little color swatch to show calendar color */
#calendar_instance_calendarColor_help {
 position: relative;
}
#calendar_instance_calendarColor_help::after {
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    top: -38px;
    right: 5px;
    background: var(--calendar-color);
    border-radius: 3px;
    border: 1px solid #AAA;
}

/* Special indicator badge */
.badge.badge-indicator {
    height: 15px;
    width: 15px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    color: var(--bs-heading-color); /* Comes from Bootstrap */
}

/* Allow selection in the Bootstrap popover */
.popover .popover-body {
    user-select: text;
}

/* The newly created app key credentials must be copied, so let them be selected */
#app-key-secret,
#app-key-secret * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* A single click selects the whole secret or app id (in the list of keys too) */
#app-key-secret code.app-secret,
code.app-id {
    -webkit-user-select: all;
    -moz-user-select: all;
    user-select: all;
}

/* The diagnostics page exists to be copied into a bug report, so let everything be selected */
.diagnostics-page,
.diagnostics-page * {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Each check reads as its own card rather than as one continuous list */
.diagnostics-page .list-group {
    gap: 0.5rem;
}

.diagnostics-page .list-group > .list-group-item {
    border: 1px solid var(--bs-list-group-border-color);
    border-radius: var(--bs-border-radius);
}

/* Github link icon */
.github-link {
    background-image: url("/images/github-mark.png");
    background-repeat: no-repeat;
    background-size: 23px;
    height: 23px;
    width: 23px;
}
[data-bs-theme=dark] .github-link {
    background-image: url("/images/github-mark-white.png");
}
