/* --- Base and Font Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #e5e5ee;
    user-select: none; /* Disable text selection globally */
    -webkit-user-select: none; /* For Safari */
    -moz-user-select: none; /* For Firefox */
    -ms-user-select: none; /* For IE/Edge */
}

pre code {
    font-family: 'JetBrains Mono', monospace;
    user-select: text; /* Re-enable text selection for code */
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* --- Navigation & Sidebar --- */
.nav-link.active {
    color: #3b82f6; /* Tailwind blue-500 */
    background-color: #1f2937; /* Tailwind gray-800 */
}

#sidebar {
    transition: transform 0.3s ease-in-out;
}

/* --- Content & Code Blocks --- */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.code-block-container {
    background-color: #111827; /* Tailwind gray-900 */
    border-radius: 0.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden; /* Ensures h4 active effect respects border radius */
}

/* Tap/Press effect for module names on mobile */
.code-block-container h4:active {
    background-color: #1f2937; /* Tailwind gray-800 */
}

/* --- Interactive Elements --- */
.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #374151; /* Tailwind gray-700 */
    color: #d1d5db; /* Tailwind gray-300 */
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.copy-button:hover {
    background-color: #4b5563; /* Tailwind gray-600 */
}

#to-top-btn {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

#to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#to-top-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

/* --- Background Animation --- */
#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

