/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : May 6, 2020, 6:38:42 AM
    Author     : nasser
*/


body {
    font-family: 'Ubuntu', sans-serif;
}
iframe {
    border: none;
}


/*scroll style*/

/* width */
#kt_content ::-webkit-scrollbar {
    width: 6px; /* Width of the vertical scrollbar */
    height: 6px; /* Height of the horizontal scrollbar */
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #999;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #666;
}


.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-image: url('../../assets/media/svg/loader/preloader-01.svg');
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
}

/*force copied codes from IDE to have same background color of code quota*/
.samples > section > pre {
    background-color: inherit !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
}


code:not(pre > code) {
    /*background-color: #e3e5ea;*/
    /*background-color: #eaeef1;*/
    /*background-color: #eff2f5;*/

    background-color: #3F4254 !important;
    /*padding: 3px !important;*/
    color: #ffff !important;
}
pre > code {
    padding: 0;
}

/* blockquote */
blockquote {
    padding: 1em;
    border-left: 5px solid #3F4254;
    margin: 0 auto 1em 2em;
}

blockquote:before {
    display: none;
}

blockquote:not(:first-of-type) {
    margin-top: .5em;
}

blockquote footer {
    margin-top: .5em;
    padding: 0;
    color: #777;
    font-size: 12pt;
    text-align: left;
    font-style: italic;
}

blockquote footer:before {
    content: '— ';
}

/*blockquote:nth-of-type(even) {*/
/*    text-align: right;*/
/*    border-left: none;*/
/*    border-right: 5px solid #3F4254;*/
/*}*/
/*blockquote:nth-of-type(even) footer {*/
/*    text-align: right;*/
/*}*/
/*blockquote:nth-of-type(even) footer:before {*/
/*    content: '';*/
/*}*/
/*blockquote:nth-of-type(even) footer:after {*/
/*    content: ' —';*/
/*}*/


.bg-green {
    background-color: #28a745 !important;
}

a.bg-greeng:hover, a.bg-green:focus,
button.bg-green:hover,
button.bg-green:focus {
    background-color: #288745 !important;
}


.btn.btn-green {
    color: #ffff;
    background-color: #28a745 !important;
    border-color: transparent;
    font-size: 14px;
    /*font-weight: bold !important;*/
    /*font-family: 'Ubuntu';*/
}

.btn.btn-hover-green:hover:not(.btn-text):not(:disabled):not(.disabled), .btn.btn-hover-transparent-white:focus:not(.btn-text), .btn.btn-hover-transparent-white.focus:not(.btn-text) {
    color: #ffffff;
    background-color: #288745 !important;
    border-color: transparent;
}


.bg-red {
    background-color: rgba(112, 28, 28, 1) !important;
}


.btn.btn-machine-access {
    color: #ffff;
    background-color: rgba(112, 28, 28, 1);
    border-color: transparent;
    font-size: 14px;
    /*font-weight: bold !important;*/
    /*font-family: 'Ubuntu';*/
}

.btn.btn-hover-machine-access:hover:not(.btn-text):not(:disabled):not(.disabled), .btn.btn-hover-transparent-white:focus:not(.btn-text), .btn.btn-hover-transparent-white.focus:not(.btn-text) {
    color: #ffffff;
    background-color: rgba(90, 28, 28, 1);
    border-color: transparent;
}


.btn.btn-orange {
    color: #ffff;
    background-color: rgba(255, 140, 0, 1);
    border-color: transparent;
    font-size: 14px;
    /*font-weight: bold !important;*/
    /*font-family: 'Ubuntu';*/
}

.btn.btn-hover-orange:hover:not(.btn-text):not(:disabled):not(.disabled), .btn.btn-hover-transparent-white:focus:not(.btn-text), .btn.btn-hover-transparent-white.focus:not(.btn-text) {
    color: #ffffff;
    background-color: rgba(255, 100, 0, 1);
    border-color: transparent;
}


.btn.btn-red {
    color: #ffff;
    background-color: rgb(112, 28, 28);
    border-color: transparent;
    font-size: 14px;
    /*font-weight: bold !important;*/
    /*font-family: 'Ubuntu';*/
}

