/* Base Styling */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

button {
    padding: 10px;
    margin-top: 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.navigation {
    margin-top: 20px;
}

.navigation a {
    color: #007BFF;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

.navigation a:hover {
    text-decoration: underline;
}

/* Form Styling */
form {
    margin-top: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: background-color 0.3s, border-color 0.3s;
}

textarea {
    resize: vertical;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="file"]:focus,
textarea:focus,
select:focus {
    background-color: #fff;
    border-color: #007BFF;
}

/* Discussion Threads */
.discussion-thread {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.discussion-thread h3 {
    margin-top: 0;
    font-size: 20px;
}

.reply-btn {
    margin-top: 10px;
}

/* Idea Board */
.idea-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.idea-item h3 {
    margin-top: 0;
    font-size: 20px;
}

/* Code Editor */
textarea#coding-challenge-solution,
textarea#data-analysis-code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #282c34;
    color: #abb2bf;
    border: 1px solid #555;
}

/* Hardware Simulator */
.hardware-config form {
    display: flex;
    flex-direction: column;
}

.hardware-config label {
    margin-top: 10px;
}

.hardware-config input,
.hardware-config select {
    margin-bottom: 20px;
}

/* Project Showcase */
.project-item {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.project-item h3 {
    margin-top: 0;
    font-size: 20px;
}

/* Dark Mode Theme */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.container.dark-mode {
    background: #1e1e1e;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

button.dark-mode {
    background-color: #333;
    color: #e0e0e0;
}

button.dark-mode:hover {
    background-color: #555;
}

.navigation a.dark-mode {
    color: #61dafb;
}

.navigation a.dark-mode:hover {
    text-decoration: underline;
}

input.dark-mode,
textarea.dark-mode,
select.dark-mode {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

input.dark-mode:focus,
textarea.dark-mode:focus,
select.dark-mode:focus {
    background-color: #444;
    border-color: #61dafb;
}

.discussion-thread.dark-mode,
.idea-item.dark-mode,
.project-item.dark-mode {
    background-color: #1e1e1e;
    border-color: #444;
}

textarea#coding-challenge-solution.dark-mode,
textarea#data-analysis-code.dark-mode {
    background-color: #1e1e1e;
    color: #abb2bf;
    border-color: #555;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: transparent;
    border: 2px solid currentColor;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
}
