body {
    margin: 0;
    padding: 0;
    font-family: 'Consolas', 'Courier New', monospace;
    background-color: #1e1e1e;
    color: #d4d4d4;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-menu {
    background-color: #333;
    color: #d4d4d4;
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
}

.menu-bar {
    display: flex;
    align-items: center;
    width: 100%;
}

.menu-bar span {
    margin-right: 15px;
    cursor: pointer;
}

.menu-bar input {
    margin-left: auto;
    padding: 2px 5px;
    border: none;
    border-radius: 3px;
    background-color: #1e1e1e;
    color: #d4d4d4;
}

.container {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 250px;
    background-color: #252526;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.top-icons {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
}

.icon {
    width: 20px;
    height: 20px;
    background-color: #3c3c3c;
    border-radius: 50%;
}

.file-explorer {
    color: #d4d4d4;
}

.highlighted {
    color: #007acc;
    background-color: #373737;
    padding: 2px 5px;
    border-radius: 3px;
}

.editor {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
}

.editor-header {
    background-color: #333;
    padding: 10px;
    display: flex;
    align-items: center;
}

.editor-header p {
    margin: 0;
    color: #d4d4d4;
}

.code-area {
    flex: 1;
    background-color: #1e1e1e;
    border: none;
    color: #d4d4d4;
    padding: 10px;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    font-family: 'Consolas', 'Courier New', monospace;
}

.code-area:focus {
    outline: none;
}

.status-bar {
    background-color: #333;
    color: #d4d4d4;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.submit-code-btn {
    background-color: #007acc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    bottom: 50px;
    right: 20px;
    border-radius: 5px;
}

.submit-code-btn:hover {
    background-color: #005f99;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 300px;
    text-align: center;
    color: #d4d4d4;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.submit-btn {
    background-color: #007acc;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.submit-btn:hover {
    background-color: #005f99;
}

/* Media Queries for Mobile Devices */
@media (max-width: 768px) {
    .top-menu {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .menu-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-bar span, .menu-bar input {
        margin-bottom: 10px;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px 0;
    }

    .file-explorer {
        margin-left: 0;
        margin-top: 10px;
        padding-left: 10px;
        border-left: 1px solid #3c3c3c;
    }

    .editor {
        flex: none;
        height: calc(100vh - 200px);
    }

    .submit-code-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }

    .modal-content {
        width: 90%;
        margin-top: 30%;
    }
}
