/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f9;
}

header, footer {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
    text-align: center;
}

.editor-container {
    width: 80%;
    max-width: 800px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#editor {
    width: 100%;
    height: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    font-size: 16px;
    resize: none;
}

.controls {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}

button {
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
}

button:hover {
    background-color: #218838;
}

button.load {
    background-color: #ffc107;
}

button.load:hover {
    background-color: #e0a800;
}

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

body.dark-mode header, body.dark-mode footer {
    background-color: #1f1f1f;
}

body.dark-mode .editor-container {
    background-color: #1e1e1e;
    border-color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode #editor {
    background-color: #2e2e2e;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode button {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode button:hover {
    background-color: #4a4a4a;
}

body.dark-mode button.load {
    background-color: #5a5a5a;
}

body.dark-mode button.load:hover {
    background-color: #6a6a6a;
}
