@import url('https://fonts.googleapis.com/css2?family=Rouge+Script&display=swap');

body, html, :root {
    background-color: #f5f7fb;
    font-size: .9rem;
}

.bg-admin-menu {
    background-color: #c0392b;
}

/**
 * Fonts
 */

.rouge-script-regular {
    font-family: "Rouge Script", cursive;
    font-weight: 400;
    font-style: normal;
}

/**
 * Tables
 */

.table-horizontal th {
    width: 15%;
    white-space: nowrap;
}

.table-horizontal td {
    padding-left: 10px;
}

.min-with-no-wrap {
    width: 1%;
    white-space: nowrap;
}

/**
 * Animations
 */

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.blinking {
    animation: blink 0.5s infinite;
}

/* ----- Articles (news of the dashboard, see article-editor-controller.js) ----- */

.article-content {
    text-align: justify;
}

.article-content h2 {
    color: var(--bs-primary);
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1rem;
}

.article-content h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-top: .75rem;
}

.article-content ul,
.article-content ol {
    line-height: 1.8;
}

.article-content li > p {
    margin-bottom: 0;
}

.article-content .article-list-circle { list-style-type: circle; }
.article-content .article-list-square { list-style-type: square; }
.article-content .article-list-check { list-style-type: "✓  "; }
.article-content .article-list-check > li::marker { color: var(--bs-success); font-weight: 700; }
.article-content .article-list-arrow { list-style-type: "➤  "; }
.article-content .article-list-arrow > li::marker { color: var(--bs-primary); }
.article-content .article-list-none { list-style-type: none; padding-left: .5rem; }
.article-content .article-list-lower-alpha { list-style-type: lower-alpha; }
.article-content .article-list-upper-alpha { list-style-type: upper-alpha; }
.article-content .article-list-lower-roman { list-style-type: lower-roman; }

.article-content .article-callout {
    border-left: 4px solid;
    border-radius: .25rem;
    margin: .75rem 0;
    padding: .5rem .75rem;
}

.article-content .article-callout > :last-child {
    margin-bottom: 0;
}

.article-content .article-callout-info {
    background-color: var(--bs-info-bg-subtle);
    border-color: var(--bs-info);
}

.article-content .article-callout-warning {
    background-color: var(--bs-warning-bg-subtle);
    border-color: var(--bs-warning);
}

.article-content .article-callout-success {
    background-color: var(--bs-success-bg-subtle);
    border-color: var(--bs-success);
}

.article-document::before {
    content: "\f56d"; /* Font Awesome "file-download" */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: .25rem;
}

.article-editor-content {
    min-height: 20rem;
    max-height: 70vh;
    overflow-y: auto;
}

.article-editor-content:focus {
    outline: none;
}

/* Slightly larger icons than the small buttons, all buttons with the same width */
.article-editor-toolbar .btn-sm {
    min-width: 2.1rem;
}

.article-editor-toolbar .btn-sm .fa {
    font-size: 0.95rem;
}

.article-editor-toolbar .btn.active {
    background-color: var(--bs-secondary);
    color: var(--bs-white);
}

/* ----- Administration dashboards ----- */

/* Loader displayed over a widget while it is computed again (live action in progress) */
.dashboard-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--bs-body-bg-rgb), 0.6);
    border-radius: var(--bs-border-radius);
}
