:root {
    --bs-primary: #72151b;
    --bs-primary-rgb: 114, 21, 27;
    --brand-primary: #72151b;
    --brand-secondary: #d6ba9f;
    --brand-surface: #fcf9f4;
    --brand-ink: #1c1c19;
}

@font-face {
    font-display: swap;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/montserrat.woff2") format("woff2");
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--brand-ink);
    font-family: "Montserrat", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

[x-cloak] {
    display: none !important;
}

.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.bg-primary {
    background-color: var(--brand-primary) !important;
}

.text-primary {
    color: var(--brand-primary) !important;
}

.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.btn-outline-light.text-brand-secondary {
    border-color: var(--brand-secondary) !important;
}

.btn-outline-light.text-brand-secondary.btn.show, 
.btn-outline-light.text-brand-secondary:hover {
    color: var(--bs-btn-hover-color) !important;
}

.border-primary {
    border-color: var(--brand-primary) !important;
}

.border-brand-secondary {
    border-color: var(--brand-secondary) !important;
}

.btn-primary {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: #5f1117;
    --bs-btn-hover-border-color: #5f1117;
    --bs-btn-active-bg: #4d0d12;
    --bs-btn-active-border-color: #4d0d12;
    --bs-btn-disabled-bg: var(--brand-primary);
    --bs-btn-disabled-border-color: var(--brand-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: var(--brand-primary);
    --bs-btn-hover-border-color: var(--brand-primary);
}

.form-control:focus,
.form-range:focus::-webkit-slider-thumb {
    border-color: rgba(var(--bs-primary-rgb), 0.45);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.15);
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--brand-primary) !important;
}

.form-range::-moz-range-thumb:active {
    background-color: var(--brand-primary) !important;
}

.form-range:focus::-webkit-slider-thumb {
    background-image: none !important;
    background-color: var(--brand-primary) !important;
}

.form-range:focus::-moz-range-thumb {
    background-image: none !important;
    background-color: var(--brand-primary) !important;
}

.form-range::-webkit-slider-thumb {
    background: var(--brand-primary);
}

.form-range::-moz-range-thumb {
    background: var(--brand-primary);
}



.loading,
.loading_dark {
    position: relative;
    overflow: hidden !important;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after,
.loading_dark::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: loading 1.2s infinite;
}

.loading_dark::after {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.25), transparent);
}

@keyframes loading {
    100% {
        left: 100%;
    }
}

.disabled-element-opacity-05 {
    pointer-events: none;
    opacity: 0.5;
}

.app-toast-container .toast-body {
    white-space: pre-line;
}

@media (min-width: 900px) {
    .toast-above-footer-page .app-toast-container {
        bottom: var(--app-toast-footer-offset, 0px) !important;
    }
}

.navbar .navbar-brand {
    letter-spacing: 1px;
}

.navbar .nav-link {
    color: rgba(214, 186, 159, 0.85);
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
    border-bottom-color: var(--brand-secondary);
}

.avatar-button {
    width: 48px;
    height: 48px;
}

.avatar-button::after {
    display: none;
}

.dropdown-item:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.06);
    color: var(--brand-primary);
}

.dropdown-item:active,
.dropdown-item:focus {
    background-color: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--brand-primary);
}

.dropdown-item.text-danger:hover {
    background-color: rgba(220, 53, 69, 0.06);
    color: var(--bs-danger) !important;
}

.dropdown-item.text-danger:active,
.dropdown-item.text-danger:focus {
    background-color: rgba(220, 53, 69, 0.08);
    color: var(--bs-danger) !important;
}

.hero-section {
    min-height: 80vh;
}

.hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.9));
}

.hero-content {
    max-width: 920px;
}

.hero-subtitle {
    max-width: 650px;
}

.hero-search {
    backdrop-filter: blur(18px);
}

.accent-line {
    width: 64px;
    height: 4px;
}

.ratio-square {
    aspect-ratio: 1 / 1;
}

