.ctt-tabs {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-family: "Fira Code", monospace;
    margin-bottom: 2rem;
}

.ctt-tab-buttons {
    display: flex;
    background: #f5f5f5;
    padding: 0;
    margin: 0;
    list-style: none;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.ctt-tab-buttons li {
    padding: 10px 20px;
    cursor: pointer;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
    border-right: 1px solid #ddd;
    user-select: none;
    transition: background 0.3s ease;
}

.ctt-tab-buttons li:hover,
.ctt-tab-buttons li.active {
    background: #e0e0e0;
}

.ctt-tab-content {
    display: none;
    position: relative;
    background: #2d2d2d;
    padding: 1rem;
    overflow-x: auto;
}

.ctt-tab-content.active {
    display: block;
}

.ctt-tab-content pre {
    margin: 0;
    padding-top: 2rem;
    border-radius: 4px;
}

.ctt-copy-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #3c3c3c;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    z-index: 10;
    transition: all 0.3s ease;
}

.ctt-copy-btn:hover {
    opacity: 1;
    background-color: #555;
}

/* Prism overrides (optional tweak) */
code[class*="language-"],
pre[class*="language-"] {
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
    .ctt-tab-buttons li {
        font-size: 12px;
        padding: 8px 12px;
    }

    .ctt-copy-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}
