.ctm-float-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ctm-widget-color1, #f5f5f5);
    border-radius: 50px;
    padding: 8px 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
    transition: background 0.3s ease;
}

.ctm-ft-icon {
    transition: opacity 0.25s ease;
    user-select: none;
    display: flex;
    align-items: center;
}

.ctm-ft-icon svg {
    width: 0.9em;
    height: 0.9em;
    display: block;
}

/* Sun fades out when dark is active */
.ctm-float-toggle .ctm-ft-icon:first-child {
    opacity: 1;
}

.ctm-float-toggle.is-dark .ctm-ft-icon:first-child {
    opacity: 0.35;
}

/* Moon fades out when light is active */
.ctm-float-toggle .ctm-ft-icon:last-child {
    opacity: 0.35;
}

.ctm-float-toggle.is-dark .ctm-ft-icon:last-child {
    opacity: 1;
}

.ctm-ft-track {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background-color: var(--ctm-widget-color2) !important;
    color: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.25s ease;
    box-shadow: none !important;
}

.ctm-ft-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.25s ease;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.ctm-float-toggle.is-dark .ctm-ft-thumb {
    transform: translateX(20px);
}

/* Base state: light mode */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

/* Dark mode via toggle only */
body.ctm-dark .logo-light {
    display: none;
}

body.ctm-dark .logo-dark {
    display: block;
}