:root {
    /* Authentic Amiga Workbench 1.3 light palette */
    --amiga-bg:          #0055aa;
    --amiga-window-bg:   #c0c0c0;
    --amiga-title-active:#0000aa;
    --amiga-title-text:  #ffffff;
    --amiga-text:        #000000;
    --amiga-border-light:#ffffff;
    --amiga-border-dark: #808080;
    --amiga-button:      #c0c0c0;
    
    --bevel-light: var(--amiga-border-light);
    --bevel-dark:  var(--amiga-border-dark);
}

/* Bigger, more readable retro font */
body {
    font-family: "Courier New", "Lucida Console", monospace;
    font-size: 15px;                    /* Increased from 13px */
    line-height: 1.35;
    letter-spacing: 0.4px;              /* Closer to Topaz feel */
}

/* Amiga 3D bevels */
.amiga-bevel-raised {
    border: 2px solid;
    border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
    background: var(--amiga-window-bg);
}

.amiga-bevel-inset {
    border: 2px solid;
    border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
    background: var(--amiga-window-bg);
}

/* Title bar */
.amiga-title-bar {
    background: var(--amiga-title-active);
    color: var(--amiga-title-text);
    padding: 4px 8px;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 28px;                       /* Slightly taller */
    user-select: none;
    cursor: move;
}

.amiga-close-gadget {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: white #555555 #555555 white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 10px;
    cursor: pointer;
}

.amiga-close-gadget::after {
    content: "•";
    color: black;
}

/* Better menu bar - larger click targets */
.amiga-menu-bar-inner {
    display: flex;
    gap: 24px;
    padding: 6px 10px;
    font-weight: bold;
    font-size: 15px;
}

.menu-item {
    padding: 4px 12px;
    cursor: pointer;
    user-select: none;
}

/* Tab bar */
.amiga-tab-bar {
    background: var(--amiga-window-bg);
    border-bottom: 2px solid var(--bevel-dark);
    display: flex;
    overflow-x: auto;
    padding: 4px 6px 0;
    gap: 3px;
}

.amiga-tab {
    padding: 6px 14px;                  /* Bigger click area */
    background: var(--amiga-button);
    border: 2px solid;
    border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    min-height: 26px;
}

.amiga-tab.active {
    background: var(--amiga-window-bg);
    border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
    border-bottom: 2px solid var(--amiga-window-bg);
}

/* Editor */
.amiga-editor-container textarea {
    font-size: 15px;
    padding: 10px;
    line-height: 1.4;
}

/* Status bar */
.amiga-status-bar {
    background: var(--amiga-window-bg);
    border-top: 2px solid var(--bevel-dark);
    padding: 4px 8px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

/* Final polish */
.amiga-dropdown-menu {
    box-shadow: 4px 4px 0 rgba(0,0,0,0.6);
}

.amiga-window {
    min-width: 640px;
    min-height: 400px;
}

/* Make sure textarea fills properly */
.amiga-editor-container textarea {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 12px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    background: inherit;
    color: inherit;
}

/* Editor - Make it big and readable */
.amiga-editor-container {
    flex: 1;
    overflow: hidden;
    background: var(--amiga-window-bg);
    padding: 8px;
    min-height: 300px;
}

.amiga-editor-container textarea {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-family: "Courier New", "Lucida Console", monospace;
    font-size: 16px;           /* Bigger text */
    line-height: 1.5;
    resize: none;
    background: inherit;
    color: inherit;
    box-sizing: border-box;
}

/* Make sure it fills the container properly */
.amiga-editor-container {
    display: flex;
}

/* Force editor to fill space */
.amiga-editor-container {
    flex: 1;
    min-height: 0;   /* Important for flex child */
}

.amiga-editor-container textarea {
    font-size: 16px;
    line-height: 1.55;
}

.amiga-editor-container {
    flex: 1;
    min-height: 0;           /* Critical for flex */
    padding: 4px;
}

.amiga-editor-container textarea {
    font-size: 16px;
    line-height: 1.6;
    padding: 16px;
}
