.code-snippet-widget {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Fira Code', monospace;
    max-width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    /* background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); */
    border: 1px solid #404040;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.snippet-header {
    /* background: linear-gradient(90deg, #fbdd97 0%, #fbf6d3 100%); */
    padding: 16px 20px 12px;
    border-bottom: 1px solid #7844a0;
    position: relative;
}

.snippet-title {
    /* color: #7844a0; */
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.snippet-subtext {
    /* color: #a0a0a0; */
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.copy-button {
    position: absolute;
    top: 16px;
    right: 20px;
    /* background: #a559e0; */
    background: linear-gradient(-180deg, #a559e0 0%, #bd75f4 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-button:hover {
    background: #d629f9;
    color: black;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: #28a745;
}

.copy-button.copied:hover {
    background: #218838;
}

.copy-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.snippet-content {
    /* background: #f2ebfc; */
    padding: 20px;
    overflow-x: auto;
    max-height: 300px;
    position: relative;
}

/* Custom scrollbar for output */
.output-content::-webkit-scrollbar {
    width: 10px;
}

.output-content::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 5px;
}

.output-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 5px;
}

.output-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.snippet-code {
    /* color: #e6e6e6; */
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    white-space: pre;
    font-family: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.snippet-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #404040 50%, transparent 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .code-snippet-widget {
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .snippet-header {
        padding: 14px 16px 10px;
    }
    
    .snippet-title {
        font-size: 15px;
        margin-right: 80px;
    }
    
    .snippet-subtext {
        font-size: 12px;
    }
    
    .copy-button {
        top: 14px;
        right: 16px;
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .snippet-content {
        padding: 16px;
    }
    
    .snippet-code {
        font-size: 13px;
    }
}

/* Custom scrollbar */
.snippet-content::-webkit-scrollbar {
    height: 8px;
}

.snippet-content::-webkit-scrollbar-corner {
    background: #2a2a2a;
}

.snippet-content::-webkit-scrollbar-track {
    background: #2a2a2a;
    border-radius: 4px;
}

.snippet-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.snippet-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}