/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle:hover {
    background: #1a1a1a;
    border-color: #444444;
}

body.light-mode .theme-toggle {
    border: 1px solid #cccccc;
    color: #000000;
}

body.light-mode .theme-toggle:hover {
    background: #f5f5f5;
    border-color: #999999;
}

.theme-icon {
    font-size: 1.1rem;
}

/* Copy Button */
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #1a1a1a;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0;
}

.content pre:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background: #2a2a2a;
    border-color: #444444;
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background: #4caf50;
    border-color: #4caf50;
}

body.light-mode .copy-button {
    background: #f5f5f5;
    border: 1px solid #cccccc;
    color: #000000;
}

body.light-mode .copy-button:hover {
    background: #e0e0e0;
    border-color: #999999;
}

body.light-mode .copy-button.copied {
    background: #4caf50;
    border-color: #4caf50;
    color: #ffffff;
}