* { margin: 0; padding: 0; box-sizing: border-box; } body { transition: background-color 0.3s, color 0.3s; overflow: hidden; } body.light-mode { background-color: #ffffff; color: #000000; } body.dark-mode { background-color: #2e2e2e; color: #f0f0f0; } .container { display: flex; height: 100vh; width: 100vw; } .editor-container { position: relative; width: 66.6%; display: flex; height: 100%; } .line-numbers { background-color: #e0e0e0; padding: 10px 5px; text-align: right; color: #888888; height: 100%; overflow: hidden; flex-shrink: 0; width: auto; min-width: 3ch; line-height: 1.5; } .editor { width: 100%; border: none; padding: 10px; font-size: 16px; line-height: 1.5; background-color: inherit; color: inherit; resize: none; height: 100%; overflow-y: auto; outline: none; caret-color: #000; } body.dark-mode .line-numbers { background-color: #4b4b4b; color: #cccccc; } body.dark-mode .editor { caret-color: #f0f0f0; } .editor::-webkit-scrollbar, .line-numbers::-webkit-scrollbar { width: 10px; } .editor::-webkit-scrollbar-track, .line-numbers::-webkit-scrollbar-track { background: #e0e0e0; } .editor::-webkit-scrollbar-thumb, .line-numbers::-webkit-scrollbar-thumb { background: #888; border-radius: 5px; } body.dark-mode .editor::-webkit-scrollbar-track, body.dark-mode .line-numbers::-webkit-scrollbar-track { background: #4b4b4b; } body.dark-mode .editor::-webkit-scrollbar-thumb, body.dark-mode .line-numbers::-webkit-scrollbar-thumb { background: #cccccc; } .stats-container { padding: 10px; width: 33.3%; background-color: #f5f5f5; box-shadow: -2px 0 5px rgba(0,0,0,0.1); } body.dark-mode .stats-container { background-color: #4b4b4b; color: #f0f0f0; } .buttons { position: absolute; top: 10px; right: 10px; display: flex; gap: 10px; } button { padding: 10px; background-color: transparent; border: none; cursor: pointer; font-size: 24px; transition: opacity 0.3s ease; } button:hover { opacity: 0.8; } button i { color: #000; } body.dark-mode button i { color: #f0f0f0; } .icon-button { position: relative; padding: 10px; background-color: transparent; border: none; cursor: pointer; font-size: 24px; transition: opacity 0.3s ease; display: flex; flex-direction: column; align-items: center; } .icon-button:hover .icon-text { opacity: 1; visibility: visible; } .icon-text { font-size: 14px; color: #000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; margin-top: 5px; } body.dark-mode .icon-text { color: #f0f0f0; }