/* styles.css - Custom styles for the HFDEO - Quiz Question Builder */

/* Branding Colors */
:root {
    --primary-color: #aa1e1b; /* Red for headers */
    --accent-color: #1f1f1f; /* Black for buttons */
    --background-gray: #393939; /* Grey background */
    --bs-nav-link-color: #cc2222;
    --bs-blue: #cc2222;
    --bs-primary: #cc2222;
}

[data-bs-theme=light] {
    --bs-nav-link-color: #cc2222;
    --bs-blue: #cc2222;
    --bs-primary: #cc2222;
}

/* General Styles */
body {
    background-color: var(--background-gray) !important;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
}
a {
    color: #cc2222;
}
.btn-outline-primary {
    --bs-btn-color: #cc2222;
    --bs-btn-border-color: #cc2222;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #cc2222;
    --bs-btn-hover-border-color: #cc2222;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #cc2222;
    --bs-btn-active-border-color: #cc2222;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #cc2222;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #cc2222;
    --bs-gradient: none;
}
.form-check-input:checked {
    background-color: #cc2222;
    border-color: #cc2222;
}
.nav-link {
    color: #cc2222;
}
.btn-link, .btn-link:hover {
    color: #cc2222;
}
.list-group-item.active {
    background-color: #cc2222;
    border-color: #cc2222;
}

/* Header Styles */
.bg-header-color {
    background-color: var(--primary-color) !important;
    border-bottom: 3px solid var(--accent-color);
}

.header-logo {
    max-height: 60px;
}


/* Card Styles */
.card {
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
}

/* Button Styles */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-primary:hover {
    background-color: #5a2236;
    border-color: #5a2236;
}
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Table Styles */

.table th.sortable {
    cursor: pointer;
}
.table th.sortable:hover {
    background-color: #f0f0f0;
}
.table td,
.table th {
    vertical-align: middle !important;
}

/* Alert Styles */
.alert-success {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    border-radius: 0.5rem;
}
.alert-danger {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    border-radius: 0.5rem;
}
.alert-info, .alert-warning {
    border-radius: 0.5rem;
}


/* Accordion */
#categoryAccordion {
    width: 100% !important;
}
body div.accordion {
	--bs-accordion-btn-color: #ffffff;
	--bs-accordion-btn-bg: #1a3c34;
	--bs-accordion-active-color: #ffffff;
	--bs-accordion-active-bg: #999999;
}
body.fm-login-page {
    background-color: #aa1e1b !important;
    font-size: 16px;
    background-image: url("/images/background.png");
    background-size: cover;
}

.fm-login-page .brand {
    width: 121px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    z-index: 1
}

.fm-login-page .brand img {
    width: 100%
}

.fm-login-page .card-wrapper {
    width: 360px;
}

.fm-login-page .card {
    border-color: transparent;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .05)
}

.fm-login-page .card-title {
    margin-bottom: 1.5rem;
    font-size: 24px;
    font-weight: 400;
}

.fm-login-page .form-control {
    border-width: 2.3px
}

.fm-login-page .form-group label {
    width: 100%
}

.fm-login-page .btn.btn-block {
    padding: 12px 10px
}

.fm-login-page .footer {
    margin: 20px 0;
    color: #888;
    text-align: center
}

@media screen and (max-width:425px) {
    .fm-login-page .card-wrapper {
        width: 90%;
        margin: 0 auto;
        margin-top: 10%;
    }
}

@media screen and (max-width:320px) {
    .fm-login-page .card.fat {
        padding: 0
    }

    .fm-login-page .card.fat .card-body {
        padding: 15px
    }
}

.message {
    padding: 4px 7px;
    border: 1px solid #ddd;
    background-color: #fff
}

.message.ok {
    border-color: green;
    color: green
}

.message.error {
    border-color: red;
    color: red
}

.message.alert {
    border-color: orange;
    color: orange
}

body.fm-login-page.theme-dark {
    background-color: #aa1e1b;
}

.theme-dark svg g,
.theme-dark svg path {
    fill: #ffffff;
}

.theme-dark .form-control {
    color: #fff;
    background-color: #403e3e;
}

.h-100vh {
    min-height: 100vh;
}
.text-white a, .text-white p, .text-white h1, .text-white h3, .text-white span, .text-white i {
    color: #fff !important;
}
.text-white .dropdown-menu a, .text-white .dropdown-menu i, .text-white .dropdown-menu p {
    color: inherit !important;
}
div.dt-buttons > .dt-button, div.dt-buttons > div.dt-button-split .dt-button {
    background-color: #fff !important;
    color: #222222;
}
.modal {
    color: #222;
}


