
/* Global Font */
* {
    font-family: var(--e-global-typography-primary-font-family) !important;
}

/* Desktop */
.desktop {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Window */
.modal-window {
    width: 400px;
    height: 300px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Title Bar */
.title-bar {
    height: 20px;
    background: linear-gradient(90deg, #000000 0%, #808080 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
    color: white;
    font-weight: bold;
    cursor: move;
}

.title-bar-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.window-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-notepad {
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #000;
    position: relative;
}

.icon-notepad::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background: #000;
}

.window-title {
    font-size: 14px;
    font-weight: bold;
    font-family: var(--e-global-typography-primary-font-family);
}

.title-bar-right {
    display: flex;
    gap: 1px;
}

/* Control Buttons */
.control-button {
    width: 16px;
    height: 14px;
    border: 1px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    background: #c0c0c0;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-button:hover {
    border-color: #ffffff #c0c0c0 #c0c0c0 #ffffff;
}

.control-button:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.minimize::before {
    content: '';
    width: 8px;
    height: 1px;
    background: #000;
    position: absolute;
}

.maximize::before {
    content: '';
    width: 6px;
    height: 6px;
    border: 1px solid #000;
    position: absolute;
}

.close::before {
    content: '×';
    font-size: 12px;
    font-weight: bold;
    color: #000;
    line-height: 1;
}

/* Menu Bar */
.menu-bar {
    height: 37px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 8px;
}

.menu-item {
    padding: 3px 8px;
    cursor: pointer;
    font-size: 14px;
    color: #000;
    font-family: var(--e-global-typography-primary-font-family);
}

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

/* Content Area */
.content-area {
    flex: 1;
    background: white;
    border: 1px solid #808080;
    margin: 2px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.text-area {
    flex: 1;
    background: white;
    padding: 6px;
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 14px;
    line-height: 1.4;
    color: #000;
    overflow: hidden;
}

/* Scrollbars */
.scrollbar {
    position: absolute;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #000000 #808080 #808080 #000000;
}

.scrollbar.vertical {
    width: 16px;
    right: 0;
    top: 0;
    bottom: 16px;
    display: flex;
    flex-direction: column;
}

.scrollbar.horizontal {
    height: 16px;
    left: 0;
    right: 16px;
    bottom: 0;
    display: flex;
}

.scroll-arrow {
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scroll-arrow:hover {
    border-color: #ffffff #c0c0c0 #c0c0c0 #ffffff;
}

.scroll-arrow:active {
    border-color: #808080 #dfdfdf #dfdfdf #808080;
}

.scroll-arrow.up::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #000;
}

.scroll-arrow.down::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #000;
}

.scroll-arrow.left::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 6px solid #000;
}

.scroll-arrow.right::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid #000;
}

.scroll-track {
    flex: 1;
    position: relative;
    background: transparent;
}

.scroll-thumb {
    width: 12px;
    height: 12px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    position: absolute;
    top: 2px;
    left: 2px;
}

.scroll-thumb:active {
    background: linear-gradient(90deg, #000000 0%, #808080 100%);
    border-color: #000000 #808080 #808080 #000000;
}

.scrollbar.vertical .scroll-thumb {
    width: 12px;
    height: 20px;
}

.scrollbar.horizontal .scroll-thumb {
    width: 20px;
    height: 12px;
}

/* Resize Handle */
.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #c0c0c0;
    border: 1px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    cursor: se-resize;
}

.resize-handle::before {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-top: 8px solid #808080;
}

/* Ajustes para o texto área quando há scrollbars */
.text-area {
    margin-right: 16px;
    margin-bottom: 16px;
    font-family: var(--e-global-typography-primary-font-family);
} 