/* Styles scoped to public auth pages (sign_in, failure, rate_limited, access_denied) */

.auth-page {
    background: rgba(var(--lg-tertiary-bg-rgb), var(--lg-bg-opacity)) !important;
    min-height: 100vh;
}

/* Shared divider styling used across auth pages */
.page-divider {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(101, 103, 105, 0.5);
    line-height: 0.1em;
}

.page-divider span {
    background: var(--lg-body-bg);
    padding: 0 10px;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}
/* Custom styles migrated from shared/_custom_css.html.slim */

:root {
    --lg-tertiary-bg: #faf9f7;
    --lg-tertiary-bg-rgb: 250, 249, 247;
    --lg-secondary-bg: #f1f2ed;
    --lg-secondary-bg-rgb: 241, 242, 237;
}

@font-face {
    font-family: "Legalio";
    src: url(/fonts/Legalio-Medium.otf) format("opentype"),
         url(/fonts/Legalio-Medium.ttf) format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

.card-title, .font-title, .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.02em;
}

.masthead-title {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.04em;
    font-size: 3.25rem;
    line-height: 100%;
}

.masthead-subtitle {
    font-family: "Legalio", Arial, sans-serif;
    font-style: normal;
    letter-spacing: -.04em;
    font-size: 2.5rem;
    line-height: 100%;
}

@media (max-width: 1200px) {
    .masthead-title {
        font-size: 3rem;
    }
    .masthead-subtitle {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .masthead-title {
        font-size: 2.5rem;
    }
    .masthead-subtitle {
        font-size: 1.5rem;
    }
}
@media (max-width: 576px) {
    .masthead-title {
        font-size: 2rem;
    }
    .masthead-subtitle {
        font-size: 1.25rem;
    }
}

/* Styles scoped to the Admin Matters New page */
.admin-matters-new .template-card {
    transition: all 0.2s ease-in-out;
}

.admin-matters-new .template-card:hover {
    border: 1px solid #007bff; /* Blue border */
    background-color: #e7f1ff; /* Light blue background */
}

.admin-matters-new .template-card.selected,
.admin-matters-new .card.selected {
    border: 1px solid #007bff; /* Thin blue border */
    background-color: #e7f1ff; /* Ensure light blue background */
}

.admin-matters-new .templates-modal .modal-dialog {
    max-width: 900px;
}

.admin-matters-new .see-more-link {
    color: #007bff;
    cursor: pointer;
}

.admin-matters-new .see-more-link:hover {
    text-decoration: underline;
}

/* Job Description Tools Styles */
.admin-matters-new #aiJobDescriptionContent {
    max-height: 300px;
    overflow-y: auto;
}

.admin-matters-new #aiJobDescriptionContent h4 {
    color: #007bff;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.admin-matters-new #aiJobDescriptionContent ul {
    padding-left: 1.5rem;
}

.admin-matters-new #aiJobDescriptionContent li {
    margin-bottom: 0.25rem;
}

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

label[required]:after {
    content: ' *';
    color: #EF4444;
}

