#qrcode {
    display: inline-block;
}

#qrcode canvas,
#qrcode img {
    border-radius: 8px;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toggle-button {
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #7ead49;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-button:hover {
    background: #7ead49;
}

.toggle-button.active {
    background: #7ead49;
    border-color: #6a9439;
}

.toggle-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.viewer-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(4px);
}