/* Custom scrollbar to keep it clean */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.3);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.5);
}

/* Auto-resizing textarea tweaks */
textarea {
    min-height: 44px;
    /* single line height approx */
    overflow-y: hidden;
}

/* Tooltip positioning */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: #1e293b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    white-space: nowrap;
    z-index: 10;
}

.dark .tooltip::after {
    background: #f8fafc;
    color: #0f172a;
}

.tooltip:hover::after,
.tooltip:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.tooltip.copied::after {
    content: "Copied!";
    background: #10b981;
    /* emerald-500 */
    color: white;
}