/* info                     */
/* info                     */



/* border: 1px solid var(--border-color);
border-radius: 4px;
box-shadow: var(--dropdown-shadow); */

.floating-island {
    position: absolute;
    top: 50px;
    align-items: flex-end;
    background: var( --gradient);
    font-family: 'Cairo', sans-serif;
    border-radius: 0 0 20px 20px;
    border: 0.01px solid var(--border-color2);
    border-top: none;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
    flex-direction: column;
    gap: 10px;
    display: none; /* Hidden by default */
}

.toggle-container1 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-container1:nth-child(n+3) {
    margin-top: 10px;
}

.toggle8 {
    width: 120px;
    height: 35px;
    background-color: #f0f0f0;
    border-radius: 20px;
    border: 1px solid gray;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    font-weight: bold;
    overflow: hidden;
}

.toggle8 input {
    display: none;
}

span {
    padding: 0px 5px;
    font-size: 1.1rem;
}

.text8 {
    z-index: 1;
    color: #fff;
    font-size: 0.8rem;
    padding: 0px 5px;
}

.bg8 {
    position: absolute;
    width: 50%;
    height: 100%;
    background-color: #192c3b;
    left: 0;
    transition: 0.3s;
}

.toggle8 input:checked + .bg8 {
    transform: translateX(100%);
    background-color: #192c3b;
}

.toggle8 input:checked ~ .text8.light {
    color: #192c3b;
}

.toggle8 input:checked ~ .text8.dark {
    color: #fff;
}

.text8.light {
    color: #fff;
}

.text8.dark {
    color: #192c3b;
}

/* RTL Support */
html[lang="ar"] .floating-island {
    left: 15px; /* Set to left for RTL */
    right: auto; /* Reset right */
}

html:not([lang="ar"]) .floating-island {
    right: 15px;
    left: auto;
}


html[lang="ar"] {
    .toggle8,
    .text8,
    .toggle8 input:checked + .bg8,
    .text8.light,
    .text8.dark,
    .toggle8 input:checked ~ .text8.light,
    .toggle8 input:checked ~ .text8.dark {
        direction: ltr;
    }
}



