/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/roboto-variable-68137444.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/roboto-variable-68137444.woff2") format("woff2");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/open-sans-400-07efb3cd.woff2") format("woff2");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/open-sans-500-d2e7de58.woff2") format("woff2");
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/open-sans-600-1b3f7db6.woff2") format("woff2");
}

html {
    overflow-anchor: none;
}

:root {
    --custom-purple: #361291;
    --custom-purple-rgb: 54, 18, 145;
    --custom-purple-dark: #1f065f;
    --custom-purple-light: #805bdd;

    --custom-yellow: #ffb307;
    --custom-yellow-rgb: 255, 179, 7;
    --custom-yellow-dark: #e19e02;
    --custom-yellow-light: #f0be48;

    --bs-primary-rgb: 54, 18, 146;
    --bs-primary-dark-rgb: 31, 6, 95;
    --bs-primary-light-rgb: 128, 91, 221;
    --bs-info-rgb: 255, 179, 7;

    --bs-link-color: var(--custom-purple);
    --bs-link-color-rgb: 54, 18, 145;

    --bs-body-font-family: "Open Sans", var(--bs-font-sans-serif);
    --font-heading: "Roboto", var(--bs-font-sans-serif);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(31, 6, 95, 0.08);
    --shadow-md: 0 6px 16px rgba(31, 6, 95, 0.12);
    --shadow-lift: 0 14px 28px rgba(31, 6, 95, 0.20);
}

h1, h2, h3, h4, h5, h6,
.card-title, .navbar-brand {
    font-family: var(--font-heading);
}

.btn, .badge {
    font-weight: 600;
}

