::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.convert-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}

.preview-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.preview-color {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    background: linear-gradient(45deg, #e2e8f0 25%, #f8fafc 25%, #f8fafc 50%, #e2e8f0 50%, #e2e8f0 75%, #f8fafc 75%, #f8fafc 100%);
    background-size: 16px 16px;
}

.preview-picker {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.format-switch {
    display: inline-flex;
    gap: 0.35rem;
}

.format-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.format-btn:hover {
    border-color: #93c5fd;
    color: #1d4ed8;
}

.format-btn.is-active {
    border-color: #3b82f6;
    background: #dbeafe;
    color: #1d4ed8;
}

.result-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
}

.result-label {
    color: #64748b;
    font-size: 0.8125rem;
    margin-bottom: 0.35rem;
}

.result-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-all;
}

.toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: #1e293b;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
