
/* In style.css */

/*
 * Fix 1: Establish the font-family at the component's boundary 
 * to override inherited styles from Tailwind.
 */
:host {
    font-family: 'Perfect DOS VGA', monospace;
}

/*
 * Fix 2: The @font-face rule, checked for syntax.
 * Ensure the path is correct for your project structure.
 */
@font-face {
    font-family: 'Perfect DOS VGA';
    src: url('font/Perfect DOS VGA 437 Win.ttf') format('truetype');
}

/* --- Component Styles --- */

.editor-container {
    --font-size-dos: 16px; 
    --line-height-dos: 1.2;
    --color-primary: #0000AA;    /* DOS Blue */
    --color-background: #000000; /* Black */
    --color-text: #FFFFFF;       /* White */
    --color-text-dim: #CCCCCC;   /* Gray */

    /* -- Base Styles -- */
    /* Let this inherit from :host */
    font-size: var(--font-size-dos);
    line-height: var(--line-height-dos);
    color: var(--color-text);

    /* -- Container Layout -- */
    width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--color-text-dim);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Menu Bar */
.menu-bar,
.status-bar {
    background-color: var(--color-primary);
    color: var(--color-text-dim);
    padding: 1px 4px;
    display: flex;
	font-size: var(--font-size-dos);
    align-items: center;
    flex-shrink: 0; 
}

/* Status Bar */
.status-bar {
    justify-content: space-between;
}

.status-left {
    color: var(--color-text);
	margin-left: 0.5em;
}

.status-right {
    color: #CCCCCC;
}

.menu-bar {
    justify-content: flex-start;
    white-space: pre; 
}

.menu-item {
    margin-right: 15px;
}

.title-right {
    margin-left: auto;
    margin-right: 1em;
}

/* Content Area */
.content-area {
    flex-grow: 1;
    display: flex;
    background-color: var(--color-background);
    overflow: hidden;
    position: relative;
}

.editor-text {
    flex-grow: 1;
    background-color: var(--color-background);
    padding: 4px; 
    line-height: 1;
    overflow-y: auto; 
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.editor-text pre {
	margin: 0;
	font-family: inherit; /* This will now inherit from :host */
	white-space: pre-wrap;
	word-wrap: break-word;
}

.editor-text::-webkit-scrollbar {
    display: none;
}

/* Blinking cursor simulation */
.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background-color: #FFFFFF;
	vertical-align: text-bottom;
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { background-color: transparent; }
    50% { background-color: #FFFFFF; }
}