    .theme-toggle {
        position: relative;
        width: 70px;
        height: 35px;
        background: linear-gradient(45deg, #ffd700, #ffed4a);
        border-radius: 25px;
        border: none;
        cursor: pointer;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 4px;
        overflow: hidden;
    }

    .theme-toggle:hover {
        transform: scale(1.05);
    }

    .theme-toggle .toggle-circle {
        width: 27px;
        height: 27px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 4px;
    }

    .theme-toggle .icon {
        font-size: 15px;
        transition: all 0.4s ease;
        position: absolute;
        top: 19%;
        left: 10%;
    }

    .theme-toggle .sun-icon {
        color: #ff6b35;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    .theme-toggle .moon-icon {
        color: #4a5568;
        opacity: 0;
        transform: rotate(180deg) scale(0.5);
    }

    .theme-toggle .sun-rays {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .theme-toggle.dark {
        background: linear-gradient(45deg, #4a5568, #2d3748);
        box-shadow: 0 5px 15px rgba(74, 85, 104, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .theme-toggle.dark .toggle-circle {
        right: 39px;
        background: #2d3748;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .theme-toggle.dark .sun-icon {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }

    .theme-toggle.dark .moon-icon {
        opacity: 1;
        transform: rotate(0deg) scale(1);
        color: var(--glow-moon);
    }

    .theme-toggle.dark .sun-rays {
        opacity: 0;
    }
