/** FONTS **/

@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/proxima-nova/ProximaNova-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/proxima-nova/ProximaNova-Semibold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/proxima-nova/ProximaNova-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Proxima Nova';
    src: url('../fonts/proxima-nova/ProximaNova-RegularIt.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

.very-likely-highlight {
    background-color: #fee2e2;
    text-decoration: underline;
    text-decoration-color: #b91c1c;
    text-decoration-thickness: 2px;
    font-weight: 500;
}

.very-likely-highlight-hover {
    background-color: #ffb7b7;
    text-decoration: underline;
    text-decoration-color: #b91c1c;
    text-decoration-thickness: 2px;
    font-weight: 500;
}

.very-likely-bg {
    background-color: #fee2e2;
    color: #b91c1c;
}

.likely-highlight {
    background-color: #fef3c7;
    text-decoration: underline;
    text-decoration-color: #92400e;
    text-decoration-thickness: 2px;
    font-weight: 500;
}

.likely-highlight-hover {
    background-color: #ffe786;
    text-decoration: underline;
    text-decoration-color: #92400e;
    text-decoration-thickness: 2px;
    font-weight: 500;
}

.likely-bg {
    background-color: #fef3c7;
    color: #92400e;
}

/* NEED TO UPDATE */
.possible-highlight {
    background-color: #e0f2fe;
    text-decoration: underline;
    text-decoration-color: #0369a1;
    text-decoration-thickness: 2px;
    font-weight: 500;
}

.possible-highlight-hover {
    background-color: #b4e6cf;
    text-decoration: underline;
    text-decoration-color: #15803d;
    text-decoration-thickness: 2px;
    font-weight: 500;
}

/* NEED TO UPDATE */
.possible-bg {
    background-color: #e0f2fe;
    color: #0369a1;
}

.hover-highlight {
    background-color: #f8f9fa;
}

body {
    font-family: 'Proxima Nova', 'Inter', sans-serif;
    background-color: #fbfbff;
    color: #212529;
}

.navbar {
    background-color: #16004d;
}

.navbar-brand, .nav-link {
    color: #cfb9f2; /* Update link color */
}

.navbar-brand:hover, .nav-link:hover {
    color: #cfb9f2; /* Apply link color on hover */
}

a.link { 
    color: #5e15d4;
    text-decoration: none;
    font-weight: 600;
}

.icon {
    padding-right: 15px;
}

.dropdown-item:hover {
    background-color: #f5f1fc;
    color: #5e15d4;
}

.hero-section {
    background-color: #e9ecef;
    padding: 2rem 0;
}
.main-content, .sidebar {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden; /* Hide by default */
}
.spinner-border {
    width: 3rem;
    height: 3rem;
}
footer {
    /* background-color: #fff; */
    color: #50507d;
    padding: 1rem 0;
    text-align: center;
    font-weight: 500;   
}
.navbar-brand {
    font-family: 'Source Code Pro', monospace;
    font-weight: 500;
}
.code-font {
    font-family: 'Source Code Pro', monospace;
}

.btn-purple {
    background-color: #5e15d4;
    color: #fff;
}

.btn-purple:hover, .btn-purple:focus, .btn-purple:active, .btn-purple:visited, .btn-purple:focus-visible {
    background-color: #4a10a5;
    color: #fff;
}

.bold {
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: #fff; /* Replace with your desired color */
}
.accordion-button {
    font-weight: 500;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #5e15d4;
    --bs-btn-border-color: #5e15d4;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4a10a5;
    --bs-btn-hover-border-color: #4a10a5;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4a10a5;
    --bs-btn-active-border-color: #4a10a5;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #5e15d4;
    --bs-btn-disabled-border-color: #5e15d4;
    font-weight: 500;
}

.valid-text {
    color: #15803d;
}

.valid-card {
    border: 1px solid #22c55e;
}

.invalid-text {
    color: #ef4444;
}

.invalid-card {
    border: 1px solid #ef4444;
}

.validation-result {
    font-size: 1.25rem;
    font-weight: bold;
}

.input-box {
    line-height: 1.75;
    font-size: 1.25rem;
}

.btn-inner {
    font-size: 1rem;
    line-height: 1.75;
    --bs-btn-padding-x: 1.75rem;
    --bs-btn-padding-y: 0.575rem;
}

.form-check-input:checked {
    background-color: #5e15d4; /* Custom color */
    border-color: #5e15d4;
}

.full-height {
    height: calc(100vh - 225px); /* Full viewport height */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden; /* Prevent overall scrolling */
}

.card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent overflow */
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent scrolling */
}

.row {
    flex: 1;
    overflow: hidden;
}

.col-md-3 {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.col-md-3 > .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#summary-box {
    flex: 0 0 auto; /* Fixed height */
}

#findings-list {
    flex: 1 1 0;
    overflow-y: auto; /* Enable scrolling */
    min-height: 0; /* Allow shrinking */
}

/* Ensure list items don't collapse */
#findings-list .list-group-item {
    flex-shrink: 0;
}

/* TinyMCE specific styles */
.tox-tinymce {
    border: none !important;
    background-color: transparent !important;
}

.tox .tox-edit-area__iframe {
    background-color: transparent !important;
}

#detection-input-container {
    position: relative;
    overflow: hidden;
}

#detection-input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tox.tox-tinymce {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tox .tox-edit-area {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.col-md-7 {
    max-height: 100%;
    overflow: hidden;
}

#findings-list.list-group-flush .list-group-item:last-child {
    border-bottom: 1px solid var(--bs-border-color) !important;
}

#scanSpinner.spinner-border {
    font-size: inherit;
    width: 1em;
    height: 1em;
    border-width: 0.15em;
}

.badge-grey {
    background-color: #f0f0f5;
    color: #1c1850;
}

/* Webkit browsers like Chrome, Safari */
#min-confidence-slider::-webkit-slider-thumb {
    background-color: #5e15d4;
}

/* Firefox */
#min-confidence-slider::-moz-range-thumb {
    background-color: #5e15d4;
}

/* IE and Edge */
#min-confidence-slider::-ms-thumb {
    background-color: #5e15d4;
}

/* Optional: Change the slider track color */
#min-confidence-slider::-webkit-slider-runnable-track {
    background-color: #f0f0f5;
}
#min-confidence-slider::-moz-range-track {
    background-color: #f0f0f5;
}
#min-confidence-slider::-ms-track {
    background-color: #f0f0f5;
}

.bg-light-grey {
    background-color: #f0f0f5 !important;
}

.btn-secondary {
    --bs-btn-color: #5e15d4;
    --bs-btn-bg: #ece3fa;
    --bs-btn-border-color: #ece3fa;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5c636a;
    --bs-btn-hover-border-color: #565e64;
    --bs-btn-focus-shadow-rgb: 130, 138, 145;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #565e64;
    --bs-btn-active-border-color: #51585e;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6c757d;
    --bs-btn-disabled-border-color: #6c757d;
}

.btn-outline-secondary {
    --bs-btn-color: #50507d;
    --bs-btn-bg: #f0f0f5;
    --bs-btn-border-color: #f0f0f5;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6c757d;
    --bs-btn-hover-border-color: #6c757d;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #6c757d;
    --bs-btn-active-border-color: #6c757d;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #6c757d;
    --bs-gradient: none;
}

:root {
    --bs-border-color-translucent: #f0f0f5;
    --bs-border-color: #f0f0f5;
}