/* Base Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #50c878;
    --background-color: #f3f4f6;
    --sidebar-bg: linear-gradient(to bottom, #2c3e50, #34495e);
    --text-color: #333;
    --text-light: #ffffff;
    --border-color: #e5e7eb;
    --hover-color: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    height: 100%;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Button reset */
button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease-in-out, transform var(--transition-speed) ease-in-out;
}

/* Input reset */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* Link reset */
a {
    color: inherit;
    text-decoration: none;
}

/* Code Block Styling */
pre code {
    display: block;
    overflow-x: auto;
    padding: 1em;
    background: #f0f0f0;
    border-radius: 0.3em;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    /* Add word wrapping for long lines in code blocks */
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre {
    position: relative;
    padding-top: 40px;
    background-color: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
    /* Ensure code blocks don't overflow their container */
    max-width: 100%;
}

code {
    display: block;
    padding: 15px;
    overflow-x: auto;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}