/* Notepad App Styles */
.notepad-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

/* Menu Bar */
.notepad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background-color: var(--window-bg);
    border-bottom: 1px solid var(--border-color);
}

.notepad-menu {
    display: flex;
    gap: 4px;
}

.notepad-menu-item {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.1s;
    color: var(--text-color);
    position: relative;
}

.notepad-menu-item:hover {
    background-color: var(--hover-bg);
}

.notepad-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--window-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 4px 0;
}

.notepad-menu-item.active .notepad-dropdown {
    display: block;
}

.notepad-dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notepad-dropdown-item:hover {
    background-color: var(--hover-bg);
}

.notepad-dropdown-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 4px 0;
}

.notepad-settings-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s;
    color: var(--text-color);
}

.notepad-settings-icon:hover {
    background-color: var(--hover-bg);
}

.notepad-settings-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Text Area */
.notepad-body {
    flex: 1;
    position: relative;
    background-color: var(--window-bg);
}

.notepad-textarea {
    width: 100%;
    height: 100%;
    border: none;
    resize: none;
    padding: 12px 20px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.5;
    background-color: transparent;
    color: var(--text-color);
    outline: none;
    white-space: pre;
    overflow-x: auto;
}

.notepad-textarea.word-wrap {
    white-space: pre-wrap;
    overflow-x: hidden;
}

/* Status Bar */
.notepad-footer {
    height: 32px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.8;
    gap: 20px;
}

.notepad-status-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: default;
}

.notepad-status-item:hover {
    opacity: 1;
}

/* Checkmark for Word Wrap */
.checkmark::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 12px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-left: 8px;
    opacity: 0;
}

.notepad-dropdown-item.checked .checkmark::after {
    opacity: 1;
}