﻿@import url('https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    background-color: #eee;
}

.fira-mono {
    font-family: "Fira Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.fira-sans {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.welcome-heading {
    font-family: "Fira Mono", monospace;
    font-weight: 400;
    font-style: normal;
    color: #333 !important;
}

.welcome-subheading {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #333 !important;
}

.ready-btn {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.login-heading {
    font-family: "Fira Mono", monospace;
    font-weight: 400;
    font-style: normal;
    color: #333 !important;
}

.login-label {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #333 !important;
    font-size: 20px;
}

.login-instructions {
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #333 !important;
    font-size: 20px;
}

nav.navbar a {
    font-family: "Fira Mono", monospace;
    font-weight: 400;
    font-style: normal;
    color: #333 !important;
}

a.dropdown-toggle {
    cursor: pointer;
}

a.dark-nav {
    color: #666;
}

a.nav-link:hover {
    color: #333;
}

a.navbar-brand:hover {
    color: #333;
}

footer.main-footer {
    /*position: absolute;*/
    bottom: 0;
    width: 100%;
}

.custom-radiobutton input[type="radio"] {
    display: none;
}

.custom-radiobutton label {
    position: relative;
    padding-left: 2em;
    cursor: pointer;
    font-size: 32px;
    line-height: 32px;
    color: #333;
}

    .custom-radiobutton label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border: 2px solid #333;
        border-radius: 50%;
        background-color: white;
        box-sizing: border-box; /* Ensure borders are included in size calculations */
    }

    .custom-radiobutton label::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        width: 16px;
        height: 16px;
        background-color: #333;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s ease;
        box-sizing: border-box;
    }

.custom-radiobutton input[type="radio"]:checked + label::before {
    background-color: white;
    border-color: #333;
}

.custom-radiobutton input[type="radio"]:checked + label::after {
    opacity: 1;
}

.custom-radiobutton-correct input[type="radio"] {
    display: none;
}

.custom-radiobutton-correct label {
    position: relative;
    padding-left: 2em;
    cursor: pointer;
    font-size: 32px;
    line-height: 32px;
    color: #17c671;
}

    .custom-radiobutton-correct label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border: 2px solid #17c671;
        border-radius: 50%;
        background-color: white;
        box-sizing: border-box; /* Ensure borders are included in size calculations */
    }

    .custom-radiobutton-correct label::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        width: 16px;
        height: 16px;
        background-color: #17c671;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s ease;
        box-sizing: border-box;
    }

.custom-radiobutton-correct input[type="radio"]:checked + label::before {
    background-color: white;
    border-color: #17c671;
}

.custom-radiobutton-correct input[type="radio"]:checked + label::after {
    opacity: 1;
}

.custom-radiobutton-incorrect input[type="radio"] {
    display: none;
}

.custom-radiobutton-incorrect label {
    position: relative;
    padding-left: 2em;
    cursor: pointer;
    font-size: 32px;
    line-height: 32px;
    color: #c4183c;
}

    .custom-radiobutton-incorrect label::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border: 2px solid #c4183c;
        border-radius: 50%;
        background-color: white;
        box-sizing: border-box; /* Ensure borders are included in size calculations */
    }

    .custom-radiobutton-incorrect label::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        width: 16px;
        height: 16px;
        background-color: #c4183c;
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.2s ease;
        box-sizing: border-box;
    }

.custom-radiobutton-incorrect input[type="radio"]:checked + label::before {
    background-color: white;
    border-color: #c4183c;
}

.custom-radiobutton-incorrect input[type="radio"]:checked + label::after {
    opacity: 1;
}

.btn-multiple-choice {
    font-weight: bold;
    width: 100%;
}

.feature-image {
    max-width: 100%;
    max-height: 400px; /* Set a maximum height for the image */
    height: auto;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

#progress-container {
    position: relative;
    width: 50%;
    /*height: 25%;*/
    margin: 0 auto; /* This centers the progress bar container */
}

.progressbar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Raleway', Helvetica, sans-serif;
    /*font-size: 3rem !important;*/
    text-align: center;
    color: black !important;
}

.nav-pills .nav-link {
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 50px;
}

.nav-pills .nav-item .nav-link.profile-link {
    color: #333;
}
.nav-pills .nav-item .nav-link.profile-link.active {
    background-color: #fd9e2e;
    color: #FFF
}.nav-pills .nav-item .nav-link.profile-link:hover {
    background-color: #fd9e2e;
    color: #FFF
}

.nav-pills .nav-link:hover {
    color: #FFF;
}

.alert.alert-centriq {
    background-color: #fd9e2e;
    color: #fff;
}
.btn.btn-outline-centriq {
    background-color: none;
    border: solid 1px #fd9e2e;
    color: #fd9e2e;
}.btn.btn-outline-centriq:hover {
    background-color: #fd9e2e;
    color: #fff;
}