.btn.btn-hover-red:hover:not(.btn-text):not(:disabled):not(.disabled), .btn.btn-hover-transparent-white:focus:not(.btn-text), .btn.btn-hover-transparent-white.focus:not(.btn-text) {
    color: #ffffff;
    background-color: rgba(90, 28, 28, 1);
    border-color: transparent;
}


.alert-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #FFFFFF;
    font-size: 16px !important;
    font-weight: bold !important;
}


.alert.alert-danger {
    background-color: rgba(112, 28, 28, 1) !important;
    border-color: rgba(112, 28, 28, 1) !important;
    font-size: 15px !important;
    color: #ffffff;
    font-weight: bold !important;
}


.label-green {
    color: #FFFFFF;
    background-color: #28a745;
}

.label-red {
    color: #FFFFFF;
    /*701C1CFF*/
    background-color: rgba(112, 28, 28, 1);
}


.tagify .tagify__tag.tagify__tag--green:not(.tagify--notAllowed) div .tagify__tag-text,
.tagify .tagify__tag.tagify__tag--red:not(.tagify--notAllowed) div .tagify__tag-text{
    color: #ffffff;
    font-weight: 500;
}
.tagify .tagify__tag.tagify__tag--green:not(.tagify--notAllowed) .tagify__tag__removeBtn:after,
.tagify .tagify__tag.tagify__tag--red:not(.tagify--notAllowed) .tagify__tag__removeBtn:after{
    color: #ffffff;
}

.tagify .tagify__tag.tagify__tag--green:not(.tagify--notAllowed) {
    background-color: #28a745;
}
.tagify .tagify__tag.tagify__tag--red:not(.tagify--notAllowed) {
    background-color: #701C1C;
}

.custom-header-nav-item {
    padding: 0.60rem 1.2rem !important;
}

div#topology_menu {
    display: none;
    position: absolute;
    z-index: 2000;
}

/*This CSS will style the disabled selectpicker element to
have a gray background and disable pointer events.
The adjacent dropdown-toggle element will also have a gray background, and the cursor will change to not-allowed when hovering over it.*/
/*With this combination, the select element will be disabled,
and users won't be able to change its value,
but it will look like a readonly input field.*/

.selectpicker[disabled] {
    color: #3F4254;
    opacity: 100%;
    border: 1px solid #E4E6EF;
    border-radius: 0.42rem;
}

.selectpicker[disabled] + .dropdown-toggle {
    color: #3F4254;
    opacity: 100%;
    border: 1px solid #E4E6EF;
    border-radius: 0.42rem;
}

#dropZone.highlight {
    border: 2px dashed #666;
    background-color: rgba(102, 102, 102, 0.1);
}

#test-cases {
    border: none !important;
}

.test-cases-resizable-handle {
    background: transparent;
    height: 7px !important;
    cursor: ns-resize;
    bottom: 0 !important;
    left: 0;
    right: 0;
}

.test-cases-resizable-handle .fa-grip-lines {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px; /* Adjust the font-size value to change the icon size */
}

.swal2-timer-progress-bar {
    background-color: #3085d6;
}

.tagify[readonly] .tagify__tag > div::before {
    background: var(--tag-bg) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    -webkit-filter: brightness(0.60) !important;
    filter: brightness(0.60) !important;
}

.browser-mockup {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    /*max-width: 800px;*/
    margin: 5px 5px;
    height: 91vh;
    display: flex;
    flex-direction: column;
}

.browser-mockup-header {
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    position: relative;
    padding: 5px 10px;
}


.browser-mockup-buttons {
    width: 50px;
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.browser-mockup-button {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 3px;
}

.browser-mockup-button:first-child {
    background-color: #f44;
}

.browser-mockup-button:nth-child(2) {
    background-color: #fb0;
}

.browser-mockup-button:nth-child(3) {
    background-color: #0f0;
}

.browser-mockup-url-bar {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin: 0 55px;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 20px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-mockup-url-prefix-secure {
    color: green;
}

.browser-mockup-url-prefix-insecure {
    color: red;
    /*font-weight: bold;*/
}
.browser-mockup-url-prefix-insecure-striked {
    color: red;
    /*font-weight: bold;*/
    text-decoration: line-through;
}

.browser-mockup-content {
    /*overflow-y: auto;*/
    overflow-y: hidden;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
    flex-grow: 1;
}

.browser-mockup-status-bar {
    border-top: 1px solid #ccc;
    padding: 5px 10px;
    /*height: 80px; !* Set the width to your desired value *!*/
    background-color: #f4f4f4;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    display: none;
    white-space: nowrap;
    /*overflow: hidden;*/
    height: 40px;
    text-overflow: ellipsis;
}


#topologyModal canvas {
    background: rgba(240,240,240,0.3);
    background-image: radial-gradient(rgba(0,0,0,.5) 0.5px,transparent 0);
    background-size: 22px 22px;
}


/* Your styles here to override the default offcanvas width, only applied to innovation comment panel*/
#kt_command_panel {
    width: 855px !important;
}
#kt_command_panel.offcanvas.offcanvas-right {
    right: -855px !important;
    left: auto;
}

