/* General Reset and Full-Screen Old-School Body Style */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent body scrollbars */
}

body {
    background-color: #A3A3A3; /* Classic grey background */
    font-family: 'Tahoma', 'Verdana', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Editor Window - Full Screen */
.editor-window {
    width: 100%;
    height: 100%;
    border: none; /* No border for full screen */
    box-shadow: none; /* No shadow for full screen */
    background-color: #ECE9D8; /* Light beige/grey for the window body */
    display: flex;
    flex-direction: column;
}

/* Title Bar Styling */
.title-bar {
    background-color: #000080; /* Dark blue title bar */
    color: white;
    padding: 2px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    border-bottom: 2px solid #000;
    flex-shrink: 0; /* Prevent shrinking */
}

.window-title {
    font-weight: bold;
}

.window-controls button {
    background-color: #C0C0C0;
    color: #000;
    border: 1px solid #fff;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    margin-left: 2px;
    padding: 0 5px;
    line-height: 1;
    font-weight: bold;
    cursor: pointer;
}

.window-controls button:active {
    border: 1px solid #000;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}

/* Menu Bar Styling */
.menu-bar {
    background-color: #ECE9D8;
    padding: 2px 0;
    border-bottom: 1px solid #000;
    flex-shrink: 0; /* Prevent shrinking */
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

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

.menu-item:hover {
    background-color: #000080;
    color: white;
}

/* Dropdown Menu Styling (Hidden by default) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 2px;
    margin: 0;
    background-color: #ECE9D8;
    border: 1px solid #000;
    min-width: 150px; /* Slightly wider for new items */
    z-index: 10;
    box-shadow: 2px 2px 0 0 #A3A3A3;
}

.menu-item:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 3px 15px 3px 5px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    color: #000080; /* Increased contrast for text */
}

.dropdown-menu li:hover:not(.separator) {
    background-color: #000080;
    color: white;
}

.separator {
    height: 1px;
    background-color: #A3A3A3;
    margin: 3px 0;
    cursor: default !important;
}

/* Text Editor Area */
.text-editor {
    flex-grow: 1;
    border: none;
    resize: none;
    padding: 10px;
    font-family: 'VT323', monospace; /* Pixelated/retro font */
    font-size: 18px;
    line-height: 1.2;
    background-color: white; /* Classic white editing area */
    outline: none;
    overflow: auto; /* Adds scrollbars when content overflows */
}

/* Status Bar */
.status-bar {
    background-color: #C0C0C0;
    color: #000;
    font-size: 12px;
    padding: 2px 5px;
    border-top: 1px solid #000;
    text-align: right;
    flex-shrink: 0; /* Prevent shrinking */
}