code {
    font-size: .875em;
    word-wrap: break-word;
    color: #d63384;
    background: rgba(0, 0, 0, .07);
    font-weight: 800;
    padding: 2px 4px;
}

.maf_blur_this {
    background-color: hsla(0, 0%, 100%, .7);
    filter: blur(5px);
    -webkit-filter: blur(5px);
}

.maf_membership_notification {
    color: #ffffff;
    position: absolute;
    font-size: 18px;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -65%);
    z-index: 2;
    width: 100%;
    padding: 20px;
    text-align: center;
}

.maf_membership_notification .maf_register_now_btn {
    display: inline-block;
    background: #7d4fa0;
    color: #ffffff !important;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
}

.maf_blur_this button,
.maf_blur_this .sql-box {
    pointer-events: none !important;
}

.task {
    position: relative;
}

/* Container styling similar to a SQL editor look */
.code-editor-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.editor-header h3 {
    text-align: center;
    font-size: 1.5em;
    margin: 0;
    padding: 0;
}

/* Theme toggle button container */
.theme-toggle-container {
    text-align: right;
    margin-bottom: 10px;
}

.theme-toggle-container button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.theme-toggle-container button:hover {
    background-color: #0069d9;
}

/* Python code text area, dark mode by default */
.python-box,
.sql-box {
    width: 100%;
    height: 150px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    background-color: #2d2d2d;
    color: #fff !important;
    caret-color: #fff;
}

/* Light mode editor toggle */
.python-box.light-mode-editor,
.sql-box.light-mode-editor {
    background-color: #f5f5f5;
    color: #000 !important;
    border: 1px solid #ccc;
    caret-color: #000;
}

.maf_membership_notification.light-mode-editor {
    color: #000;
}

.editor-controls {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.editor-controls button {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.editor-controls button.run {
    background-color: #28a745;
}

.editor-controls button.reset {
    background-color: #dc3545;
}

.editor-controls button.check-answer {
    background-color: #007bff;
}

/* Output area (dark) by default */
.output-display {
    margin-top: 20px;
}

.scrollable {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    background-color: #2d2d2d;
    color: #fff;
    white-space: pre-wrap;
}

/* Light mode output */
.scrollable.light-mode-editor {
    background-color: #f5f5f5;
    color: #000 !important;
    border: 1px solid #ccc;
}

.hint-container {
    margin-top: 10px;
}

.hint-container button {
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

.hint-container button:hover {
    background-color: #5a6268;
}

.hint-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.task {
    margin-bottom: 40px;
}

h4 {
    margin-bottom: 5px;
}

.result {
    margin-top: 10px;
    font-size: 14px;
}

.result.correct {
    color: green;
}

.result.incorrect {
    color: red;
}

/* Light mode container toggle */
.code-editor-container.light-mode {
    background-color: #fff;
    color: #000;
}

.output-display th {
    background: inherit;
}