html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 14px; /* Small, uniform text size */
    background: #FFFFFF;
    color: #555555; /* Base text: gray */
}

.container {
    display: flex;
    width: 100vw;
    height: calc(100vh - 60px); /* adjust 60px if header is taller/shorter */
    background: #FFFFFF;
    color: #555555;
}

.column {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    border-right: 1px solid #AAAAAA;
    background: #FFFFFF;
    color: #555555;
}

/* Remove right border from the last column */
.column:last-child {
    border-right: none;
}

.column form {
    margin-bottom: 24px;
}

textarea {
    width: 100%;
    height: 60px;
    background: #FFFFFF;
    color: #555555;
    border: 1px solid #AAAAAA;
    font-family: inherit;
    font-size: inherit;
}

textarea[name="note_text"] {
    height: 90px;
    width: calc(100% - 24px);
    border: 2px solid #000000;
    background-color: #FFFFFF;
    background-image:
        url('notepad-top.png'),
        url('notepad-corner.png');
    background-repeat: repeat-x, no-repeat;
    background-position: top left, right bottom;
    background-size: auto 24px, 32px 32px;
    box-shadow: 0 4px 16px 0 rgba(100,100,100,0.18), 0 1.5px 0 #AAA;
    border-radius: 6px;
    padding-top: 28px;
    padding-bottom: 16px;
    padding-right: 16px;
    padding-left: 8px;
    font-family: inherit;
    font-size: inherit;
    resize: vertical;
    margin: 5px;
}

.note {
    margin: 5px 0;
    padding: 5px;
    background: #F0F0F0;
    border: 1px solid #AAAAAA;
    color: #000000;
    border-radius: 0;
}

.note small {
    color: #AAAAAA;
    font-size: inherit;
}

.note a {
    color: #5555FF !important;
    text-decoration: underline !important;
    font-weight: normal;
}

.actions a {
    margin-right: 5px;
    font-size: inherit;
    color: #5555FF !important;
    text-decoration: underline !important;
    font-weight: normal;
}

.matrix {
    display: flex;
    flex-wrap: wrap;
    height: calc(100% - 10px);
}

.quadrant {
    width: calc(50% - 12px);
    height: calc(50% - 12px);
    padding: 5px;
    margin: 5px;
    box-sizing: border-box;
    border: 0px dashed #AAAAAA;
    overflow-y: auto;
    color: #000000;
}

.quadrant:nth-child(1) { background: #55FF55; }   /* Bright Green */
.quadrant:nth-child(2) { background: #55FFFF; }   /* Bright Cyan */
.quadrant:nth-child(3) { background: #FF55FF; }   /* Bright Magenta */
.quadrant:nth-child(4) { background: #FFFF55; }   /* Bright Yellow */

/* Quadrant heading colors */
.quadrant h1, .quadrant h2, .quadrant h3, .quadrant h4, .quadrant h5, .quadrant h6 {
    color: #000000;
    font-weight: bold;
}

/* Number after heading: darker version of quadrant color */
.quadrant h1 span, .quadrant h2 span, .quadrant h3 span, .quadrant h4 span, .quadrant h5 span, .quadrant h6 span {
    font-weight: normal;
    margin-left: 4px;
}

.quadrant:nth-child(1) h1 span, .quadrant:nth-child(1) h2 span, .quadrant:nth-child(1) h3 span, .quadrant:nth-child(1) h4 span, .quadrant:nth-child(1) h5 span, .quadrant:nth-child(1) h6 span { color: #00AA00; }
.quadrant:nth-child(2) h1 span, .quadrant:nth-child(2) h2 span, .quadrant:nth-child(2) h3 span, .quadrant:nth-child(2) h4 span, .quadrant:nth-child(2) h5 span, .quadrant:nth-child(2) h6 span { color: #00AAAA; }
.quadrant:nth-child(3) h1 span, .quadrant:nth-child(3) h2 span, .quadrant:nth-child(3) h3 span, .quadrant:nth-child(3) h4 span, .quadrant:nth-child(3) h5 span, .quadrant:nth-child(3) h6 span { color: #AA00AA; }
.quadrant:nth-child(4) h1 span, .quadrant:nth-child(4) h2 span, .quadrant:nth-child(4) h3 span, .quadrant:nth-child(4) h4 span, .quadrant:nth-child(4) h5 span, .quadrant:nth-child(4) h6 span { color: #AAAA00; }

.footer {
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: #AAAAAA;
}

/* Headings: only bold, no size difference, black */
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: #000000;
}

/* Links everywhere: bright blue and underlined */
a {
    color: #5555FF !important;
    text-decoration: underline !important;
    font-weight: normal;
}

/* Header bar styling for DOS look */
.header {
    background: #F0F0F0;
    border-bottom: 2px solid #AAAAAA;
    color: #555555;
    position: relative;
    width: 100vw;
    min-height: 60px;
    box-sizing: border-box;
}

.header-left img {
    /* Remove filter to keep SVG logo in color */
    filter: none !important;
}

.column h3 span {
    color: #AAAAAA;
}

@media (max-width: 600px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .column {
        width: 100% !important;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid #AAAAAA;
        box-sizing: border-box;
        padding: 10px 0;
    }
    .column:last-child {
        border-bottom: none;
    }
    .matrix {
        flex-direction: column;
        flex-wrap: nowrap;
        height: auto;
    }
    .quadrant {
        width: 100% !important;
        height: auto !important;
        margin: 5px 0;
    }
}
