/* Dark mode toggle button — always loaded, both themes */

.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    box-sizing: border-box;
    flex-shrink: 0;
    opacity: 0.9;
    transition: background 0.2s ease, opacity 0.2s ease;
    margin-left: 8px;
    vertical-align: middle;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
    opacity: 1;
}

.dark-mode-toggle:focus {
    outline: none;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 14px;
        margin-left: 4px;
    }
}

/* Force ionicons font on the toggle icon, overriding ct_icon.css conflict */
#dark-mode-icon {
    font-family: "Ionicons" !important;
    speak: none !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    display: inline-block !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    color: #fff !important;
}

#dark-mode-icon::before {
    font-family: "Ionicons" !important;
}
