@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


:root {
    --primary-color: #2d8ef3;
    --secondary-highlight: #e1eefe;
    --error-color: #ff0000;
    --title-gray: #707070;
    --input-gray: #c1c1c1;
    --light-gray: #bbbbbb;
    --header-height: 4rem;
    --warning-color: #ffa500;
    --bs-modal-width: 500px; /*This is needed for dragging modals to work as expected.*/
}

html, body {
    font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

/*XRM Buttons*/

.button {
    display: flex;
    padding: 0.625rem;
    justify-content: center;
    align-items: center;
    gap: 0.3125rem;
    border-radius: 0.375rem;
    cursor: pointer;
    border: none;
    margin: 0;
}

.primary-button {
    color: #fff;
    background: var(--primary-color);
    border-radius: 0.375rem;
}

.primary-button:hover, .primary-button:active {
    background: hsl(211deg, 100%, 50%);
}

.secondary-button {
    color: var(--primary-color);
    background: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 0.375rem;
}

.secondary-button:hover, .secondary-button:active {
    background: var(--secondary-highlight);
    border: 1px solid var(--primary-color);
}

.tertiary-button{
    color: var(--primary-color);
    background: transparent;
    border: none;
    border-radius: 0;
}

.tertiary-button:hover, .tertiary-button:active {
    background: var(--secondary-highlight);
}

.disabled {
    opacity: 50%;
    cursor: unset;
    pointer-events: none;
}

.button-label {
    font-size: 1rem;
    font-weight: 600;
    font-family: Roboto;
    font-style: normal;
    line-height: normal;
    white-space: nowrap;
}

.button-subtext {
    font-size: 0.7rem;
    text-align: left;
}

@media only screen and (min-width: 0px) and (max-width: 768px) {
    .hide-label {
        display: none;
    }
}

.button-icon{
    display: inline-block;
    min-width: 1.5em;
    height: 1.5em;
    background-size: 1.5em;
}

/*Styling for Build Lesson Node Buttons*/

.add-node-button-container {
    display: flex;
    gap: 1.25rem;
    z-index:99;
    pointer-events: all;
    justify-content: center;
}

.insert-node-button-container{
    margin-top: 1.5rem;
}

.add-node-btn {
    display: flex;
    height: 2.8125rem;
    min-width: 10rem;
    padding: 0.625rem;
    justify-content: center;
    align-items: center;
    border-radius: 0.375rem;
    background: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.25);
    color: var(--primary-color);
    gap: 0.3125rem;
    cursor: pointer;
}

.add-node-btn:hover, .add-node-btn:active {
    background: var(--secondary-highlight);
}


/*End XRM Buttons*/




/*Blazor Bootstrap*/
.btn-primary, .btn-primary:hover, .btn-primary:active, .btn-primary:visited {
    color: #fff;
    background-color: #007bff;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

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

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.page-header {
    display: flex;
    padding: 0.625rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-bottom: 1px solid #BBB;
    background: #FFF;
    height: 4rem;
}

.page-title {
    color: #707070;
    font-family: Roboto;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}



.full-width {
    width: 100%;
}

.half-width {
    width: 50%;
}

/*input, select, textarea {
    border-radius: 0.25rem;
    border: 2px solid var(--input-gray);
    resize: none;
}*/

select {
    appearance: none;
    background-image: url('../images/chevron-down.svg');
    background-position: calc(100% - 0.25rem);
    background-size: 1.5rem;
    background-repeat: no-repeat;
    outline: 0;
    padding-right: 3rem;
}



.section-title {
    color: var(--title-gray);
    font-weight: 600;
    font-size: 1rem;
}

/*Used for rogue pages that don't use the main layout. */
.page-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 6.25rem);
}

@media only screen and (min-width: 0px) and (max-width: 768px) {
    .page-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}



.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-spacer {
    flex: 1;
    flex-grow: 1;
}

.flex-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.aligned-flex-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.centered-flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.margin-right {
    margin-right: .5rem;
}

.margin-top {
    margin-top: .5rem;
}


.bold-text {
    font-weight: bold;
}

.hidden-file-input {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    flex: 1;
}

input[type=file]::-webkit-file-upload-button {
    cursor: pointer;
}

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


.ellipsis-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    min-width: 25px;
    height: 100%;
    cursor: pointer;
    font-size: 2em;
}

.ellipsis-menu::after {
    font-family: primeicons;
    content: "...";
    text-align: center;
    font-size: 1em;
    color: var(--title-gray);
    line-height: 0.5em;
}

.hidden {
    display: none !important;
    visibility: hidden
}

