/* Global styles for dark theme and responsive design */
body {
    background-color: #121212;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header, footer {
    background: linear-gradient(90deg, #1a202c, #2d3748);
}

.interactive {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2d3748, #4a5568);
    border-radius: 0.75rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

textarea, input[type="text"], input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.75rem 0;
    background-color: #4a5568;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

textarea:focus, input[type="text"]:focus, input[type="number"]:focus {
    background-color: #718096;
    outline: none;
}

button {
    padding: 0.875rem 1.75rem;
    background-color: #10B981;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #059669;
    transform: translateY(-0.125rem);
}

canvas {
    max-width: 100%;
    margin-top: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#sidebar {
    width: 12rem;
    background-color: #1f2937;
    padding: 1rem;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 10;
}

#sidebar.show {
    transform: translateX(0);
}

#sidebar ul {
    list-style: none;
    padding: 0;
}

#sidebar li a {
    display: flex;
    align-items: center;
    color: #34D399;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#sidebar li a:hover {
    background-color: #374151;
    color: #2dd4bf;
}

#sidebar li a i {
    margin-right: 0.5rem;
}

@media (min-width: 1024px) {
    #sidebar {
        position: sticky;
        transform: translateX(0);
        display: block;
    }

    #menuToggle {
        display: none;
    }
}

h1, h2, h3, h4, h5, h6 {
    color: #34D399 !important;
}