.bg-legalio {
    background: linear-gradient(135deg, #1b2430, #1a1e27) !important;
}

.bg-legalio-dark {
    background: linear-gradient(135deg, #1b2430, #1a1e27) !important;
}

.sidebar {
    width: 60px !important;
}

.sidebar-wrapper {
    width: 60px;
    z-index: 1040;
    transition: width 0.2s ease;
    will-change: width;
}

.sidebar-wrapper.expanded,
.sidebar-wrapper.hover-expanded {
    width: 244px !important;
}

.main-content {
    transition: margin-left 0.2s ease;
    margin-left: 244px;
    /* Default to expanded state to match sidebar */
    will-change: margin-left;
}

/* Collapsed state - only when sidebar is not expanded */
.main-content.sidebar-collapsed {
    margin-left: 60px;
}

.main-content.no-transition,
.main-content.no-transition * {
    transition: none !important;
}

.sidebar-wrapper.no-transition,
.sidebar-wrapper.no-transition * {
    transition: none !important;
}

/* Prevent flash of unstyled content during initialization */
.sidebar-wrapper.expanded {
    width: 244px !important;
}

.sidebar-wrapper.expanded .sidebar {
    width: 244px !important;
}

@media (max-width: 1199.98px) {
    .sidebar-wrapper {
        width: 244px !important;
        transform: translateX(-100%);
    }

    .main-content,
    .main-content.sidebar-collapsed {
        margin-left: 0 !important;
    }
}

.text-primary {
    color: #007bff;
}

.text-dark {
    color: #333;
}

.bg-light {
    background-color: #f8f9fa;
}

.rounded {
    border-radius: 0.25rem;
}

.p-3 {
    padding: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
}

.bg-success-subtle {
    background-color: #e8f5e9 !important;
}

/* Keep navbar dropdowns within viewport on small screens */
@media (max-width: 576px) {
    .navbar .dropdown-menu {
        max-width: calc(100vw - 16px);
        width: max-content;
        /* shrink to content but not exceed viewport */
    }

    .navbar .dropdown-menu .dropdown-item,
    .navbar .dropdown-menu .dropdown-header,
    .navbar .dropdown-menu span,
    .navbar .dropdown-menu small {
        white-space: normal;
        /* allow wrapping */
        overflow-wrap: anywhere;
        /* break long words/emails */
        word-break: break-word;
    }
}

/* RFP Share modal: remove black outline on input focus */
#shareRfpModal input#shareInput:focus,
#shareRfpModal input#shareInput:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-color: #dee2e6 !important; /* keep neutral border, avoid dark/black */
    background-color: inherit !important; /* avoid forced focus bg */
}

.bg-warning-subtle {
    background-color: #fff3e0 !important;
}

.text-success {
    color: #2e7d32 !important;
}

.text-warning {
    color: #f57c00 !important;
}

/* Matter index specific styles */
.table> :not(caption)>*>* {
    padding: 1rem 0.75rem;
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.progress {
    background-color: #e9ecef;
    border-radius: 1rem;
}

.progress-bar {
    border-radius: 1rem;
}

.form-select,
.form-control {
    border-color: #dee2e6;
}

.input-group-text {
    border-color: #dee2e6;
}

.table>thead.table-light {
    background-color: #f8f9fa;
}

.table>thead.table-light th {
    font-weight: 500;
    color: #6c757d;
    border-bottom-width: 1px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--bs-nav-pills-link-active-bg) !important;
    color: var(--bs-nav-pills-link-active-color) !important;
}

.nav-pills .nav-link.active {
    background-color: rgb(219 234 254) !important;
    color: rgb(37 99 235) !important;
}

.bg-linear-gradient-light {
    background: linear-gradient(to bottom, #ebf5ff, #ffffff);
}

[data-bs-theme=dark] .bg-linear-gradient-light {
    background: linear-gradient(to bottom, #1a1e27, #1c212b);
}

.opacity-0 {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rate Obfuscation Styles for Non-Customers */
.obfuscated-rate {
    filter: blur(4px);
    -webkit-filter: blur(4px);
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.obfuscated-range {
    filter: blur(2px);
    -webkit-filter: blur(2px);
    opacity: 0.6;
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease;
}

.role-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-card {
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: scale(1.02);
}

/* Utility: hover red-100 background (Tailwind-ish) */
.hover-bg-red-100:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1)) !important;
}

.ais-Breadcrumb-list,
.ais-CurrentRefinements-list,
.ais-HierarchicalMenu-list,
.ais-Hits-list,
.ais-InfiniteHits-list,
.ais-InfiniteResults-list,
.ais-Menu-list,
.ais-NumericMenu-list,
.ais-Pagination-list,
.ais-RatingMenu-list,
.ais-RefinementList-list,
.ais-Results-list,
.ais-ToggleRefinement-list {
    margin: 0;
    padding: 0;
    list-style: none
}

.ais-ClearRefinements-button,
.ais-CurrentRefinements-delete,
.ais-CurrentRefinements-reset,
.ais-GeoSearch-redo,
.ais-GeoSearch-reset,
.ais-HierarchicalMenu-showMore,
.ais-InfiniteHits-loadMore,
.ais-InfiniteHits-loadPrevious,
.ais-InfiniteResults-loadMore,
.ais-Menu-showMore,
.ais-RangeInput-submit,
.ais-RefinementList-showMore,
.ais-SearchBox-reset,
.ais-SearchBox-submit,
.ais-VoiceSearch-button {
    padding: 0;
    overflow: visible;
    font: inherit;
    line-height: normal;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.ais-ClearRefinements-button::-moz-focus-inner,
.ais-CurrentRefinements-delete::-moz-focus-inner,
.ais-CurrentRefinements-reset::-moz-focus-inner,
.ais-GeoSearch-redo::-moz-focus-inner,
.ais-GeoSearch-reset::-moz-focus-inner,
.ais-HierarchicalMenu-showMore::-moz-focus-inner,
.ais-InfiniteHits-loadMore::-moz-focus-inner,
.ais-InfiniteHits-loadPrevious::-moz-focus-inner,
.ais-InfiniteResults-loadMore::-moz-focus-inner,
.ais-Menu-showMore::-moz-focus-inner,
.ais-RangeInput-submit::-moz-focus-inner,
.ais-RefinementList-showMore::-moz-focus-inner,
.ais-SearchBox-reset::-moz-focus-inner,
.ais-SearchBox-submit::-moz-focus-inner,
.ais-VoiceSearch-button::-moz-focus-inner {
    padding: 0;
    border: 0
}

.ais-ClearRefinements-button[disabled],
.ais-CurrentRefinements-delete[disabled],
.ais-CurrentRefinements-reset[disabled],
.ais-GeoSearch-redo[disabled],
.ais-GeoSearch-reset[disabled],
.ais-HierarchicalMenu-showMore[disabled],
.ais-InfiniteHits-loadMore[disabled],
.ais-InfiniteHits-loadPrevious[disabled],
.ais-InfiniteResults-loadMore[disabled],
.ais-Menu-showMore[disabled],
.ais-RangeInput-submit[disabled],
.ais-RefinementList-showMore[disabled],
.ais-SearchBox-reset[disabled],
.ais-SearchBox-submit[disabled],
.ais-VoiceSearch-button[disabled] {
    cursor: default
}

.ais-HierarchicalMenu-showMore,
.ais-InfiniteHits-loadMore,
.ais-InfiniteHits-loadPrevious,
.ais-Menu-showMore,
.ais-RefinementList-showMore {
    overflow-anchor: none
}

.ais-Breadcrumb-item,
.ais-Breadcrumb-list,
.ais-Pagination-list,
.ais-PoweredBy,
.ais-RangeInput-form,
.ais-RatingMenu-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center
}

.ais-GeoSearch,
.ais-GeoSearch-map {
    height: 100%
}

.ais-HierarchicalMenu-list .ais-HierarchicalMenu-list {
    margin-left: 1em
}

.ais-PoweredBy-logo {
    display: block;
    height: 1.2em;
    width: auto
}

.ais-RatingMenu-starIcon {
    display: block;
    width: 20px;
    height: 20px
}

.ais-SearchBox-input::-ms-clear,
.ais-SearchBox-input::-ms-reveal {
    display: none;
    width: 0;
    height: 0
}

.ais-SearchBox-input::-webkit-search-cancel-button,
.ais-SearchBox-input::-webkit-search-decoration,
.ais-SearchBox-input::-webkit-search-results-button,
.ais-SearchBox-input::-webkit-search-results-decoration {
    display: none
}

.ais-RangeSlider .rheostat {
    overflow: visible;
    margin-top: 40px;
    margin-bottom: 40px
}

.ais-RangeSlider .rheostat-background {
    height: 6px;
    top: 0;
    width: 100%
}

.ais-RangeSlider .rheostat-handle {
    margin-left: -12px;
    top: -7px
}

.ais-RangeSlider .rheostat-background {
    position: relative;
    background-color: #fff;
    border: 1px solid #aaa
}

.ais-RangeSlider .rheostat-progress {
    position: absolute;
    top: 1px;
    height: 4px;
    background-color: #333
}

.rheostat-handle {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #333;
    border-radius: 50%;
    cursor: -webkit-grab;
    cursor: grab
}

.rheostat-marker {
    margin-left: -1px;
    position: absolute;
    width: 1px;
    height: 5px;
    background-color: #aaa
}

.rheostat-marker--large {
    height: 9px
}

.rheostat-value {
    padding-top: 15px
}

.rheostat-tooltip,
.rheostat-value {
    margin-left: 50%;
    position: absolute;
    text-align: center;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
}

.rheostat-tooltip {
    top: -22px
}