/***********************************************************/
/* stylesheet.css */

html {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    height: 100%;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-size: 18px;
/*                color: #222;*/
/*                background: #F7F7F7;*/
    color: #fff;
}

body.navbar-fixed {
    margin-top: 55px;
}

html body.fm-main-page div#wrapper {
    padding: 0px;
}

a,
a:hover,
a:visited,
a:focus {
    text-decoration: none !important;
}

.filename,
td,
th {
    white-space: nowrap
}

.navbar-brand {
    font-weight: bold;
}

.nav-item.avatar a {
    cursor: pointer;
    text-transform: capitalize;
}

.nav-item.avatar a>i {
    font-size: 16px;
}

.nav-item.avatar .dropdown-menu a {
    font-size: 16px;
}

#search-addon {
    font-size: 14px;
    border-right-width: 0;
}

.brl-0 {
    background: transparent;
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.brr-0 {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.bread-crumb {
    color: #cccccc;
    font-style: normal;
}

#main-table {
    transition: transform .25s cubic-bezier(0.4, 0.5, 0, 1), width 0s .25s;
}

#main-table .filename a {
    color: #222222;
}

.table td,
.table th {
    vertical-align: middle !important;
}

.table .custom-checkbox-td .custom-control.custom-checkbox,
.table .custom-checkbox-header .custom-control.custom-checkbox {
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-sm td,
.table-sm th {
    padding: .4rem;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #f1f1f1;
}

.hidden {
    display: none
}

pre.with-hljs {
    padding: 0;
    overflow: hidden;
}

pre.with-hljs code {
    margin: 0;
    border: 0;
    overflow: scroll;
}

code.maxheight,
pre.maxheight {
    max-height: 512px
}

.fa.fa-caret-right {
    font-size: 1.2em;
    margin: 0 4px;
    vertical-align: middle;
    color: #ececec
}

.fa.fa-home {
    font-size: 1.3em;
    vertical-align: bottom
}

.path {
    margin-bottom: 10px
}

form.dropzone {
    min-height: 200px;
    border: 2px dashed #cc2222;
    line-height: 6rem;
}

.right {
    text-align: right
}

.center,
.close,
.login-form,
.preview-img-container {
    text-align: center
}

.message {
    padding: 4px 7px;
    border: 1px solid #ddd;
    background-color: #fff
}

.message.ok {
    border-color: green;
    color: green
}

.message.error {
    border-color: red;
    color: red
}

.message.alert {
    border-color: orange;
    color: orange
}

.preview-img {
    max-width: 100%;
    max-height: 80vh;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAKklEQVR42mL5//8/Azbw+PFjrOJMDCSCUQ3EABZc4S0rKzsaSvTTABBgAMyfCMsY4B9iAAAAAElFTkSuQmCC);
    cursor: zoom-in
}

input#preview-img-zoomCheck[type=checkbox] {
    display: none
}

input#preview-img-zoomCheck[type=checkbox]:checked~label>img {
    max-width: none;
    max-height: none;
    cursor: zoom-out
}

.inline-actions>a>i {
    font-size: 1em;
    margin-left: 5px;
    /*background: #3785c1;
    color: #fff;*/
    padding: 3px 4px;
    border-radius: 3px;
}

.preview-video {
    position: relative;
    max-width: 100%;
    height: 0;
    padding-bottom: 62.5%;
    margin-bottom: 10px
}

.preview-video video {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #000
}

.compact-table {
    border: 0;
    width: auto
}

.compact-table td,
.compact-table th {
    width: 100px;
    border: 0;
    text-align: center
}

.compact-table tr:hover td {
    background-color: #fff
}

.filename {
    max-width: 98%;
    overflow: hidden;
    text-overflow: ellipsis
}

.break-word {
    word-wrap: break-word;
    margin-left: 30px
}

.break-word.float-left a {
    color: #7d7d7d
}

.break-word+.float-right {
    padding-right: 30px;
    position: relative
}

.break-word+.float-right>a {
    color: #7d7d7d;
    font-size: 1.2em;
    margin-right: 4px
}

#editor {
    position: absolute;
    right: 15px;
    top: 100px;
    bottom: 15px;
    left: 15px
}

@media (max-width:481px) {
    #editor {
        top: 150px;
    }
}

#normal-editor {
    border-radius: 3px;
    border-width: 2px;
    padding: 10px;
    outline: none;
}

.btn-2 {
    padding: 4px 10px;
    font-size: small;
}