a#forgot-password {
    font-family: "Fira Sans", sans-serif;
    font-size: 20px;
    margin: 2em 0 1em;
    font-weight: bold;
    color: #fd9e2e !important;
}
a#forgot-password:hover {
    text-decoration: underline;
}

.results-detail p {
    margin-bottom: 0;
}

.results-detail:not(:first-child) {
    margin-top: 2em;
}

.results-buttons {
    align-content: center;
}

    .results-buttons a {
        width: 90%;
    }

        .results-buttons a:hover {
            color: #FFF !important;
        }

.d-print-block {
    display: none;
}

@media print {
    /* Hide navigation elements and buttons */
    .nav, button, .results-buttons, .nav-pills, .d-print-none, .card-body > .row:first-child, .row.mt-5 {
        display: none !important;
    }

    /* Ensure all tab content is visible */
    .tab-content > .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Add labels for each section */
    .tab-pane#correct::before,
    .tab-pane#incorrect::before,
    .tab-pane#incomplete::before {
        font-size: 1.5em;
        font-weight: bold;
        display: block;
        margin-top: 1em;
    }

    .tab-pane#correct::before {
        content: "Correct Answers";
    }

    .tab-pane#incorrect::before {
        content: "Incorrect Answers";
    }

    .tab-pane#incomplete::before {
        content: "Incomplete Answers";
    }

    /* Ensure the print-only content is visible */
    .d-print-block {
        display: block !important;
    }

    /* Top content */
    .print-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
    }

    .print-info {
        margin-bottom: 20px;
    }

        .print-info h3 {
            margin-bottom: 10px;
        }

    .print-details h5 {
        margin-bottom: 5px;
    }

    .print-progress {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #progress-container-print {
        width: 150px;
        height: 150px;
        position: relative;
        margin-bottom: 10px;
    }

        #progress-container-print svg {
            width: 100%;
            height: 100%;
        }

        #progress-container-print .progressbar-text {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            font-size: 2rem;
            font-family: 'Fira Mono', monospace, sans-serif;
        }

    /* Horizontal rule */
    hr {
        border-top: 1px solid #000;
        margin: 20px 0;
        width: 100%;
    }

    /* Adjust spacing for results details */
    .results-detail {
        margin-top: 1em;
        page-break-inside: avoid;
    }

    /* Ensure content flows continuously */
    .tab-pane {
        break-inside: avoid;
    }

    /* Additional styles for better print layout */
    body {
        font-size: 12pt;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
    }

    /* Adjust spacing for the first tab-pane */
    .tab-content > .tab-pane:first-child::before {
        margin-top: 0;
    }
}

.greeting-container h2 {
    margin-left: -1.5em;
    margin-top: .7em;
}

.greeting-container p {
    margin-left: -3em;
    font-size: 18px;
}

.date-time-container {
    padding-right: 3em;
}

    .date-time-container p {
        margin: 0;
        font-size: 18px;
    }

.time-container {
    margin-top: 2em !important;
    margin-bottom: .7em !important;
}

.card-icon {
    font-size: 28px;
    color: #000;
}

p.recent-attempt-info {
    margin-bottom: 0 !important;
}

/* Typing Test */
#text-display {
    font-size: 1.5em;
    margin-bottom: 20px;
    line-height: 1.5;
}

#input-field {
    width: 100%;
    font-size: 1.2em;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

#timer {
    font-size: 2em;
    text-align: center;
    margin: 20px 0;
}

#results {
    /*font-size: 1.2em;*/
    text-align: center;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
    text-decoration: underline;
}

/*.cursor {*/
/*    background-color: #ccc;*/
/*}*/

#results-container {
    display: none;
}

#wpm-input {
    display: none;
}

#typing-test-submit {
    display: none;
}

/*Drag and Drop*/
.item-container {
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
    background-color: #f8f9fa;
    width: 100%;
}

.drag-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    min-height: 100px;
    height: 100px;
    align-content: start;
    overflow-y: auto;
}

.draggable {
    padding: 10px 15px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: move;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
}

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

    .draggable[data-type="name"] {
        border-left: 5px solid #ffa500;
    }

    .draggable[data-type="description"] {
        border-left: 5px solid #007bff;
    }

.drop-zones {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    width: 100%;
}

