/* Notepad Application Styling */
.notepad-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'MS Sans Serif', sans-serif;
}

.notepad-menubar {
    height: 20px;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 11px;
}

.notepad-menubar .menu-item {
    padding: 2px 8px;
    cursor: pointer;
    position: relative;
    border-radius: 1px;
}

.notepad-menubar .menu-item:hover {
    background: linear-gradient(to bottom, #e0e0e0 0%, #d0d0d0 50%, #c0c0c0 100%);
    border: 1px solid #808080;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    padding: 1px 7px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border: 1px solid #808080;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    z-index: 1000;
    font-size: 11px;
}

.menu-option {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 1px;
}

.menu-option:hover {
    background: linear-gradient(to right, #0080ff 0%, #0060d0 100%);
    color: white;
}

.menu-separator {
    height: 1px;
    background: #808080;
    margin: 2px 4px;
    border-bottom: 1px solid #dfdfdf;
}

#notepad-textarea {
    flex: 1;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    padding: 8px;
    resize: none;
    outline: none;
    background: white;
    color: black;
    line-height: 1.4;
}

#notepad-textarea:focus {
    outline: none;
}

.notepad-statusbar {
    height: 20px;
    background: linear-gradient(to bottom, #c6c6c6 0%, #c0c0c0 50%, #b8b8b8 100%);
    border-top: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    color: #000000;
}

.notepad-statusbar #status-text {
    flex: 1;
}

.notepad-statusbar #char-count {
    margin-left: auto;
    color: #666666;
}

/* File dialog styling */
.file-dialog {
    padding: 16px;
}

.file-dialog h3 {
    margin: 0 0 16px 0;
    font-size: 12px;
    font-weight: bold;
}

.file-dialog select {
    width: 100%;
    padding: 4px;
    border: 1px solid #808080;
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
    background: white;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.file-dialog .button {
    background: linear-gradient(to bottom, #d4d4d4 0%, #c0c0c0 50%, #b0b0b0 100%);
    border: 1px solid #808080;
    border-top-color: #dfdfdf;
    border-left-color: #dfdfdf;
    padding: 4px 12px;
    cursor: pointer;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    margin-left: 8px;
}

.file-dialog .button:hover {
    background: linear-gradient(to bottom, #e0e0e0 0%, #d0d0d0 50%, #c0c0c0 100%);
}

.file-dialog .button:active {
    background: linear-gradient(to bottom, #a0a0a0 0%, #b0b0b0 50%, #c0c0c0 100%);
    border-top-color: #808080;
    border-left-color: #808080;
    border-right-color: #dfdfdf;
    border-bottom-color: #dfdfdf;
}

/* About dialog styling */
.about-dialog {
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.2;
}

.about-dialog pre {
    margin: 0;
    white-space: pre;
    color: #000080;
    font-weight: bold;
}

.about-dialog .button-container {
    margin-top: 16px;
    text-align: center;
}