li.file:before,
li.folder:before {
    font: normal normal normal 14px/1 FontAwesome;
    content: "\f016";
    margin-right: 5px
}

li.folder:before {
    content: "\f114"
}

/*
btn btn-sm btn-danger red
btn btn-sm btn-primary blue
btn btn-sm btn-secondary grey
btn btn-sm btn-dark black
btn btn-sm btn-success green
btn btn-sm btn-warning yellow
btn btn-sm btn-info aqua
btn btn-sm btn-light white
*/

#main-table td.inline-actions a.btn {
    padding: 0px;
    margin-left: 2px;
}
#main-table td.inline-actions a.btn i {
    padding: 5px;
    margin: 0px;
    font-size: 18px;
}
#main-table td.inline-actions a.btn i.fa-broom {
    background: transparent;
    color: #ffffff;
}

i.fa-solid.fa-folder {
    color: #cc2222;
}

i.fa-solid.fa-image {
    color: #26b99a;
}

i.fa-solid.fa-file-zipper {
    color: #da7d7d;
}

.btn-2 i.fa-solid.fa-file-zipper {
    color: inherit;
}

i.fa-brands.fa-css3 {
    color: #f36fa0;
}

i.fa-solid.fa-file-code {
    color: #cc2222;
}

i.fa-solid.fa-code {
    color: #cc4b4c;
}

i.fa-regular.fa-file-lines {
    color: #cc2222;
}

i.fa-brands.fa-html5 {
    color: #d75e72;
}

i.fa-solid.fa-file-excel {
    color: #09c55d;
}

i.fa-solid.fa-file-powerpoint {
    color: #f6712e;
}

i.go-back {
    font-size: 1.2em;
    color: #cc2222;
}

.main-nav {
    padding: 0px 15px 0px 15px;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, .14), 0 1px 10px 0 rgba(0, 0, 0, .12), 0 2px 4px -1px rgba(0, 0, 0, .2)
}
.navbar-brand {
  padding: 0px;
}
.navbar-brand a {
  display: inline-block;
}
body .navbar-brand img {
  margin: 0px !important;
}
body .navbar-brand h3 {
  margin: 0px !important;
}
body .navbar-brand p {
  margin: 0px !important;
}

.dataTables_filter, .dt-search {
    display: none;
}

/*table.dataTable thead .dt-orderable-asc {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC');
}

table.dataTable thead .dt-ordering-asc {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==');
}

table.dataTable thead .dt-ordering-desc {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=');
}*/

table.dataTable thead tr:first-child th.custom-checkbox-header:first-child {
    background-image: none;
}

.footer-action li {
    margin-bottom: 10px;
}

.app-v-title {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: -.5px;
    text-transform: uppercase;
}

hr.custom-hr {
    border-top: 1px dashed #8c8b8b;
    border-bottom: 1px dashed #fff;
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 18px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

#main-table span.badge {
    border-bottom: 2px solid #f8f9fa
}

#main-table span.badge:nth-child(1) {
    border-color: #df4227
}

#main-table span.badge:nth-child(2) {
    border-color: #f8b600
}

#main-table span.badge:nth-child(3) {
    border-color: #00bd60
}

#main-table span.badge:nth-child(4) {
    border-color: #4581ff
}

#main-table span.badge:nth-child(5) {
    border-color: #ac68fc
}

#main-table span.badge:nth-child(6) {
    border-color: #45c3d2
}

@media only screen and (min-device-width:768px) and (max-device-width:1024px) and (orientation:landscape) and (-webkit-min-device-pixel-ratio:2) {
    .navbar-collapse .col-xs-6 {
        padding: 0;
    }
}

.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn.focus:active,
.btn:active:focus,
.btn:focus {
    outline: 0 !important;
    outline-offset: 0 !important;
    background-image: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important
}

.lds-facebook {
    display: none;
    position: relative;
    width: 64px;
    height: 64px
}

.lds-facebook div,
.lds-facebook.show-me {
    display: inline-block
}

.lds-facebook div {
    position: absolute;
    left: 6px;
    width: 13px;
    background: #cc2222;
    animation: lds-facebook 1.2s cubic-bezier(0, .5, .5, 1) infinite
}

.lds-facebook div:nth-child(1) {
    left: 6px;
    animation-delay: -.24s
}

.lds-facebook div:nth-child(2) {
    left: 26px;
    animation-delay: -.12s
}

.lds-facebook div:nth-child(3) {
    left: 45px;
    animation-delay: 0s
}

@keyframes lds-facebook {
    0% {
        top: 6px;
        height: 51px
    }

    100%,
    50% {
        top: 19px;
        height: 26px
    }
}

