/* Right Floating Sidebar */

/* Declare variable to adjust by users */
:root {
    --qimeta_tooltip_label: DarkGreen;  /* #FFD700;  Default color (Gold)  This variable is set in qimeta_show_file.html*/
    --qimeta_tooltip_label_font_weight: normal;
}


.qimeta_right_sidebar {
    position: fixed;
    right: 0; /* 0 Initially hidden */
    top: 0;
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    border-left: 1px solid #e5e5e5;
    padding: 20px;
    transition: right 0.3s ease-in-out;

    z-index: 1000;

    /* NEW slide mechanism */
    transform:translateX(100%);       /* hidden = shifted 100 % of itself */
    transition:transform .3s ease-in-out;
}

.qimeta_right_sidebar_menu_item{
        margin-top:12px;                /* vertical gap  */
        padding-top:12px;
        padding-bottom:12px;
        border-bottom:1px solid #e5e5e5;   /* grey line     */
    }


/* Sidebar Open State */
.qimeta_right_sidebar.open{
    transform:translateX(0);          /* visible */
}

/* only the inner wrapper scrolls */
.sidebar-content{
    height:100%;
    overflow-y:auto;
}

/* toggle button now absolute inside sidebar */
.qimeta-toggle-right{
    position:absolute;
    left:-35px;           /* sits just outside the sidebar */
    top:100px;   
            
    width:35px;          /* new */
    height:35px;         /* new */
    display:flex;        /* keeps the ☰ centred */
    align-items:center;
    justify-content:center;

    background:#fff;
    /* background: red; */
    padding:10px;
    border:1px solid #e5e5e5;
    border-radius:50%;
    cursor:pointer;
    z-index:1002;
    transition:left .3s ease;
}



.qimeta_sidebar-resizer{
    position:absolute;
    left:-4px;                 /* sits just outside the sidebar */
    top:0;
    width:14px;
    height:100%;
    cursor:col-resize;         /* ← resize cursor */
    background:transparent;    /* invisible until hover */
    z-index:1001;
}
.qimeta_sidebar-resizer:hover{
    background:#ccc;           /* thin grey line when user hovers */
}




/* Ensure submenu takes full width and aligns left */
.qimeta_right_sidebar_menu_item .submenu {
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping to new lines */
    align-items: center;
    justify-content: flex-start; /* Ensures elements stay to the left */
    width: 100%; /* Takes full available space */
    padding: 0;
    margin: 0;
}

/* Remove any unwanted padding or margins */
/* .qimeta_right_sidebar .submenu li {
    padding: 0;
    margin: 0;
} */


/* Remove bullets from all lists in the right sidebar */
.qimeta_right_sidebar ul {
    list-style: none;  /* Remove bullets */
    padding: 0;
    margin: 0;
}

/* Ensure list items do not have extra spacing */
/* .qimeta_right_sidebar ul li {
    margin: 0;
    padding: 0;
} */

/*  subtle styling for second-level links inside the assessment submenu  */
#AssessmentsSubmenu > li > a{
    font-size: 0.9em;          /* slightly smaller text           */
    color:#555;                /* softer gray that matches palette*/
    padding-left: 14px;        /* indents under parent headline   */
    display:flex;              /* keeps icon + text aligned       */
    gap:6px;                   /* space between icon and label    */
}

#AssessmentsSubmenu > li > a:hover{
    color:#1E90FF;             /* same blue you use on hover els. */
}



/* Fix color-picker-row spacing */
.color-picker-row {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start; /* Aligns to left */
    flex-wrap: nowrap; /* Prevents extra spacing */
    width: 100%; /* Use full width */
    padding: 10px 0;
}
/* Color Option Buttons */
.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s ease;
}

.color-option:hover {
    border: 2px solid black;
}

/* Custom Color Picker */
.color-picker-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-picker-label {
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    transition: background 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light Tooltip Effect */
.color-picker-label::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #f9f9f9;
    color: #333;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out;
}

.color-picker-label:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Hide the default color picker */
.color-picker {
    visibility: hidden;
    width: 0;
    height: 0;
    position: absolute;
}


/* Responsive: Adjust button for smaller screens */
@media screen and (max-width: 480px) { /* Mobile */
    .qimeta-toggle-right {
        /* right: -35px; */
        padding: 8px;
    }
}


/* 📱 Responsive Design */
@media screen and (max-width: 1024px) { /* Tablet (iPad, notebooks) */
    .qimeta_right_sidebar {
        width: 220px;
        padding: 15px;
    }

    .color-option {
        width: 25px;
        height: 25px;
    }

    .color-picker-label {
        padding: 5px;
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) { /* Smaller tablets & landscape phones */
    .qimeta_right_sidebar {
        width: 200px;
        padding: 10px;
    }

    .color-option {
        width: 22px;
        height: 22px;
    }

    .color-picker-label {
        padding: 4px;
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) { /* Mobile Phones */
    .qimeta_right_sidebar {
        width: 75%;
        height: auto;
        right: -75%;
    }

    .qimeta_right_sidebar.open {
        right: 0;
    }

    .color-picker-row {
        justify-content: space-between;
        padding: 8px;
    }

    .color-option {
        width: 20px;
        height: 20px;
    }

    .color-picker-label {
        padding: 3px;
        font-size: 12px;
    }

    /* Make the toggle button more mobile-friendly */
    .qimeta-toggle-right {
        top: 10px;
        padding: 8px;
    }
}


/* Font-Weight Selector - Ensure full width */
.font-weight-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 6px; /* Aligns with first color button */
    margin-top: 5px;
    width: 100%; /* Takes full space */
}

/* Font-weight label aligns with first color button */
.font-weight-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    min-width: 90px; /* Ensures alignment */
    text-align: left;
}

/* Adjust dropdown width */
.font-weight-dropdown {
    flex-grow: 1; /* Makes sure it fills available space */
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}




