* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'VT323', 'Courier New', monospace;
    background-color: #000000;
    overflow: hidden;
    height: 100vh;
}

.ide-container {
    width: 100vw;
    height: 100vh;
    background-color: #0000AA;
    color: #FFFF55;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Menu Bar */
.menu-bar {
    background-color: #00AA00;
    color: #000000;
    display: flex;
    padding: 0 8px;
    font-weight: bold;
    user-select: none;
    z-index: 100;
    height: 20px;
    align-items: center;
}

.menu-item {
    padding: 0 12px;
    cursor: pointer;
    position: relative;
}

.menu-item:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.menu-item.active {
    background-color: #000000;
    color: #FFFFFF;
}

.menu-hotkey {
    color: #FFFF55;
}

.menu-item:hover .menu-hotkey,
.menu-item.active .menu-hotkey {
    color: #FFFF55;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    background-color: #00AAAA;
    color: #000000;
    border: 2px solid #FFFFFF;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    display: none;
    z-index: 200;
    top: 20px;
    padding: 4px;
}

.dropdown-menu.active {
    display: block;
}

.menu-option {
    padding: 2px 8px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
}

.menu-option:hover {
    background-color: #0000AA;
    color: #FFFFFF;
}

.menu-divider {
    color: #000000;
    pointer-events: none;
    padding: 0;
    margin: 2px 0;
}

.shortcut {
    margin-left: 20px;
    color: #555555;
}

.menu-option:hover .shortcut {
    color: #AAAAAA;
}

/* Editor Window */
.editor-window {
    flex: 1;
    margin: 10px;
    background-color: #0000AA;
    border: 2px solid #55FFFF;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
}

.window-title {
    background-color: #00AAAA;
    color: #000000;
    padding: 2px 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-title-text {
    flex: 1;
    text-align: center;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-control {
    cursor: pointer;
    padding: 0 4px;
}

.window-control:hover {
    background-color: #FFFFFF;
}

.editor-content {
    flex: 1;
    display: flex;
    position: relative;
    background-color: #0000AA;
}

.line-numbers {
    background-color: #0000AA;
    color: #AAAAAA;
    padding: 8px 4px;
    text-align: right;
    min-width: 40px;
    user-select: none;
    font-size: 14px;
    line-height: 1.5;
    border-right: 1px solid #55FFFF;
}

.line-numbers div {
    height: 21px;
}

.editor-textarea {
    flex: 1;
    background-color: #0000AA;
    color: #FFFFFF;
    border: none;
    outline: none;
    padding: 8px;
    font-family: 'VT323', 'Courier New', monospace;
    font-size: 18px;
    line-height: 1.3;
    resize: none;
    caret-color: #FFFFFF;
}

.editor-textarea::selection {
    background-color: #00AAAA;
    color: #000000;
}

/* Status Bar */
.status-bar {
    background-color: #00AAAA;
    color: #000000;
    padding: 2px 8px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    user-select: none;
    height: 20px;
    align-items: center;
}

.status-left {
    display: flex;
    gap: 12px;
}

.status-right {
    display: flex;
    gap: 12px;
}

.status-item {
    white-space: nowrap;
}

/* Message Window */
.message-window {
    position: absolute;
    bottom: 60px;
    left: 10px;
    right: 10px;
    height: 80px;
    background-color: #0000AA;
    border: 2px solid #55FFFF;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.3);
    display: none;
}

.message-window.active {
    display: block;
}

.message-title {
    background-color: #00AAAA;
    color: #000000;
    padding: 2px 8px;
    font-weight: bold;
}

.message-content {
    padding: 8px;
    color: #FFFFFF;
    font-size: 14px;
}

/* Menu positioning */
#file-menu { left: 8px; }
#edit-menu { left: 60px; }
#search-menu { left: 112px; }
#run-menu { left: 180px; }
#compile-menu { left: 230px; }
#debug-menu { left: 300px; }
#project-menu { left: 360px; }
#options-menu { left: 432px; }
#window-menu { left: 504px; }
#help-menu { left: 571px; }

/* Scrollbar styling for editor */
.editor-textarea::-webkit-scrollbar {
    width: 16px;
    background-color: #0000AA;
}

.editor-textarea::-webkit-scrollbar-track {
    background-color: #000055;
}

.editor-textarea::-webkit-scrollbar-thumb {
    background-color: #00AAAA;
    border: 1px solid #55FFFF;
}

.editor-textarea::-webkit-scrollbar-thumb:hover {
    background-color: #00FFFF;
}

/* Custom cursor for retro feel */
.editor-textarea {
    caret-shape: block;
}

/* Animation for blinking cursor effect */
@keyframes blink {
    0%, 49% { border-right-color: #FFFFFF; }
    50%, 100% { border-right-color: transparent; }
}
