.modern-floating-button {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 100000;
    color: #e8eaef;
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(7, 7, 7, 0.2);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
}
.modern-floating-button:hover {
    background-color: #dcdddf;
    transform: scale(1.05) translateY(-2px);
}
.modern-floating-button.clicked {
    border-radius: 15px;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
    user-select: auto;
}
.modern-floating-button.clicked:hover {
    background-color: #e8eaef;
    transform: scale(1);
}
.modern-floating-button:active {
    background-color: #bebfc2;
    transform: scale(1) translateY(0px);
}

.chat-bubble-text {
    display: flex;
    background-image: linear-gradient(135deg, #f7f8fb 0%, #e8eaef 100%);
    color: #06095b;
    font-weight: bold;
    width: 100%;
    height: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-right: 5px;
}

.modern-mixblend-image-modifier {
    height: 20px; 
    mix-blend-mode: multiply;
    margin-right: 5px;
}

.modern-taskbar-text-modifier {
    display: flex;
    color: #06095b;
    font-weight: bold;
    width: 100%;
    height: 100%;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-right: 5px;
}

.modern-taskbar-image-modifier {
    height: 15px; 
    mix-blend-mode: multiply;
    margin-right: 5px;
}

.modern-titlebar-modifier {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    margin-right: 5px;
}


.modern-floating-button:hover .button-text {
    background-color: transparent;
    color: inherit;
}

.modern-panel-field {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/*Targets both elements that have llm and xcroller classes (case 1) and elements that have the x-scroller class and are a descendant ot llm (case 2)*/
.modern-panel-field.x-scroller::-webkit-scrollbar,
.modern-panel-field .x-scroller::-webkit-scrollbar {
    width: 10px !important;
    height: 10px !important;
}

.modern-panel-field.x-scroller::-webkit-scrollbar-thumb,
.modern-panel-field .x-scroller::-webkit-scrollbar-thumb {
    background-color: #ccc !important;
    border-radius: 10px !important;
}


.modern-panel-field .x-tool-expand-bottom:before {
    content: '\f0d7';
}
.modern-panel-field .x-tool-collapse-bottom:before {
    content: '\f0d7';
}
.modern-panel-field .x-tool-expand-top:before {
    content: '\f0d8';
}
.modern-panel-field .x-tool-collapse-top:before {
    content: '\f0d8';
}

.modern-title .x-panel-header-horizontal {
    background: linear-gradient(135deg, #479dfc, #0262cc);
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700; 
    text-align: center !important; 
    padding: 15px; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    border-bottom: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    border-radius: 12px 12px 0 0; 
}

.modern-title .x-panel-header-horizontal:hover,
.modern-sub-title .x-panel-header-horizontal:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.modern-sub-title .x-panel-header-horizontal {
    background: linear-gradient(135deg, #0258b8, #026ade);
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700; 
    text-align: center !important; 
    padding: 15px; 
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    border-bottom: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
    border-radius: 12px 12px 0 0; 
}

.flex-modifier {
    display: flex;
    white-space: pre-wrap;  
}
@-moz-document url-prefix() {
    .flex-modifier {
        display: block;
        white-space: preserve-breaks;
    }
    .flex-modifier br {
        display: none;
    }
}

.modern-close-button-container {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    height: 0px;
    z-index: 10;
}

.modern-close-button {
    display: flex;
    color: white;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 2px;
    right: 2px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    z-index: 1000;
    user-select: none;
}

/* Tray ai styles */
.modern-tray-button .x-panel-body {
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: transparent;
    font-weight: bold;
    line-height: 2;
    right: 0px;
    padding-left: 0px;
    padding-right: 0px;
    user-select: none;
}
.modern-tray-button:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.modern-minimize-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f7f8fb;
    color: #000;
    border: none; 
    cursor: pointer;
    text-align: center;
    line-height: 20px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0px 0px 3px 2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
    z-index: 100000 !important;
    padding: 0px;
    user-select: none;
}

.modern-minimize-btn:hover {
    background-color: #f1f1f1;
}

.modern-minimize-btn:active {
    background-color: #ddd;
}

.modern-back-button {
    width: auto !important;
    float: left;
    user-select: none;
}