.python-editor-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    background-color: #282a36;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.CodeMirror {
    height: 300px;
    border: 1px solid #44475a;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 5px;
}

.python-editor-toolbar {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
    padding: 15px;
    background-color: #1e1f29;
    border-radius: 5px;
}

.python-editor-toolbar::-webkit-scrollbar {
    width: 8px;
}

.python-editor-toolbar::-webkit-scrollbar-thumb {
    background-color: #44475a;
    border-radius: 4px;
}

.python-editor-toolbar::-webkit-scrollbar-track {
    background-color: #282a36;
}

.python-editor-toolbar button {
    padding: 6px 12px;
    background-color: #44475a;
    color: #f8f8f2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.python-editor-toolbar button:hover {
    background-color: #6272a4;
    transform: translateY(-2px);
}

.python-editor-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

#copy-button, #clear-button {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#copy-button {
    background-color: #8be9fd;
    color: #282a36;
}

#clear-button {
    background-color: #ff5555;
    color: #f8f8f2;
}

#copy-button:hover, #clear-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#copy-button:active, #clear-button:active {
    transform: translateY(0);
    box-shadow: none;
}

@media (max-width: 600px) {
    .python-editor-container {
        padding: 15px;
    }

    .python-editor-toolbar {
        padding: 10px;
    }

    .python-editor-toolbar button {
        padding: 5px 10px;
        font-size: 12px;
    }

    #copy-button, #clear-button {
        padding: 8px 14px;
        font-size: 13px;
    }
}