/* Code Tabs Container */
.code-tabs {
    border-radius: 8px;
    overflow: hidden;
    background: #111827;
    border: 1px solid #1f2937;
}

/* Tab Buttons */
.tab-button {
    background: #1f2937;
    border: none;
    padding: 10px 20px;
    color: #e0e0e0;
    cursor: pointer;
}

.tab-button.active {
    background: #111827;
    border-bottom: 2px solid #60a5fa;
}

.tab-button:hover:not(.active) {
    background: #374151;
}

/* Code Sample Container */
.code-sample {
    display: none;
    position: relative;
    margin: 0;
    background: #111827;
}

.code-sample.active {
    display: block;
}

/* Code Block Styling */
.code-sample pre {
    margin: 0 !important;
    padding: 1.5rem !important;
    padding-top: 1.5rem !important;
    background: #111827 !important;
    font-family: 'Fira Code', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

.code-sample pre code {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    text-shadow: none !important;
    color: #e5e7eb !important;
}

/* Copy Button */
.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 4px 8px;
    color: #e0e0e0;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: #374151;
    border-color: #4b5563;
}

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

/* Feature Cards hover effect */
.feature-card {
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #60a5fa;
}

/* Form Focus States */
input:focus, select:focus, textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

/* Animation */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

/* Dark Theme Prism.js Overrides */
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
    background: #111827 !important;
}

/* Comments */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #7c96b8;  /* Brighter blue-grey for comments */
}

/* Basic syntax */
.token.punctuation {
    color: #e2e8f0;  /* Bright grey for better visibility */
}

/* Properties, numbers, etc */
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #7dd3fc;  /* Bright blue */
}

/* Strings */
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #86efac;  /* Bright green */
}

/* Operators */
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #f1f5f9;  /* Very light grey for operators */
}

/* Keywords */
.token.atrule,
.token.attr-value,
.token.keyword {
    color: #93c5fd;  /* Light blue for keywords */
}

/* Functions */
.token.function,
.token.class-name {
    color: #c4b5fd;  /* Light purple for functions */
}

/* Variables */
.token.regex,
.token.important,
.token.variable {
    color: #fca5a5;  /* Light red for variables */
}

/* Important elements */
.token.important,
.token.bold {
    font-weight: bold;
}

/* Language-specific */
.language-json .token.property {
    color: #93c5fd;  /* Light blue for JSON properties */
}

.language-bash .token.function {
    color: #e2e8f0;  /* Light grey for bash commands */
}