.dnd-icon {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drop-zone {
    width: 150px;
    height: 40px;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    margin-top: 10px;
    padding: 5px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .drop-zone[data-type="name"] {
        border-left: 5px solid #FF9900;
    }

    .drop-zone[data-type="description"] {
        border-left: 5px solid #007bff;
    }

    .drop-zone.dragover {
        background-color: #e9ecef;
        border-style: solid;
    }

    .drop-zone .draggable {
        margin: 0;
        width: 100%;
        height: 100%;
        box-shadow: none;
        border: none;
        border-radius: 10px;
        box-sizing: border-box;
    }

.in-drop-zone {
    height: 100%;
    min-height: unset;
    max-height: unset;
}

.drag-drop-image-container {
    height: 64px;
    width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 10px;
}

    .drag-drop-image-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.static-name {
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* DataTables */

.dt-length label {
    margin-left: 1em;
    font-family: "Fira Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.table th {
    font-family: "Fira Sans", sans-serif;
}

.table td {
    font-family: "Fira Sans", sans-serif;
}

.dt-info {
    font-family: "Fira Sans", sans-serif;
}

.dt-search label {
    font-family: "Fira Sans", sans-serif;
}

.dt-paging button {
    font-family: "Fira Sans", sans-serif;
}

/* Lightbox Images */

.lightbox-hint {
    display: flex;
    justify-content: center;
    font-size: 125%;
}

.lightbox-container {
    text-align: center;
}

.lightbox-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

image.lightbox-image[naturalheight][naturalwidth] {
    max-width: min(65%, 400px);
}

.lightbox-image-link {
    display: inline-block;
    margin: auto;
}

/* Control Toggles */

.custom-control-input {
    position: absolute;
    cursor: pointer;
    width: 3rem; /* Larger clickable area */
    height: 1.5rem; /* Larger clickable area */
    opacity: 0;
    z-index: 1;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Make the label clickable as well for larger hit area */
.custom-control-label {
    padding-left: 0.5rem;
}

/* Ensure the toggle container is properly positioned */
.custom-control.custom-toggle {
    position: relative;
    min-height: 1.5rem;
    padding-left: 3.5rem;
}

/* Drag and Drop Previews */
.correct-arrangements {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.correct-item {
    padding: 0.5rem;
}

    .correct-item .image-container {
        height: 64px;
        width: 64px;
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        margin-bottom: 10px;
        border-radius: 0.25rem;
    }

        .correct-item .image-container img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

    .correct-item .static-name {
        padding: 0.5rem;
        text-align: center;
        font-family: 'Fira Sans', sans-serif;
    }

    .correct-item .correct-text {
        margin-top: 0.25rem;
        padding: 0.5rem;
        background-color: #17c671;
        border: 1px solid #17c671;
        border-radius: 0.25rem;
        color: white;
        font-family: 'Fira Sans', sans-serif;
        font-weight: bold;
    }

    .correct-item .badge {
        font-family: 'Fira Sans', sans-serif;
    }

/* Admin Dashboard Highlights */
.highlight-container {
    gap: 0.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    font-size: 1.25em;
}

/* Results Pending Review */
.pending-review-message {
    text-align: center;
    padding: 1rem;
}

    .pending-review-message h5 {
        margin-bottom: 0.5rem;
    }

    .pending-review-message p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }



/* Personality Assessment Likert radio buttons */
/* Container for each Likert option */
.likert-radiobutton {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.75rem;
    cursor: pointer;
    position: relative;
    text-align: center;
}

/* Text above the custom circle */
.likert-label-text {
    font-size: 18px;
    margin-bottom: 0.5rem;
    color: #333;
}

/* Hide native radio input */
.likert-radiobutton input[type="radio"] {
    display: none;
}

/* Visible circle */
.custom-circle {
    width: 28px;
    height: 28px;
    border: 2px solid #333;
    border-radius: 50%;
    background-color: white;
    position: relative;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

    /* Glow on hover */
    .custom-circle:hover {
        box-shadow: 0 0 8px rgba(0, 0, 0, 1);
    }

    /* Filled dot inside circle (hidden by default) */
    .custom-circle::after {
        content: "";
        position: absolute;
        top: 6px;
        left: 6px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background-color: #333;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

/* Show filled dot when selected */
.likert-radiobutton input[type="radio"]:checked + .custom-circle::after {
    opacity: 1;
}

/* Optional: Remove hover glow when selected */
.likert-radiobutton input[type="radio"]:checked + .custom-circle:hover {
    box-shadow: none;
}

#answerContainer {
    gap: 2rem; /* Adjust spacing between buttons */
}

.manage-nav-container {
    margin-top: 2em;
}

.spinner-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #fd9e2e; 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-message {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide navbar toggler on mobile devices */
@media (max-width: 767px) {
    .navbar-toggler {
        display: none;
    }
}

/* Hide background image for landing page on mobile devices */
@media (max-width: 767px) {
    div.welcome {
        background: #DADCDB !important;
    }
}
