/* Body */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #1F1F1F;
    color: #F5F5F5;
}

.fullscreen-btn {
    font-size: 1.5rem;
    cursor: pointer;
}

/* Navbar */

.navbar {
    margin-bottom: 0;
}

.CodeMirror {
    height: calc(100vh - 56px);
    width: 100vw;
    background-color: #1F1F1F;
    color: #F5F5F5;
}

/* Editor */

#editor {
    width: 100vw;
    height: calc(100vh - 56px);
    background-color: #1F1F1F;
    color: #F5F5F5;
    border: none;
    padding: 0;
    margin: 0;
}

.CodeMirror {
    font-size: 16px;
}

/* Gutter */

.CodeMirror-gutter {
    margin-right: 5px !important;
}

/* PlaceHolder */

.CodeMirror-placeholder {
    color: #888888 !important;
}

/* Match Brackets */

.CodeMirror-matchingbracket {
    outline: 1px solid gray; 
    text-decoration: none !important;  
}

/* ScrollBar */

.CodeMirror-vscrollbar{
    scrollbar-width: thin !important; 
    scrollbar-color: #555 #333; 
}

/* Highlight Similar Words */

.cm-matchhighlight {
    outline: 1px solid gray; 
}

.CodeMirror-selection-highlight-scrollbar {
    background-color: rgba(255, 165, 0, 0.5) !important;
    width: 9px !important;
    background: transparent;
}

/* Marker */

.breakpoints {
    width: 0.4rem !important;
}

.breakpoint { 
    color: #822; 
}

/* Fold Marker */

.CodeMirror-foldgutter{
    width: 0.4rem !important;
}

.CodeMirror-foldmarker{
    color: #999;
    text-shadow: #b9f 1px 1px 1.5px, #b9f -1px -1px 1.5px;
}

/* Dialog Search */

.CodeMirror-dialog-top {
    border: 1px solid var(--default-line-color);
    left: unset;
    right: 12px;
    top: 10px;
    padding: 5px;
    background-color: #212529;
    -webkit-box-shadow: 1px 1px 12px 0 rgba(0, 0, 0, .15);
    -moz-box-shadow: 1px 1px 12px 0 rgba(0, 0, 0, .15);
    box-shadow: 1px 1px 12px 0 rgba(0, 0, 0, .15)
}

.CodeMirror-dialog-top input {
    padding: 5px;
    width: 12em !important;
    max-width: 300px;
    background-color: var(--secondary-background-color)
}

.CodeMirror-search-label{
    margin-left: 8px;
    color: gray;
}

.CodeMirror-search-label .icon {
    position: relative;
    top: 3px
}

.CodeMirror-search-state-count {
    padding: 0 10px
}

.CodeMirror-dialog-top .btn-icon {
    display: inline-block;
    padding: 1px 3px 0;
    border-radius: 50%
}

.CodeMirror-dialog-top .btn-icon:hover {
    background-color: var(--secondary-background-color)
}

.CodeMirror-dialog-top .btn-icon .icon::before {
    position: relative;
    top: 3px
}

/* Active Line */

.CodeMirror-activeline-background {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    background: 0 0 !important;
    background-color: unset !important;
}

/* Right SideBar */

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #212529;
    color: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1050;
    padding: 1rem;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #555; 
    border-radius: 50%; 
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: #888; 
}

.sidebar::-webkit-scrollbar-track {
    background: #333;  
    border-radius: 8px;  
}

.sidebar {
    scrollbar-width: thin; 
    scrollbar-color: #555 #333;
}


/* Scrollbar for SideBar Ends */

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    padding: 1rem;
}

.settings-group {
    margin-bottom: 1.5rem;
}

.settings-group h6 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

#settings-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

#close-sidebar {
    cursor: pointer;
    font-size: 1.5rem;
}

.sidebar.open {
    right: 0 !important;
}


/* Select Options */

.btn.dropdown-toggle {
    background-color: #212529;
    color: #ccc; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.btn.dropdown-toggle:focus {
    outline: none !important;
    border-color: none !important;
    background-color: #282A36;
}

.dropdown-menu {
    background-color: #212529; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 0.25rem;
    padding: 0.5rem 0;
    min-width: 100%;
}

.dropdown-item {
    background-color: #212529; 
    color: #ccc; 
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.dropdown-item:hover {
    background-color: #282A36; 
    color: white;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #00bcd4;
    color: white; 
}

.filter-option-inner-inner {
    color: #ccc;
}

.btn:focus, .dropdown-toggle:focus {
    box-shadow: none;
}

.bs-searchbox .form-control {
    background-color: #212529; 
    color: #fff; 
    border-color: 1px solid rgba(255, 255, 255, 0.1);
}

.bs-searchbox .form-control:focus {
    background-color: #212529;
    border-color: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff; 
}

/* Form Labels */

label{
    color: #ccc;
}

/* Font Size Range */

/* Customize range slider to fit dark theme */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    color: #444c56;  /* Darker background for the slider */
    border-radius: 5px;
    outline: none;
    transition: background 0.3s ease;
}

/* Customize the slider thumb (the knob) */
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #282A36;  /* Bright color for thumb */
    border: 3px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #282A36;  /* Bright color for thumb */
    border-radius: 50%;
    border: 3px solid #ccc;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Change thumb color on hover */
.form-range::-webkit-slider-thumb:hover,
.form-range::-moz-range-thumb:hover {
    background: #e67e22;
}

/* Popup */

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
}

.popup-content {
    background-color: #212529; 
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    text-align: center;
    border-radius: 8px;
    color: #CCC;
}

.close {
    color: #AAA;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #FFF;
}

#postUrl{
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    text-align: center;
    background-color: #333A47; 
    color: #ccc;
    border-radius: 4px;
}

.button-copy:hover {
    background-color: #5c636b; 
}

i{
    font-size: 18px !important;
    color: white;
    text-decoration: none !important;
    cursor: pointer !important;
}

.fa-floppy-disk{
    color: #a6e3a1;
}

.fa-cog{
    color: #ACAEB2;
}

.fa-download{
    /* color: #ACAEB2; */
    color: cyan;
}

.fa-copy{
    color: #F6B200;
    /* color: #0080CF; */
}

.fa-cog{
    color: #CF7CF7;
}