
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/Poppins-Light.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 300;
    src: url('../fonts/Poppins-LightItalic.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Poppins-Regular.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/Poppins-Medium.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 500;
    src: url('../fonts/Poppins-MediumItalic.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/Poppins-SemiBold.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 600;
    src: url('../fonts/Poppins-SemiBoldItalic.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Poppins-Bold.ttf');
}

@font-face {
    font-family: 'Poppins';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/Poppins-BoldItalic.ttf');
}

html, body {
    font-family: 'Poppins', Arial, sans-serif;
}

.geo-top-quiz {
    background: url("../img/bg-corner-nav-left.svg") top left / 12% no-repeat, url("../img/bg-corner-nav-right.svg") right top / 12% no-repeat;
}

/* Gradienty */

.gradient-violet {
    border-radius: 24px;
    background: var(--Linear, linear-gradient(91deg, #5d5aa7 -3.04%, #9691F9 100%));
}

.gradient-reds-orange {
    border-radius: 24px;
    background: var(--Linear, linear-gradient(141deg, #AC3047 11.46%, #DD6E42 95.9%));
}

/* Intro Page - BG */

@media (min-width: 768px) {
    .bg-intro-section {
        position: relative;
        background: url("../img/Logo-Corner-left-top.svg") no-repeat, url("../img/Corner-right-bottom.svg") bottom right / 138px no-repeat, url("../img/side-column.svg") left top / 82px repeat-y, url("../img/side-column.svg") right / 80px repeat-y, url("../img/dots-L.svg") bottom left / 135px no-repeat, url("../img/dots-P.svg") top right / 135px no-repeat;
        background-size: 138px, 138px, 82px, 80px, 135px, 135px;
        height: 100vh;
    }
}

@media (max-width: 768px) {
    .bg-intro-section {
        background-image: none;
    }
}

/* Quiz start page */
.quiz-title-border {
    border-radius: 32px;
    border: 1px solid var(--Linear, #494775);
}

.quiz-title-shadow-border {
    border-radius: 14px;
    box-shadow: 14px 14px 12px rgba(33,37,41,0.5);
}

.quiz-score-border {
    border-radius: 18px;
    border: 1.4px solid rgb(216,216,216);
}

.quiz-start-button {
    font-size: 2rem !important;
}

/* Poziom trudności - kolory + liczba pytan */

.bg-pozim-liczba-pytan {
    width: 96px;
    height: 28px;
    background: var(--bs-body-bg);
    border-radius: 4px;
    box-shadow: 6px 6px 6px rgba(33,37,41,0.33);
}

.poziom-latwy {
    width: 108px;
    height: 42px;
    background: #03a600;
    border-radius: 8px;
}

.poziom-sredni {
    width: 108px;
    height: 42px;
    background: #e09400;
    border-radius: 8px;
}

.poziom-trudny {
    width: 108px;
    height: 42px;
    background: #e00d00;
    border-radius: 8px;
}

.liczba-pytan-kolor {
    width: 108px;
    height: 42px;
    background: #827ed3;
    border-radius: 8px;
}

/* Quiz */

.top-nav-bg {
    background: url("../img/Corner-left-top.svg") no-repeat, url("../img/side-row.svg") top left / 6px repeat-x;
    background-size: 283px, 6px;
}

/* Pasek postępu w rozwiązywaniu quizu */

.pasek-postepu-container {
    position: relative;
    margin-bottom: .66rem;
}

.pasek-postepu-bg {
    border-radius: 8px;
    height: 24px;
    background: var(--bs-gray-200);
}

.pasek-postepu-kolor {
    border-radius: 8px;
    background: var(--Linear, linear-gradient(91deg, #64619d -3.04%, #9691F9 100%));
    height: 24px;
    position: absolute;
}

/* Quiz - boxy */

.boxes-container {
    border-radius: 12px;
    border: 1px solid #EFEFEF;
    background: #F8F8F8;
}

.box-pytania-i-odpowiedzi {
    border-radius: 8px;
    border: 1px solid #D4D4D4;
    background: #FFF;
    box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.10);
    margin: 1rem 1rem 3rem;
}

.box-pytanie {
    padding: 2rem;
    border-radius: 8px 8px 24px 24px;
    border: 1px solid #EFEFEF;
    background: #494775;
}

.box-odpowiedzi {
    padding: 1.5rem 3rem;
}

@media (max-width: 576px) {
    .box-odpowiedzi {
        padding: 1rem 0.3rem;
    }
}

/* Quiz - zaznaczanie odpowiedzi */

.form-check-input {
    border: var(--bs-border-width) solid var(--bs-dark-border-subtle);
}

.form-check {
    padding-left: 3rem;
    padding-right: 1rem;
    margin-bottom: 0.5rem;
}

/* Quiz - obrazek lub wideo z dodatkową informacją */

.quiz-img-vid {
    border: 6px solid rgb(102,98,179);
    margin-bottom: 1.66rem;
    border-radius: 12px;
}

/* Podsumowanie odpowiedzi */

.poprawna-odpowiedz {
    background: rgba(25,135,84,0.25);
    border-style: solid;
    border-width: 2px;
    border-color: rgba(25,135,84,0.5);
    border-radius: 6px;
}

.niepoprawna-odpowiedz {
    background: rgba(220,53,69,0.25);
    border-style: solid;
    border-width: 2px;
    border-color: rgba(220,53,69,0.5);
    border-radius: 6px;
}

.box-dodatkowa-informacja {
    margin-top: 1.5rem;
}

.ikona-dodatkowa-informacja {
    margin-right: 4px;
}

.tresc-informacji {
    font-style: italic;
}

/* Wyniki */

.bg-section-wyniki {
    position: relative;
    background: url("../img/Logo-Corner-left-top.svg") no-repeat, url("../img/Corner-right-bottom.svg") bottom right / 138px no-repeat, url("../img/side-column.svg") left top / 82px repeat-y, url("../img/side-column.svg") right / 80px repeat-y;
    background-size: 138px, 138px, 82px, 80px;
}

@media (max-width: 576px) {
    .bg-section-wyniki {
        background: none;
    }
}

.box-wyniki {
    padding: 10px;
    width: 100%;
    min-height: 140px;
    height: 100%;
}

/* QE */
.question {
    display: block;
    position: relative;
}

.question-answer div {
    display: block;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: 3px 10px 3px 50px;
}

.question-answer .checkmark {
    position: absolute;
    display: block;
    top: 2px;
    bottom: 0;
    margin: auto;
    border: 2px solid #ccc;
    border-radius: 50%;
    font-weight: 600;
    left: 20px !important;
    height: 20px !important;
    width: 20px !important;
}

.question-answer-correct .checkmark:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    margin: auto;
    border-radius: 50%;
    font-weight: 600;
    background-color: #237e00;
    width: 10px !important;
    height: 10px !important;
}

.mode-multiple-choice .question-answer .checkmark {
    border-radius: 4px;
}

.mode-multiple-choice .question-answer-correct .checkmark:after {
    width: 5px;
    height: 10px;
    background-color: transparent;
    border-radius: 0;
    border: solid #237e00;
    border-width: 0 3px 3px 0;
    top: 0;
    left: 1px;
    transform: rotate(45deg);
}

.answers-separator {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    width: 100%;
    min-height: 5px;
    border-top: 1px solid #ccc;    
}

.answers-separator button {
    position: absolute;
    top: -17px;
    right: 10px;
}

.correct-answer-text {
    color: #26b050;
    font-weight: 530;
}

.text-light-darker {
    color: #f8f9fa;
}

.text-light-darker:hover {
    color: #adadad;
}

.text-link:hover {
    text-decoration: underline;
    cursor: pointer;
}

.text-light-preview {
    color: #b8b8b9;
    font-style: italic;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    font-size: small;
    color: #e50000;
}

.readonly-control {
    pointer-events: none;
    cursor: default;
    opacity: 0.9;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PS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5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Wystąpił błąd."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.no-link {
    color: inherit;
    text-decoration: none;
}

.highlighted-row {
    background-color: #f7f7f7;
}

.autocomplete {
    position: relative;
}

.autocomplete .options {
    position: absolute;
    top: 40px;
    left: 0;
    background: white;
    width: 100%;
    padding: 0;
    z-index: 10;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    box-shadow: 0 30px 25px 8px rgba(0, 0, 0, 0.1);
}

.autocomplete .option {
    display: block;
    padding: 0.25rem;
}

.autocomplete .option .option-text {
    padding: 0.25rem 0.5rem;
}

.autocomplete .option:hover {
    background: #1E90FF;
    color: #fff;
}

.autocomplete .option.disabled {
    background-color: lightgrey;
    cursor: not-allowed;
}

.autocomplete .option.disabled:hover {
    background: lightgrey;
    color: var(--bs-body);
}

.autocomplete .highlight {
    background-color: lightgray;
    color: var(--bs-body);
}

.face {
    width: 32px;
    height: 32px;
    border: 1px solid silver;
}

.circle {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    background-color: #ccc;
    border: 1px solid #ababab;
}

.login-card {
    min-width: 17rem;
    min-height: 65vh;
    background-color: #ececec;
}

.smaller {
    font-size: 0.75em;
}

.article-2-cols {
    column-count: 2;
    column-gap: 2rem;
    column-rule-style: solid;
    column-rule-width: 1px;
    overflow: auto;
    height: 3.7rem;
}

.w-90 {
    width: 90% !important;
}

/* Securitum logo */

.rotated-logo {
    position: absolute;
    bottom: 60px;
    right: 20px;
    width: 150px;
    transform: rotate(90deg);
    z-index: 1000;
    opacity: 0.9;
    transition: opacity 0.3s ease-in-out;
}

.rotated-logo:hover {
    opacity: 1;
    transform: rotate(90deg) scale(1.1);
}

/* Sekurak logo */
.sekurak-logo-link {
    display: inline-block;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
    border-radius: 8px;
}

.sekurak-logo-link img {
    display: block;
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.sekurak-logo-link:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Charts */

.bar-chart-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.no-data-message {
    color: #888;
    font-style: italic;
}

.donut-chart-container {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Quiz images */
.quiz-question-image {
    max-height: 250px;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.2s ease-in-out;
}

.quiz-question-image:hover {
    transform: scale(1.02);
}

.quiz-summary-image {
    max-height: 250px;
    object-fit: contain;
}

/* Quiz image overlay (Fullscreen) */
.fullscreen-image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(33, 37, 41, 0.85);
    z-index: 1050;
    cursor: zoom-out;
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
}

/* Question image select / input control */
.image-select-container {
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    padding: 1rem;
    background-color: #ffffff;
}

/* File selector */
.file-select-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    transition: all 0.2s ease-in-out;
    width: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.file-select-box:hover {
    border-color: #4f46e5;
    background-color: #f3f4f6;
}

.file-select-box:hover .box-icon {
    transform: translateY(-4px);
}

.file-select-box .box-icon {
    font-size: 32px;
    color: #3b82f6;
    transition: transform 0.2s ease-in-out;
    margin-bottom: 8px;
}

.file-select-box .box-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 8px;
}

.file-select-box .box-hint {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 5px;
}

.absolute-input-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

/* Import quiz dialog */

.selected-file-name {
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Error message box */
.dialog-error-scroll-box {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 15px;
    padding: 12px;
    background-color: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
}

.dialog-error-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 0.85rem;
    color: #991b1b;
    line-height: 1.4;
}


.dialog-error-scroll-box::-webkit-scrollbar {
    width: 6px;
}

.dialog-error-scroll-box::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.dialog-error-scroll-box::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dialog-error-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.result-summary-container {
    padding: 1.5rem;
    height: 100%;
}

.result-summary-container .readonly-control .niepoprawna-odpowiedz {
    background: rgba(220,53,69,0.25) !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-color: rgba(220,53,69,0.5) !important;
    border-radius: 6px !important;
}

.result-summary-container .readonly-control .poprawna-odpowiedz {
    background: rgba(25,135,84,0.25) !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-color: rgba(25,135,84,0.5) !important;
    border-radius: 6px !important;
}

.result-summary-container .readonly-control .form-check-input:checked {
    background-color: var(--bs-body-color) !important;
}

.result-summary-container .box-pytania-i-odpowiedzi.invalid {
    outline: 2px solid #e50000 !important;
}

.outline-none:focus {
    outline: none !important;
}

.small-action-buttons {
    font-size: 0.65rem !important;
}

.question-stats-box {
    max-height: 75vh;
    overflow-y: auto;
    padding: 1px;
}

.question-stats-progres {
    height: 24px !important;
    background-color: rgba(255,255,255,0.6) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1) !important;
    margin-left: 2.2rem !important;
}
