html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #1e1e1e;
    color: #cccccc;
    font-family: "Segoe UI", Tahoma, sans-serif;
    overflow: hidden;
}
.system-menu {
    display: flex;
    background-color: #2d2d2d;
    border-bottom: 1px solid #454545;
    height: 28px;
    align-items: center;
    padding: 0 5px;
    user-select: none;
    position: relative;
    z-index: 99999;
}
.menu-item-container {
    position: relative;
}
.menu-label {
    padding: 2px 10px;
    font-size: 12px;
    cursor: default;
    color: #cccccc;
}
.menu-label:hover {
    background-color: #3e3e3e;
    color: #ffffff;
}
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #333333;
    border: 1px solid #454545;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    width: max-content; 
    min-width: 180px;
    z-index: 100000;
    padding: 4px 0;
}
.submenu-item {
    padding: 6px 20px;
    font-size: 13px;
    color: #cccccc;
    cursor: default;
    white-space: nowrap; 
}
.submenu-item:hover {
    background-color: #007acc;
    color: #ffffff;
}
.win-separator {
    height: 1px;
    background-color: #454545;
    margin: 4px 0;
}
.CodeMirror {
    height: 100% !important;
    font-family: 'Consolas', 'Cascadia Code', monospace;
    font-size: 14px;
}
.CodeMirror-lines { padding-bottom: 30px !important; }
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
::-webkit-scrollbar-track {
    background: #1e1e1e;
}
::-webkit-scrollbar-thumb {
    background: #3e3e3e;
    border: 3px solid #1e1e1e;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4e4e4e;
}
.cm-link { 
    color: var(--accent) !important;
    text-decoration: underline !important; 
    cursor: pointer; 
}
.CodeMirror-linenumber {
    user-select: none !important;
    -webkit-user-select: none !important;
}
.CodeMirror-gutter {
    user-select: none !important;
    -webkit-user-select: none !important;
}
.CodeMirror-linenumber::selection {
    background: transparent !important;
}
.custom-confirm-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}
.custom-confirm-card {
    background: #0d1117;
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
    width: 320px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}
.custom-confirm-title {
    color: white; font-weight: bold; margin-bottom: 10px; font-size: 16px;
}
.custom-confirm-text {
    color: #8b949e; font-size: 14px; margin-bottom: 20px;
}
.custom-confirm-buttons {
    display: flex; gap: 10px; justify-content: center;
}
.submenu-item.has-nested {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.win-arrow {
    margin-left: 15px;
    opacity: 0.6;
    font-family: monospace;
}
.nested-submenu {
    display: none;
    position: absolute;
    top: -5px;
    left: 100%;
    background-color: #333333;
    border: 1px solid #454545;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    width: max-content;
    min-width: 180px;
    z-index: 100001;
    padding: 4px 0;
}
.submenu-item.has-nested:hover > .nested-submenu {
    display: block;
}
.submenu-item.has-nested:hover {
    background-color: #007acc;
    color: #ffffff;
}
#editor-container {
    height: calc(100vh - 28px - 20px) !important;
    width: 100%;
}
.status-bar-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #212121;
    border-top: 1px solid #333333;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #858585;
    user-select: none;
    z-index: 99999;
}
.status-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.status-label {
    color: #666666;
}
.status-value {
    color: #cccccc;
}
.status-separator {
    width: 1px;
    height: 12px;
    background-color: #333333;
    margin: 0 10px;
}