.graduate-card {
    background: rgba(214, 186, 159, 0.15);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.graduate-card:hover {
    background: rgba(214, 186, 159, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--brand-primary);
    font-size: 1.6rem;
}

.privileges-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.visual-accent-bg,
.visual-accent-border,
.visual-image-wrapper {
    position: absolute;
    inset: 0;
}

.visual-accent-bg {
    background-color: var(--brand-primary);
    transform: translate(24px, 24px);
}

.visual-accent-border {
    border: 2px solid var(--brand-secondary);
    transform: translate(48px, 48px);
}

.visual-image-wrapper {
    z-index: 1;
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-quote-card {
    max-width: 280px;
}

.catalog-container {
    min-height: calc(100vh - 72px);
    background-color: var(--brand-surface);
}

.sidebar-sticky {
    width: 320px;
    position: sticky;
    top: 96px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.min-w-0 {
    min-width: 0;
}

.min-candidate-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.min-candidate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.candidate-avatar {
    width: 80px;
    height: 80px;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.border-dashed {
    border-style: dashed;
}

.auth-card {
    max-width: 520px;
}

.publication-consent-modal.fade .modal-dialog,
.publication-consent-modal.show .modal-dialog {
    transform: translateY(-5vh);
}

.publication-consent-modal .modal-content {
    max-height: calc(80vh - 2rem);
    max-height: calc(80dvh - 2rem);
}

.publication-consent-modal .consent-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
}

.publication-consent-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
}

.consent-accept-button {
    max-width: 400px;
}

.profile-page {
    max-width: 1200px;
}

.profile-label {
    width: 260px;
    flex: 0 0 260px;
}

.photo-container {
    position: relative;
    width: 160px;
    height: 210px;
    overflow: hidden;
    cursor: pointer;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.25s;
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.photo-container.empty-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.photo-container i.empty-photo {
    font-size: 96px;
    color: #bdbdbd;
}

.profile-save-btn {
    width: 38px;
    height: 38px;
    padding: 6px 11px;
}

.custom-autocomplete.autocomplete-open,
.profile-field-row:has(.autocomplete-open) {
    z-index: 1060;
}

.autocomplete-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    max-height: 250px;
    overflow-y: auto;
}

@media (max-width: 991.98px) {
    .sidebar-sticky {
        width: 100%;
        position: static;
    }
}

@media (max-width: 767.98px) {
    .profile-label {
        width: auto;
        flex-basis: auto;
    }

    .photo-container {
        width: 100%;
        max-width: 220px;
    }

    .visual-quote-card {
        max-width: none;
    }
}


.progress-bar-indeterminate {
    animation: indeterminate-run 1.2s infinite linear;
    border-radius: 2px;
}

@keyframes indeterminate-run {
    0% {
        left: -40%;
        right: 100%;
    }

    50% {
        left: 30%;
        right: 20%;
    }

    100% {
        left: 100%;
        right: -40%;
    }
}

.filter-grayscale {
    filter: grayscale(100%) !important;
}


.border-dashed {
    border: 2px dashed #0d6efd !important;
    background-color: #f8f9fa;
    color: #0d6efd !important;
}

.border-dashed:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.shadow-xs {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04) !important;
}

.text-xs {
    font-size: 0.75rem;
}

[x-cloak] { 
    display: none !important; 
}

select.form-select.loading_dark {
    background-image:
        linear-gradient(100deg, transparent 20%, rgba(0, 0, 0, 0.28) 50%, transparent 80%),
        var(--bs-form-select-bg-img);
    background-repeat: no-repeat;
    background-size: 200% 100%, 16px 12px;
    animation: select-loading-dark 1.2s linear infinite;
}

@keyframes select-loading-dark {
    from { background-position: 200% 0, right 0.75rem center; }
    to { background-position: -200% 0, right 0.75rem center; }
}

.profile-page .btn-outline-primary:active,
.profile-page .btn-outline-primary.active,
.profile-page .btn-outline-primary:first-child:active {
    --bs-btn-active-color: var(--bs-primary);
    --bs-btn-active-bg: transparent; 
    --bs-btn-active-border-color: var(--bs-primary);
}

.modal {
    --bs-modal-width: 700px;
}
