/* style.css – green-on-black console, mobile-first responsive */

/* === GLOBAL RESET / BASE === */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    background: #000;
    color: #80ff80;
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;            /* comfortable on mobile */
    line-height: 1.4;
}

/* Remove mobile browser input zoom quirks */
input, select, textarea, button {
    font-family: inherit;
    font-size: 1rem;
}

/* === LAYOUT CONTAINER === */

.console-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.console-container {
    max-width: 960px;           /* center on large screens */
    margin: 0 auto;
    padding: 8px;
}

/* === HEADER / TITLE / MENU === */

.console-header {
    border-bottom: 1px solid #0f0;
    padding-bottom: 4px;
    margin-bottom: 8px;
}

.console-title-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.console-title {
    font-weight: bold;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
}

.console-user {
    font-size: 0.85rem;
    color: #60d060;
}

/* NAV MENU */

.console-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.console-menu-item {
    display: inline-block;
    padding: 3px 6px;
    border: 1px solid #0a8f0a;
    text-decoration: none;
    color: #80ff80;
    background: #001800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.console-menu-item:hover {
    background: #003000;
}

.console-menu-item.active {
    background: #004800;
    border-color: #00ff00;
}

/* === MAIN AREA === */

.console-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === BLOCKS & TITLES === */

.console-section-title {
    margin-top: 8px;
    margin-bottom: 2px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: #a0ffa0;
}

.console-block {
    border: 1px solid #0f0;
    padding: 6px;
    background: #000;
    font-size: 0.9rem;
}

/* === FORMS === */

.console-form {
    margin: 0;
}

.console-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 4px;
}

.console-label {
    min-width: 90px;
    font-weight: bold;
    font-size: 0.85rem;
    color: #a0ffa0;
}

/* inputs stretch to fill remaining space on mobile */
.console-input,
.console-select,
.console-textarea {
    flex: 1 1 160px;
    max-width: 100%;
    padding: 3px 4px;
    border: 1px solid #0f0;
    background: #000;
    color: #80ff80;
    outline: none;
}

.console-input:focus,
.console-select:focus,
.console-textarea:focus {
    border-color: #00ff00;
}

.console-textarea {
    resize: vertical;
    min-height: 72px;
}

/* BUTTONS & LINKS */

.console-button {
    border: 1px solid #0f0;
    background: #001800;
    color: #80ff80;
    padding: 3px 8px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.console-button:hover {
    background: #003000;
}

.console-link {
    color: #80ff80;
    text-decoration: underline;
}

.console-link:hover {
    text-decoration: none;
}

/* === TABLES === */

.console-table-wrapper {
    overflow-x: auto;
    margin-top: 4px;
}

.console-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.console-table th,
.console-table td {
    border: 1px solid #0f0;
    padding: 3px 4px;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
}

.console-table th {
    background: #001800;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.console-table td {
    background: #000;
}

/* === STATUS / MESSAGES === */

.console-error {
    color: #ff8080;
    font-size: 0.85rem;
    margin-left: 6px;
}

.console-success {
    color: #80ff80;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* === TILES (LOCATIONS, ETC.) === */

.console-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.console-tile {
    display: inline-block;
    padding: 4px 6px;
    border: 1px solid #0f0;
    background: #001000;
    color: #80ff80;
    font-size: 0.8rem;
    text-decoration: none;
    white-space: nowrap;
}

.console-tile:hover {
    background: #003000;
}

/* === FEED === */

.console-feed {
    font-size: 0.9rem;
}

.console-feed-item {
    border-bottom: 1px dashed #0f0;
    padding: 4px 0;
}

.console-feed-item:last-child {
    border-bottom: none;
}

.console-feed-date {
    font-size: 0.75rem;
    color: #60d060;
}

/* === COMMENT BLOCKS === */

.console-comments {
    margin-top: 4px;
}

.console-comment {
    border: 1px dashed #0f0;
    padding: 4px;
    margin-bottom: 4px;
    background: #000;
}

.console-comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 2px;
    color: #a0ffa0;
}

.console-comment-date {
    font-size: 0.75rem;
    color: #60d060;
}

.console-comment-body {
    font-size: 0.85rem;
}

/* === CODE-ish INLINE ELEMENTS === */

code {
    background: #001000;
    border: 1px solid #0f0;
    padding: 0 3px;
    font-size: 0.8rem;
}

/* === RESPONSIVENESS === */

/* Mobile-first: everything full width; we adjust for wider screens below */

@media (min-width: 600px) {
    body {
        font-size: 15px; /* slightly smaller base on larger screens if you like */
    }

    .console-container {
        padding: 10px;
    }

    .console-label {
        min-width: 120px;
    }
}

@media (min-width: 900px) {
    body {
        font-size: 15px;
    }

    .console-container {
        padding: 12px;
    }

    .console-block {
        padding: 8px;
        font-size: 0.9rem;
    }

    .console-table th,
    .console-table td {
        padding: 4px 6px;
    }
}

/* === SCROLLBARS (optional aesthetic) === */

::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #006000;
}

::-webkit-scrollbar-thumb:hover {
    background: #00a000;
}

