:root {
    --sidebar-width: 325px;
    --toggle-size: 42px;
}

.float-container {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    max-height: calc(100vh);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 9999;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    transition: transform 0.3s ease;
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.float-container::-webkit-scrollbar {
    display: none;
}

.sidebar-closed .float-container {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.float-accordion-header {
    background: linear-gradient(to bottom, #ffa500, #ff8c00);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 10px;
}

.float-accordion-content {
    display: block;
}
.float-accordion-content.float-collapsed {
    display: none;
}

.float-section {
    background-color: #e6f3ff;
    padding: 10px 15px;
}
.float-section:nth-child(even) {
    background-color: #f0f8ff;
}
.float-section-last {
    border-radius: 0 0 10px 10px;
    margin-bottom: 25px;
}
.float-section-title {
    color: #3399ff;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}
.float-item {
    padding: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
}
.float-section-number {
    color: #3399ff;
    margin-right: 5px;
}
.float-chevron {
    font-size: 20px;
    transition: transform 0.3s;
}
.float-chevron.up {
    transform: rotate(180deg);
}

button {
    all: unset;
    cursor: pointer;
}

.sidebar-toggle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: var(--toggle-size);
    height: var(--toggle-size);
    line-height: var(--toggle-size);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: #ff9800;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: left 0.3s ease, background 0.2s ease;
}
.sidebar-toggle:hover {
    background: #ff8c00;
}

@media (max-width: 1023px) {
    .float-container,
    .sidebar-toggle {
        display: none;
    }
}