.repeat-attempts-input input {
    max-width: 4rem;
}

.gray-bold-text {
    color: var(--title-gray);
    font-weight: 500;
    font-size: 1rem;
}

.light-gray-text{
    color: var(--light-gray);
}

.warning-text {
    color: var(--warning-color);
}

/* Icons Styling 
    to do: refactor icon css to work more like this.
*/

.table-icon {
    display: inline-block;
    min-width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    background-size: 1.5rem;
    margin-right: 5px;
}

.plus-icon {
    background: url(../images/plus-circle-icon.svg) 100% no-repeat;
}

.minus-icon {
    background: url(../images/minus-circle-icon.svg) 100% no-repeat;
}

.attachment-icon {
    background: url(../images/attachment-icon.svg) 100% no-repeat;
}

.folder-icon {
    background: url(../images/folder-icon.svg) 100% no-repeat;
}

.trash-icon {
    background: url(../images/trash-icon.svg) 100% no-repeat;
}

.to-icon {
    background: url(../images/to-icon-blue.svg) 100% no-repeat;
}

.lesson-icon {
    background: url(../../../images/lessons-icon-blue.svg) 100% no-repeat;
}

.delete-icon {
    background: url(../images/delete-icon.svg) 100% no-repeat;
}

.help-icon {
    background: url(../images/circle-help.svg) 100% no-repeat;
}

.delete-icon-blue {
    background: url(../images/delete-icon-blue.svg) 100% no-repeat;
}

.chevron-right-icon{
    background: url(../images/chevron-right-icon.svg) 100% no-repeat;
}

.chevron-left-icon{
    background: url(../images/chevron-left-icon.svg) 100% no-repeat;
}

.save-icon{
    background: url(../images/save-icon.svg) 100% no-repeat;
}

.close-icon{
    background: url(../images/close-icon.svg) 100% no-repeat;
}

.blue-square {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    background: #2D8EF3;
}

.blue-square-outline {
    width: 1rem;
    height: 1rem;
    border-radius: 4px;
    border: 2px solid var(--primary-color);
    background: #FFF;
}

.blue-circle {
    width: 1rem;
    height: 1rem;
    border-radius: 1rem;
    border: 2px solid var(--primary-color);
    background: #2D8EF3;
}


/* End Icons Styling */

.flex-wrap {
    flex-wrap: wrap;
}



.tooltip-inner {
    color: black;
    background-color: white;
    box-shadow: 0px 0px 20px 10px #aaaaaa;
}


/* necessary to change the tooltip arrow color */
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before, .bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: white;
}

.tooltip.bs-tooltip-auto.show{
    opacity: 1;
}

.tooltip-inner {
    max-width: 25rem;
}


/*Modal Styling */

.modal-dialog {
    min-width: 26.75rem;
    margin: 0;
}

.modal-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.modal-header{
    display: flex;
    padding: 1rem 0.625rem 0.625rem 0.625rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 0.5rem 0.5rem 0 0;
}


.modal-title {
    font-size: 1.rem;
    color: var(--title-gray);
    font-weight: 600;
    white-space: pre-wrap;
}


.modal-body {
    display: flex;
    width: 100%;
    padding: 0.625rem;
    flex-direction: column;
    gap: 0.625rem;
    color: var(--title-gray);
}

.modal-label {
    display: block;
    margin: 0;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.8;
    color: #707070;
    font-weight: 600;
}

.modal-input{
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.modal-footer{
    display: flex;
    padding: 0.625rem;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem;
    align-self: stretch;
}

.modal-button {
    padding: 0 1.625rem;
    height: 2.1875rem;
    font-size: 0.875rem;
}

.modal-button-label{
    font-size: 0.875rem;
}

/*End Modal Styling */

/*Input Styling */

.xrm-input{
    height: 2.8125rem;
    align-self: stretch;
    border-radius: 0.3125rem;
    border: 1px solid #BBB;
    background: #FFF;
    box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.15) inset;
    padding: .5rem .5rem;
}

.xrm-textarea {
    min-height: 5.625rem;
    max-height: 11.25rem;
}

.xrm-input:focus{
    border-color: var(--primary-color);
    box-shadow: none;
}

input:focus, textarea:focus, select:focus {
    outline: none !important;
    
}

.input-footer {
    color: var(--input-gray);
    font-size: 0.75rem;
}

.input-label {
    color: var(--title-gray);
    font-weight: 600;
    font-size: 0.875rem;
    height: 1.3rem;
    align-self: center;
    width: 100%;
}

/* End Input Styling */

/*Context Menu Styling */