.btn {
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.search-btn {
    min-width: 6.5rem;
}

.btn:focus-visible, .nav-link:focus-visible, .page-link:focus-visible, a:focus-visible {
    outline: 2px solid var(--custom-purple-light);
    outline-offset: 2px;
}

.badge.text-bg-secondary {
    border-radius: var(--radius-sm);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.badge-fill-purple,
.badge-fill-gold,
.badge-fill-neutral,
.badge-fill-danger,
.badge-fill-success {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.3em 0.6em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    text-align: center;
}

.badge-fill-purple {
    background-color: rgba(var(--custom-purple-rgb), 0.75);
    color: #ffffff;
}

.badge-fill-gold {
    background-color: rgba(var(--custom-yellow-rgb), 0.5);
    color: var(--custom-purple-dark);
}

.badge-fill-neutral {
    background-color: var(--bs-secondary);
    color: #ffffff;
}

.badge-fill-danger {
    background-color: var(--bs-danger);
    color: #ffffff;
}

.badge-fill-success {
    background-color: var(--bs-success);
    color: #ffffff;
}

.pagination {
    --bs-pagination-color: var(--custom-purple);
    --bs-pagination-hover-color: var(--custom-purple-dark);
    --bs-pagination-active-bg: var(--custom-purple);
    --bs-pagination-active-border-color: var(--custom-purple);
    --bs-pagination-focus-color: var(--custom-purple-dark);
    --bs-pagination-border-radius: var(--radius-sm);
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: var(--radius-sm) !important;
    margin-left: 0;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .pagination .page-link {
        transition: none;
    }
}

.task-card {
    border-left: 3px solid var(--custom-yellow);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.task-card .card-body {
    padding: 0.75rem 1rem;
}

.task-card .h5 {
    font-size: 1.05rem;
    font-weight: 600;
}

.task-card.mr-card {
    border-left-color: var(--custom-purple);
}

.task-card.neutral-card {
    border-left-color: var(--bs-secondary);
}

.task-card:hover,
.task-card:focus-within {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .task-card {
        transition: none;
        transform: none !important;
    }
}

.btn-outline-primary {
    --bs-btn-color: var(--custom-purple);
    --bs-btn-border-color: var(--custom-purple);
    --bs-btn-hover-bg: var(--custom-purple);
    --bs-btn-hover-border-color: var(--custom-purple-dark);
    --bs-btn-active-bg: var(--custom-purple-dark);
    --bs-btn-active-border-color: var(--custom-purple-dark);
    --bs-btn-disabled-color: var(--custom-purple-light);
    --bs-btn-disabled-border-color: var(--custom-purple-light);
}

.btn-primary {
    --bs-btn-bg: var(--custom-purple);
    --bs-btn-border-color: var(--custom-purple);
    --bs-btn-hover-bg: var(--custom-purple-dark);
    --bs-btn-hover-border-color: var(--custom-purple-dark);
    --bs-btn-active-bg: var(--custom-purple-dark);
    --bs-btn-active-border-color: var(--custom-purple-dark);
    --bs-btn-disabled-bg: var(--custom-purple-light);
    --bs-btn-disabled-border-color: var(--custom-purple-light);
}

.btn-outline-info {
    --bs-btn-color: var(--custom-yellow);
    --bs-btn-border-color: var(--custom-yellow);
    --bs-btn-hover-bg: var(--custom-yellow);
    --bs-btn-hover-border-color: var(--custom-yellow-dark);
    --bs-btn-active-bg: var(--custom-yellow-dark);
    --bs-btn-active-border-color: var(--custom-yellow-dark);
    --bs-btn-disabled-color: var(--custom-yellow-light);
    --bs-btn-disabled-border-color: var(--custom-yellow-light);
    --bs-btn-hover-color: #ffffff;
}

.btn-info {
    --bs-btn-bg: var(--custom-yellow);
    --bs-btn-border-color: var(--custom-yellow);
    --bs-btn-hover-bg: var(--custom-yellow-dark);
    --bs-btn-hover-border-color: var(--custom-yellow-dark);
    --bs-btn-active-bg: var(--custom-yellow-dark);
    --bs-btn-active-border-color: var(--custom-yellow-dark);
    --bs-btn-disabled-bg: var(--custom-yellow-light);
    --bs-btn-disabled-border-color: var(--custom-yellow-light);
    --bs-btn-color: #ffffff;
    --bs-btn-hover-color: #ffffff;
}

.btn-fill-gold {
    --bs-btn-color: var(--custom-purple-dark);
    --bs-btn-bg: rgba(var(--custom-yellow-rgb), 0.5);
    --bs-btn-border-color: rgba(var(--custom-yellow-rgb), 0.5);
    --bs-btn-hover-color: var(--custom-purple-dark);
    --bs-btn-hover-bg: rgba(var(--custom-yellow-rgb), 0.7);
    --bs-btn-hover-border-color: rgba(var(--custom-yellow-rgb), 0.7);
    --bs-btn-active-color: var(--custom-purple-dark);
    --bs-btn-active-bg: rgba(var(--custom-yellow-rgb), 0.7);
    --bs-btn-active-border-color: rgba(var(--custom-yellow-rgb), 0.7);
    --bs-btn-disabled-color: var(--custom-purple-dark);
    --bs-btn-disabled-bg: rgba(var(--custom-yellow-rgb), 0.5);
    --bs-btn-disabled-border-color: rgba(var(--custom-yellow-rgb), 0.5);
    --bs-btn-disabled-opacity: 1;
}

.btn-outline-gold {
    --bs-btn-color: var(--custom-purple-dark);
    --bs-btn-border-color: rgba(var(--custom-yellow-rgb), 0.5);
    --bs-btn-hover-color: var(--custom-purple-dark);
    --bs-btn-hover-bg: rgba(var(--custom-yellow-rgb), 0.25);
    --bs-btn-hover-border-color: rgba(var(--custom-yellow-rgb), 0.5);
    --bs-btn-active-color: var(--custom-purple-dark);
    --bs-btn-active-bg: rgba(var(--custom-yellow-rgb), 0.35);
    --bs-btn-active-border-color: rgba(var(--custom-yellow-rgb), 0.5);
    --bs-btn-disabled-color: var(--custom-purple-dark);
    --bs-btn-disabled-border-color: rgba(var(--custom-yellow-rgb), 0.3);
    --bs-btn-disabled-opacity: 1;
}

.btn-group-custom {
    form:first-of-type {
        button {
            border-bottom-right-radius: 0;
            border-top-right-radius: 0;
            border-right: 0;
        }
    }
    form:not(:first-child):not(:last-child) {
        button {
            border-radius: 0
        }
    }
    form:last-of-type {
        button {
            border-bottom-left-radius: 0;
            border-top-left-radius: 0;
            border-left: 0;
        }
    }
}

.dropdown-item.active {
    --bs-dropdown-link-active-color: var(--bs-dark);
    --bs-dropdown-link-active-bg: rgba(var(--bs-primary-light-rgb), 0.2);
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.2);
  border-color: var(--bs-primary-rgb);
}

.navbar .nav-link {
    position: relative;
    padding-bottom: 0.35rem;

    &.active {
        color: var(--bs-dark);
        font-weight: 600;
    }

    &.active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2px;
        border-radius: 999px;
        background: var(--custom-purple);
    }

    &:hover {
        color: var(--bs-dark)
    }
}

.bg-primary-dark {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-dark-rgb), var(--bs-bg-opacity));
}

