/* Wrapper flex per i pulsanti di azione */
.tex-action-buttons-wrapper {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    width: 125px;
    justify-content: space-between;
}

/* Stili per il form di aggiunta nuovo elemento TikZ/LaTeX */

.add-new-element-group {
    border-bottom: none;
    margin-bottom: 5px;
    display: flex;
    flex: 1;
    margin-right: 0;
}

.add-new-element-btn {
    background-color: #4CAF50 !important;
    color: white;
    font-weight: bold;
    font-size: 18px !important;
    padding: 8px 4px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-new-element-btn:hover {
    background-color: #45a049;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.add-new-element-btn.active {
    background-color: #ffffff !important;
    color: #4CAF50 !important;
    border: 2px solid #4CAF50;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Stili per il form di eliminazione elemento TikZ/LaTeX */

.delete-element-group {
    border-bottom: none;
    margin-bottom: 5px;
    display: flex;
    flex: 1;
    margin-right: 0;
}

.delete-element-btn {
    background-color: #f44336 !important;
    color: white;
    font-weight: bold;
    font-size: 18px !important;
    padding: 8px 4px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-element-btn:hover {
    background-color: #da190b;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.delete-element-btn.active {
    background-color: #ffffff !important;
    color: #f44336 !important;
    border: 2px solid #f44336;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Stili per il form di modifica elemento TikZ/LaTeX */

.edit-element-group {
    border-bottom: none;
    margin-bottom: 5px;
    display: flex;
    flex: 1;
    margin-right: 0;
}

.edit-element-btn {
    background-color: #FF9800 !important;
    color: white;
    font-weight: bold;
    font-size: 18px !important;
    padding: 8px 4px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-element-btn:hover {
    background-color: #F57C00;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.edit-element-btn.active {
    background-color: #ffffff !important;
    color: #FF9800 !important;
    border: 2px solid #FF9800;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.delete-element-form {
    background-color: #fff5f5;
    padding: 15px;
    border: 2px solid #f44336;
    border-radius: 8px;
    max-width: 450px;
    overflow-y: auto;
    max-height: 350px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Posizionamento condizionale per delete-element-form */
.delete-element-btn.active ~ .delete-element-form {
    left: 88px;
}

.delete-element-form.active {
    display: block !important;
}

.delete-element-form .form-section {
    margin-bottom: 12px;
}

.delete-element-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #c62828;
    font-size: 12px;
}

.delete-element-form select {
    width: 100%;
    /* padding: 8px; */
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 13px;
    transition: border-color 0.3s;
}

.delete-element-form select:focus {
    outline: none;
    border-color: #f44336;
}

.delete-element-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

/* Stili per il form di modifica elemento */

.edit-element-form {
    background-color: #fff8f0;
    padding: 15px;
    border: 2px solid #FF9800;
    border-radius: 8px;
    max-width: 550px;
    /* overflow-y: auto;
    max-height: 450px; */
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Posizionamento condizionale per edit-element-form */
.edit-element-btn.active ~ .edit-element-form {
    left: 46px;
}

.edit-element-form.active {
    display: block !important;
}

.edit-element-form .form-section {
    margin-bottom: 12px;
}

.edit-element-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #E65100;
    font-size: 12px;
}

.edit-element-form input[type="text"],
.edit-element-form select,
.edit-element-form textarea {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 13px;
    transition: border-color 0.3s;
}

.edit-element-form input[type="text"]:focus,
.edit-element-form select:focus,
.edit-element-form textarea:focus {
    outline: none;
    border-color: #FF9800;
}

.edit-element-form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 200px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.4;
}

.edit-element-form .checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.edit-element-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.edit-element-form .checkbox-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.delete-element-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.delete-single-element-btn,
.delete-whole-group-btn {
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: normal;
    line-height: 1.4;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    background-color: #f44336 !important;
    color: white;
    flex: 1;
}

.delete-single-element-btn:hover,
.delete-whole-group-btn:hover {
    background-color: #d32f2f;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.cancel-delete-element-btn {
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: normal;
    line-height: 1.4;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    background-color: #757575 !important;
    color: white;
    flex: 1;
}

.cancel-delete-element-btn:hover {
    background-color: #616161;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Stili per i pulsanti del form di modifica */

.save-edit-element-btn {
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: normal;
    line-height: 1.4;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    background-color: #FF9800 !important;
    color: white;
    flex: 1;
}

.save-edit-element-btn:hover {
    background-color: #F57C00;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.cancel-edit-element-btn {
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: normal;
    line-height: 1.4;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    background-color: #757575 !important;
    color: white;
    flex: 1;
}

.cancel-edit-element-btn:hover {
    background-color: #616161;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.edit-element-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.new-element-form {
    background-color: #fffef5;
    padding: 15px;
    border: 2px solid #4CAF50;
    border-radius: 8px;
    max-width: 550px;
    overflow-y: auto;
    max-height: 450px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

/* Posizionamento condizionale per new-element-form */
.add-new-element-btn.active ~ .new-element-form {
    left: 130px;
}

.new-element-form.active {
    display: block !important;
}

.new-element-form .form-section {
    margin-bottom: 12px;
}

.new-element-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #2c3e50;
    font-size: 12px;
}

.new-element-form input[type="text"],
.new-element-form select,
.new-element-form textarea {
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 13px;
    transition: border-color 0.3s;
}

.new-element-form input[type="text"]:focus,
.new-element-form select:focus,
.new-element-form textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

.new-element-form textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 200px;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.4;
}

.new-element-form .checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.new-element-form .checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.new-element-form .checkbox-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.new-element-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.new-element-form button {
    padding: 10px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: normal;
    line-height: 1.4;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.save-new-element-btn {
    background-color: #2196F3 !important;
    color: white;
    flex: 1;
    min-width: 90px;
}

.save-new-element-btn:hover {
    background-color: #0b7dda;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.cancel-new-element-btn {
    background-color: #f44336 !important;
    color: white;
    flex: 1;
    min-width: 90px;
}

.cancel-new-element-btn:hover {
    background-color: #da190b;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* Stili per migliorare la visualizzazione generale dei gruppi TikZ */
.tex-group {
    border-bottom: 1px solid #e0e0e0;
}

.group-btn {
    width: 100%;
    text-align: left;
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.group-btn:hover {
    background-color: #e8e8e8;
}

.group-btn.active {
    background-color: #d0d0d0;
    font-weight: bold;
}

.group-options {
    display: none;
    background-color: #ffffff;
    padding: 10px;
    border-left: 3px solid #2196F3;
}

.group-options.active {
    display: block;
}

.tikz-element-btn,
.traccia-element-btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.2s;
}

.tikz-element-btn:hover,
.traccia-element-btn:hover {
    background-color: #e3f2fd;
    border-color: #2196F3;
}


.toolbar {
    display: flex;
    /* border-bottom: 1px solid #ccc;
    padding: 5px; */
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    /* padding: 5px;
    border-bottom: 1px solid #ccc; */
}

.toolbar-left {
    display: flex;
    align-items: center;
}

.toolbar button,
.toolbar select {
    height: 20px;
}
.insertcheckbox-Cell {
    width: 14px;
    transform: scale(1.5);
    margin-right: 9px;
    /* position: absolute */
    top: 2px;
    left: 169px;
}

.toolbar button {
    border-style: outset;
    border-width: 1px;
    border-color: #b0c4de; /* azzurro chiaro */
    background-color: white;
    cursor: pointer;
}

.toolbar button:active {
    border-style: inset;
}

.Editor_wrapper {
    position: relative;
    display: flex;
    width: max-content;
}

.editor {
    height: fit-content;
    width: max-content;
    /* min-width: 260px; */
    min-height: 180px;
    max-width: 600px;
    overflow-y: auto;
    resize: both;
    border: inset;
    padding: 0 10px;
    /* margin-top: 10px; */
    color: black;
    content-visibility: auto;
}

/* #listType,
.elementTikzSelector{
    width: 45px;
} */
.latex-preview-container {
    /* border: 1px solid #ccc; */
    position: relative;
    padding: 0 5px;
    /* margin-top: 10px; */
    /* background: rgba(176, 224, 230, 0.837); */
}

.latex-preview-title,
.type_wrapper {
    font-size: small;
    height: 23px;
    translate: 0 3px;
    font-weight: bold;
    /* position: absolute;
    right: 0;
    top: 0.5px; */
    z-index: 1;

    /* border-bottom: none; */
    /* border-bottom: 5px solid powderblue; */
    border-bottom: unset;
    /* border-bottom-color: powderblue;
    border-bottom-width: 1000px; */
    background-color: powderblue;
    padding: 0px 5px;
}

.type_wrapper {
    margin-left: auto;
    border-top: inset 1px;
    border-right: inset 1.5px;
    border-left: inset 1px;
}

.latex-preview-title {
    border-top: outset 1px;
    border-right: outset 1.5px;
    border-left: outset 1px;
    width: max-content;
    /* font-weight: bold; */
    /* margin-bottom: 5px; */
    /* text-align: center; */
    /* padding-top: 2px; */
}

.latex-viewer {
    border: outset;
    padding: 0 10px;
    /* margin-top: 5px; */
    color: black;
    background: powderblue;
    word-wrap: break-word;
    /* Va a capo se la parola è troppo lunga */
    width: 14cm;
    overflow: visible;
}

/* Impedisce il wrapping delle formule MathJax nel preview */
.latex-viewer mjx-container {
    white-space: nowrap !important;
    display: inline-block !important;
    width: max-content !important;
}

ol.custom-counter {
    list-style: none;
    counter-reset: custom-counter;
    margin-left: 5px;
    padding: 0px;
}

ol.custom-counter>li {
    counter-increment: custom-counter;
    margin-left: 19px;
}

ol.custom-counter>li::before {
    content: counter(custom-counter) ")";
    margin-right: 4px;
}

ol.custom-decimal {
    list-style: decimal;
    /* margin-left: 5px;
    padding: 0px; */
}

ol.custom-upper-alpha {
    list-style: upper-alpha;
    /* margin-left: 5px;
    padding: 0px; */
}

ol.custom-lower-alpha {
    list-style: lower-alpha;
    /* margin-left: 5px;
    padding: 0px; */
}

br[data-bogus="false"] {
    display: none;
}


.tikz-error-highlight {
    background-color: #fff352;
    /* Un giallo brillante */
    color: black;
    /* Testo nero per contrasto */
    border-bottom: 1px dashed red;
    /* Puoi aggiungere altro, es: */
    /* padding: 0 2px; */
    /* border-radius: 2px; */
}

/* Esempio di classe per il blocco di messaggi di errore */
.tikz-error-messages-block {
    border: 1px solid red;
    color: red;
    padding: 10px;
    margin: 10px 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9em;
    max-height: 250px;
    overflow-y: auto;
}


.group-options {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: max-content;
    min-width: 50px;
    max-width: 400px;
    z-index: 100;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px #aaa;
    padding: 4px;
}

.group-options.active {
    background: #fffacd;
    border: 2px solid #ffcc00;
}

.elementTikzSelector,
.elementTracciaSelector {
    position: relative;
    display: inline-block;
}

.elementTikzTitle,
.elementTracciaTitle {
    cursor: pointer;
}

.elementTikzGroups,
.elementTracciaGroups {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px #aaa;
    z-index: 50;
    padding: 8px;
    overflow: visible;
}

.tex-group,
.traccia-group {
    position: relative;
    width: max-content;
    min-width: 25px;
    z-index: 1;
}

.group-btn {
    width: 125px;
    cursor: pointer;
    border-style: outset;
    border-width: 1px;
    background-color: white;
}

.group-btn.active {
    background-color: #ffffcc;
    border-color: #ffcc00;
    font-weight: bold;
}

.group-options.visible {
    display: block;
}

.traccia-element-btn,
.tikz-element-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin: 2px 0;
    cursor: pointer;
    padding: 4px 8px;
    background: white;
    border: 1px solid #ddd;
}

.traccia-element-btn:hover,
.tikz-element-btn:hover {
    background: #f0f0f0;
}

.linkbar {
    /* position: absolute; */
    /* top: 2px; */
    /* left: 132px; */
    /* background: #e0e0e0;
    border: 1px solid #bbb; */
    cursor: pointer;
}

.dsaBtn {
    cursor: pointer;
    font-size: 12px;
    background: #f0f0f0;
    font-weight: bold;
}

.dsaBtn:hover {
    background: #e0e0e0;
}

.dsaBtn:active {
    background: #d0d0d0;
}

.solution {
    background-color: yellow;
    font-weight: bold;
}

.AddTextDSA {
    font-weight: bold;
}

/* Stili per checkbox DSA nelle verifiche */
.dsa-checkbox-container {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
    vertical-align: middle;
}

.dsa-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin: 0;
    padding: 0;
    vertical-align: middle;
    background: white;
    transition: all 0.2s ease;
}

.dsa-checkbox:hover {
    border-color: #333;
    background: #f5f5f5;
}

.dsa-checkbox:checked {
    background: #4CAF50;
    border-color: #4CAF50;
}

.dsa-checkbox:checked::after {
    content: '✱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.saveBackupBtn {
    /* position: absolute; */
    /* top: 2px; */
    /* left: 156px; */
    cursor: pointer;
    font-size: 12px;
    /* padding: 2px 4px; */
    background: #f0f0f0;
    /* border: 1px solid #ccc; */
    /* border-radius: 3px; */
}

.saveBackupBtn:hover {
    background: #e0e0e0;
}

.saveBackupBtn:active {
    background: #d0d0d0;
}

.elementBackupSelector {
    position: relative;
    display: inline-block;
}

.elementBackupTitle {
    cursor: pointer;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 6px;
}

.elementBackupList {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 8px #aaa;
    z-index: 50;
    padding: 8px;
}

.backup-element-btn {
    display: block;
    width: 100%;
    text-align: left;
    margin: 2px 0;
    padding: 5px 8px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 12px;
    height: fit-content !important;
    min-height: auto;
}

.backup-element-btn:hover {
    background: #f0f0f0;
}

.backup-element-btn.current-editor {
    background: #ffffcc;
    border: 2px solid #ffcc00;
    font-weight: bold;
}

/* Find and Replace Panel Styles */
.findReplaceBtn {
    cursor: pointer;
    font-size: 14px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-style: outset;
    border-width: 1px;
    border-color: #b0c4de;
}

.findReplaceBtn:hover {
    background: #e0e0e0;
}

.findReplaceBtn:active {
    background: #d0d0d0;
    border-style: inset;
}

.findReplacePanel {
    position: fixed;
    top: 10%;
    right: 20px;
    min-width: 400px;
    max-width: 500px;
    background: #f9f9f9;
    border: 2px solid #2196F3;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1000;
}

.findReplaceHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #2196F3;
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
}

.closeFindReplace {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.closeFindReplace:hover {
    color: #ffeb3b;
}

.findReplaceContent {
    padding: 15px;
}

.findReplaceRow {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    align-items: center;
}

.findInput,
.replaceInput {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.3s;
}

.findInput:focus,
.replaceInput:focus {
    outline: none;
    border-color: #2196F3;
}

.findNextBtn,
.findPrevBtn,
.replaceBtn,
.replaceAllBtn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.findNextBtn,
.findPrevBtn {
    background-color: #2196F3 !important;
    color: white;
    min-width: 32px;
    padding: 6px 10px;
}

.findNextBtn:hover,
.findPrevBtn:hover {
    background-color: #0b7dda !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.replaceBtn {
    background-color: #FF9800 !important;
    color: white;
}

.replaceBtn:hover {
    background-color: #F57C00 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.replaceAllBtn {
    background-color: #4CAF50 !important;
    color: white;
}

.replaceAllBtn:hover {
    background-color: #45a049 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.findReplaceOptions {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 10px 0 5px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 5px;
    font-size: 12px;
}

.findReplaceOptions label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.findReplaceOptions input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.findReplaceCounter {
    margin-left: auto;
    font-weight: bold;
    color: #2196F3;
    font-size: 12px;
    white-space: nowrap;
}

/* Highlight styles for search results */
.findHighlight {
    background-color: #ffeb3b;
    color: black;
    border-radius: 2px;
    padding: 1px 2px;
}

.findHighlightActive {
    background-color: #ff9800;
    color: white;
    border-radius: 2px;
    padding: 1px 2px;
    box-shadow: 0 0 4px rgba(255, 152, 0, 0.8);
}