/* Theme Toggle Button Styles - Inline in menu */
.theme-toggle-li {
    display: inline-block;
    margin-left: 25px !important;
}

.theme-toggle-inline {
    background: transparent;
    border: none;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    vertical-align: baseline;
    margin-top: 0;
}

.theme-toggle-inline:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

.theme-toggle-inline:focus {
    outline: none;
}

.theme-toggle-inline svg {
    width: 14px;
    height: 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    color: var(--text-color);
}

.theme-toggle-inline .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle-inline .moon-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.theme-toggle-inline.dark .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

.theme-toggle-inline.dark .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .theme-toggle-li {
        display: block;
        margin-top: 10px;
        margin-left: 0 !important;
    }
    
    .theme-toggle-inline {
        width: 24px;
        height: 24px;
        margin-left: 25px;
    }
    
    .theme-toggle-inline svg {
        width: 20px;
        height: 20px;
    }
}