.bg-primary-light {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-light-rgb), var(--bs-bg-opacity));
}

.taxonomy-sidebar {
    border-radius: var(--radius-sm);
    background-color: rgba(var(--custom-purple-rgb), 0.035);
    padding: 0.75rem;
}

.taxonomy-sidebar .taxonomy-category-item:not(:last-child) {
    margin-bottom: 0.25rem;
}

.taxonomy-link {
    display: block;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--bs-body-color);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.taxonomy-link:hover {
    background-color: rgba(var(--custom-purple-rgb), 0.08);
    color: var(--custom-purple-dark);
}

.taxonomy-link.active {
    color: var(--custom-purple);
    background-color: rgba(var(--custom-purple-rgb), 0.10);
    border-left-color: var(--custom-purple);
}

.taxonomy-subcategories {
    border-left: 2px solid var(--bs-border-color);
    margin-left: 0.9rem;
    padding-left: 0.5rem;
}

.tasks-panel .taxonomy-scroll {
    max-height: calc(100vh - 18rem);
    overflow-y: auto;
}

.tasks-panel .tasks-results-scroll {
    max-height: calc(100vh - 24rem);
    overflow-y: auto;
    padding-top: 8px;
    margin-top: -8px;
    padding-right: 0.25rem;
}

.task-selection-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
    "select state"
    "actions actions";
    align-items: center !important;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
}

.task-selection-toolbar > .form-check {
    grid-area: select;
}

.task-selection-toolbar #selection-state {
    grid-area: state;
    justify-self: end;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: right !important;
    font-weight: 600;
}

.task-selection-toolbar > .ms-auto {
    grid-area: actions;
    margin-left: 0 !important;
    display: flex !important;
    justify-content: flex-end;
    align-items: stretch;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.task-selection-toolbar > .ms-auto .btn,
.task-selection-toolbar > .ms-auto .dropdown-toggle,
.task-selection-toolbar > .ms-auto #collectionsDropdown {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#collection-drop-container {
    display: flex;
}

#collection-drop-container .dropdown,
#collection-drop-container .btn-group {
    display: flex;
}

@media (max-width: 991.98px) {
    .task-selection-toolbar {
        grid-template-columns: 1fr;
        grid-template-areas:
      "select"
      "state"
      "actions";
    }

    .task-selection-toolbar #selection-state {
        justify-self: start;
        text-align: left !important;
    }

    .task-selection-toolbar > .ms-auto {
        justify-content: flex-start;
    }
}