#kt_command_panel.offcanvas.offcanvas-right.offcanvas-on {
    right: 0 !important; /* Example: Resetting right property */
}


/*Start Ask AI*/
.askai-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}

/* Custom modal content styling */
.askai-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 950px;
    max-width: 95%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: askai-fadeInScale 0.3s ease;
}

@keyframes askai-fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal header */
.askai-modal-header {
    padding: 10px 15px 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Modal body */
.askai-modal-body {
    padding: 10px 20px 15px 20px;
    position: relative; /* For positioning the processing overlay */
}

/* AI result display */
.askai-result {
    min-height: 150px;
    max-height: 500px; /* Set your desired maximum height */
    overflow-y: auto;  /* Enables vertical scrolling when needed */
    border: 1px solid #dee2e6;
    padding: 10px;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    margin-bottom: 1rem;
}


/* Close button styling */
.askai-modal-close {
    background: transparent;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
}

/* Processing overlay styling */
.askai-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Shake animation */
@keyframes askai-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.askai-shake {
    animation: askai-shake 0.4s ease;
}

.askai-result code {
    background-color: transparent;
}
/*End Ask AI*/


/*Start rating*/
/* ─── Modal Shell (same as before) ─── */
#evaluationModal .modal-content {
    border-radius: 1rem;
    border: none;
    overflow: hidden;
}

#evaluationModal .modal-body {
    padding: 2rem;
    background: #f8f9fa;
}

#evaluationModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
    background: #fff;
}

/* ─── Evaluation Elements (all prefixed) ─── */
#evaluationModal .lab-eval-section {
    margin-bottom: 1rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: .75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

#evaluationModal .lab-eval-section h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2d3748;
    display: flex;
    align-items: center;
}

/* use logical property for icon spacing in both LTR & RTL */
#evaluationModal .lab-eval-section h6 i {
    margin-inline-end: .75rem;
    font-size: 1.2em;
}

#evaluationModal .lab-eval-options .btn {
    border: 2px solid #e2e8f0;
    padding: .75rem;
    font-weight: 500;
    transition: all .2s;
}

#evaluationModal .lab-eval-options .btn.active {
    background: #181C32;
    color: #fff;
    border-color: #181C32;
}

#evaluationModal .lab-eval-options .btn:not(.active):hover {
    border-color: #3f4254; /* a softer dark-gray for hover border */
}


#evaluationModal .lab-eval-comments textarea {
    min-height: 100px;
    resize: vertical;
}


/* Auto-flip rounded corners based on RTL/LTR direction */
#evaluationModal[dir="rtl"] .lab-eval-options .btn:first-child {
    border-top-right-radius: .375rem;
    border-bottom-right-radius: .375rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    /*border-left-width: 1px;*/
}

#evaluationModal[dir="rtl"] .lab-eval-options .btn:last-child {
    border-top-left-radius: .375rem;
    border-bottom-left-radius: .375rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#evaluationModal[dir="ltr"] .lab-eval-options .btn:first-child {
    border-top-left-radius: .375rem;
    border-bottom-left-radius: .375rem;
}

#evaluationModal[dir="ltr"] .lab-eval-options .btn:last-child {
    border-top-right-radius: .375rem;
    border-bottom-right-radius: .375rem;
}

.rating-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rating-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e2e8f0;  /* light gray for “off” */
}

.rating-dots .dot.active {
    background-color: #f6c23e;  /* amber for “on” (Bootstrap warning) */
}
/*End rating*/
