body {
    font-family: Tahoma, "MS Sans Serif", sans-serif; /* Prioritize Win2k fonts */
    font-size: 12px;
    background-color: #008080; /* Classic Windows desktop teal for outside the app */
    margin: 0;
    overflow: hidden; /* Prevent body scrollbars */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.notepad-container {
    width: 600px; /* Or make it resizable */
    height: 400px; /* Or make it resizable */
    background-color: #c0c0c0; /* Main app background */
    border: 2px solid;
    border-top-color: #ffffff;
    border-left-color: #ffffff;
    border-bottom-color: #404040;
    border-right-color: #404040;
    box-shadow: 1px 1px 0px #000000, inset 1px 1px 0px #808080; /* More nuanced border */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Important for layout */
}

/* --- Menu Bar --- */
.menu-bar {
    background-color: #c0c0c0;
    padding: 2px;
    display: flex;
    border-bottom: 1px solid #808080;
    user-select: none;
}

.menu-item {
    padding: 2px 6px;
    position: relative; /* For dropdown positioning */
    font-size: 11px;
}

.menu-item:hover {
    background-color: #000080; /* Windows hover blue */
    color: #ffffff;
}

.menu-item span u {
    text-decoration: underline;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #c0c0c0;
    border: 1px solid #808080;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.5);
    padding: 2px;
    min-width: 150px; /* Adjust as needed */
    z-index: 1000;
}

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

.menu-option {
    padding: 3px 10px 3px 20px; /* Space for potential checkmarks/icons */
    font-size: 11px;
    position: relative;
}

.menu-option:hover {
    background-color: #000080;
    color: #ffffff;
}

.menu-separator {
    border: 0;
    border-top: 1px solid #808080;
    border-bottom: 1px solid #ffffff;
    margin: 2px 0;
}


/* --- Text Area --- */
#text-area {
    flex-grow: 1; /* Take remaining vertical space */
    margin: 2px;
    border: 2px solid;
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #ffffff;
    border-right-color: #ffffff;
    font-family: "Courier New", Courier, monospace;
    font-size: 10pt; /* Classic Notepad font size */
    padding: 2px;
    resize: none; /* Disable browser default resize, or implement custom */
    line-height: 1.3; /* Adjust for readability */
    white-space: pre; /* Preserve whitespace and newlines, disable for word wrap */
    overflow-wrap: normal; /* Disable for word wrap */
}

/* --- Status Bar --- */
.status-bar {
    display: flex;
    background-color: #c0c0c0;
    padding: 1px 2px;
    border-top: 1px solid;
    border-top-color: #ffffff; /* Top highlight for the status bar itself */
    user-select: none;
    font-size: 10px;
    height: 20px; /* Fixed height */
}

.status-section {
    padding: 1px 4px;
    margin: 1px;
    min-width: 50px; /* Example width */
    border: 1px solid;
    border-top-color: #808080;
    border-left-color: #808080;
    border-bottom-color: #ffffff;
    border-right-color: #ffffff;
    box-shadow: inset 1px 1px 0 #dedede; /* Inner shadow for sunken effect */
    display: flex;
    align-items: center;
}

#line-col-status {
    flex-grow: 1; /* Takes available space */
    text-align: right;
    padding-right: 10px;
}