ul#search-wrapper {
    padding-left: 0;
    border: 1px solid #ecececcc;
}

ul#search-wrapper li {
    list-style: none;
    padding: 5px;
    border-bottom: 1px solid #ecececcc;
}

ul#search-wrapper li:nth-child(odd) {
    background: #f9f9f9cc;
}

.c-preview-img {
    max-width: 300px;
}

.border-radius-0 {
    border-radius: 0;
}

.float-right {
    float: right;
}

.table-hover>tbody>tr:hover>td:first-child {
    border-left: 1px solid #1b77fd;
}

#main-table tr.even {
    background-color: #F8F9Fa;
}

.filename>a>i {
    margin-right: 3px;
}

.fs-7 {
    font-size: 16px;
}

/***********************************************************/
/* DataTables Buttons (to Bootstrap) */
.dt-button.btn-source-folder,
.dt-button.btn-content-folder,
.dt-button.btn-templates-folder,
.dt-button.btn-blocks-folder,
.dt-button.btn-output-folder {
    margin-right: 0.5rem;
    color: #fff;
    background-color: #cc2222;
}


html body div#datatables_buttons_info.dt-button-info {
    background-color: #cccccc;
    color: #000000; 
}

/***********************************************************/

.dt-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.custom-buttons-group {
    display: flex;
    gap: 5px; /* Space between custom buttons */
}

.default-buttons-group {
    display: flex;
    gap: 5px; /* Space between default buttons */
}

.custom-buttons-group button.dt-button:first-of-type {
    background: none;
    border: none;
    color: #fff !important;
}


/***********************************************************/


body div.copyright {
    margin-top: 100px;
}


/***********************************************************/

.form-group label {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 500;
}

/***********************************************************/



/************** Review toolbar (length + buttons on one row) **************/
#review-table_wrapper .dt-layout-row:first-child { white-space: nowrap; }
#review-table_wrapper .dt-length { float: left;  margin-right: .5rem; }
#review-table_wrapper .dt-buttons { float: right; margin: 0 !important; }
/* clearfix */
#review-table_wrapper .dt-layout-row:first-child::after { content: ""; display: table; clear: both; }
/* tighter buttons */
#review-table_wrapper .dt-buttons .dt-button {
  margin: 0 .25rem 0 0 !important; padding: .25rem .5rem; line-height: 1.2;
}
/* optional: trim label/select spacing */
#review-table_wrapper .dt-length label { margin-left: .25rem; }

/**************************** Table layout & editors ****************************/
#review-table { table-layout: fixed; width: 100% !important; }
#review-table th, #review-table td {
  box-sizing: border-box; min-width: 0; overflow: hidden; vertical-align: top;
}

/* Uniform baseline height for all editable cells */
#review-table textarea.cell-editor {
  width: 100%;
  min-height: 5rem;         /* change to 3.5rem if you prefer shorter */
  line-height: 1.25;
  padding: .25rem .5rem;
  resize: vertical;
}

/**************************** Column roles (class-based) ****************************/
/* 1) Checkbox/handle column */
#review-table th.col-select,
#review-table td.col-select {
  width: 54px !important;
  max-width: 54px !important;
}

/* 2) Question column (nice and wide) */
#review-table th.col-question,
#review-table td.col-question {
  /* width set via <colgroup> in JS; keep CSS neutral here */
  /* fallback if JS didn't run: */
  width: 40%;
}

/* 3) Correct answer (skinny) */
#review-table th.col-correct,
#review-table td.col-correct {
  /* width set via <colgroup> in JS; keep CSS mild fallback */
  width: 5%;
  max-width: 6ch;
}

/* Prevent DT's sizing clone from forcing width on the correct column */
#review-table th.col-correct .dt-scroll-sizing { display: none !important; }


/* Hide the “correct_answer” header text so it can't force width */
#review-table th.col-correct .dt-col-title,
#review-table th.col-correct .dt-column-title { display: none !important; }

/**************************** Drag handle ****************************/
#review-table .drag-handle {
  display: inline-block;
  margin-right: .25rem;
  cursor: move;
  opacity: .7;
  user-select: none;
}
#review-table .drag-handle:hover { opacity: 1; }

/**************************** Mobile tweaks ****************************/
@media (max-width: 576px) {
  #review-table_wrapper .dt-layout-row:first-child { white-space: normal; }
  #review-table_wrapper .dt-length,
  #review-table_wrapper .dt-buttons {
    float: none; display: block; margin: 0 0 .5rem 0;
  }
}




