/* =========================================================
   FS-01 // PERSONAL CONTROL SYSTEM
   Retro-futuristic military terminal
   ========================================================= */


/* ---------- BASIC RESET ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: #0b0d0b;
    color: #b8baa5;

    font-family:
        "Courier New",
        Courier,
        monospace;

    min-height: 100vh;

    line-height: 1.5;
}


/* ---------- TERMINAL ---------- */

.terminal {
    width: min(1400px, 94%);
    margin: 30px auto;

    border: 1px solid #555a4d;

    background:
        linear-gradient(
            rgba(255,255,255,0.015) 50%,
            transparent 50%
        );

    background-size: 100% 4px;

    box-shadow:
        0 0 30px rgba(0, 0, 0, 0.8);

    position: relative;
}


/* ---------- HEADER ---------- */

.header {
    min-height: 75px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 15px 25px;

    border-bottom: 1px solid #555a4d;

    background: #141714;
}


.header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}


.system-id {
    border: 1px solid #777c68;

    padding: 5px 9px;

    font-weight: bold;

    color: #d0d2bc;
}


.system-name {
    letter-spacing: 2px;
    font-weight: bold;
}


.header-right {
    display: flex;
    gap: 25px;

    font-size: 12px;

    color: #777c6c;
}


.status-ok {
    color: #aeb77b;
}


/* ---------- WARNING BAR ---------- */

.warning-bar {
    text-align: center;

    padding: 7px;

    font-size: 11px;
    letter-spacing: 2px;

    color: #b18a4e;

    border-bottom: 1px solid #4c473c;

    background: #181713;
}


.warning-bar span {
    margin: 0 15px;
}


/* ---------- DASHBOARD ---------- */

.dashboard {
    display: grid;

    grid-template-columns: 270px 1fr;

    min-height: 800px;
}


/* ---------- SIDEBAR ---------- */

.sidebar {
    padding: 20px;

    border-right: 1px solid #555a4d;

    background: #101310;
}


/* ---------- PANELS ---------- */

.panel {
    border: 1px solid #454a40;

    background: #141714;

    margin-bottom: 20px;
}


.panel-title {
    padding: 8px 12px;

    border-bottom: 1px solid #454a40;

    background: #1b1e1a;

    color: #aeb77b;

    font-size: 11px;

    letter-spacing: 1.5px;
}


/* ---------- NAVIGATION ---------- */

nav {
    display: flex;
    flex-direction: column;
}


nav a {
    padding: 12px;

    border-bottom: 1px solid #292d27;

    color: #858978;

    text-decoration: none;

    font-size: 13px;

    transition:
        background 0.15s,
        color 0.15s;
}


nav a span {
    color: #565b50;

    margin-right: 8px;
}


nav a:hover {
    background: #20241e;
    color: #d0d2bc;
}


nav a.active {
    background: #252920;
    color: #c3c79e;
}


nav a.active span {
    color: #b18a4e;
}


/* ---------- STATUS ---------- */

.status-item {
    padding: 12px;

    border-bottom: 1px solid #292d27;

    font-size: 10px;
}


.status-item > div:first-child {
    display: flex;
    justify-content: space-between;

    margin-bottom: 6px;
}


.status-item > div:first-child span:last-child {
    color: #8e966b;
}


.progress {
    height: 6px;

    background: #292d27;

    border: 1px solid #363a31;
}


.progress div {
    height: 100%;

    background: #777f55;
}


/* ---------- MAIN AREA ---------- */

.main-area {
    padding: 20px;

    min-width: 0;
}


/* ---------- IDENTITY ---------- */

.identity-content {
    display: flex;

    gap: 25px;

    padding: 25px;
}


.portrait {
    width: 150px;
    min-width: 150px;
    height: 180px;

    border: 1px solid #565b4d;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #101210;
}


.portrait-symbol {
    font-size: 45px;

    color: #777f55;

    border: 2px solid #777f55;

    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.portrait-label {
    margin-top: 15px;

    font-size: 10px;

    color: #666b5d;
}


.identity-info h1 {
    font-size: clamp(24px, 4vw, 42px);

    letter-spacing: 3px;

    color: #c5c8ae;

    margin-bottom: 3px;
}


.designation {
    color: #8f976c;

    letter-spacing: 2px;

    font-size: 13px;
}


.divider {
    width: 100%;

    height: 1px;

    background: #454a40;

    margin: 18px 0;
}


.identity-info p:not(.designation) {
    max-width: 700px;

    color: #858978;

    font-size: 13px;

    margin-bottom: 8px;
}


.classification {
    display: flex;

    gap: 15px;

    margin-top: 20px;

    font-size: 11px;
}


.classification strong {
    color: #aeb77b;
}


/* ---------- TWO COLUMN ---------- */

.two-column {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


/* ---------- OBJECTIVE ---------- */

.objective {
    padding: 20px;
}


.objective-code {
    color: #777c6c;

    font-size: 10px;

    margin-bottom: 15px;
}


.objective h2 {
    font-size: 18px;

    color: #b8baa5;

    letter-spacing: 1px;

    margin-bottom: 12px;
}


.objective p {
    font-size: 12px;

    color: #7f8375;

    margin-bottom: 15px;
}


.objective ul {
    list-style: none;

    font-size: 11px;

    color: #929682;
}


.objective li {
    margin-bottom: 5px;
}


.objective li::before {
    content: ">> ";

    color: #aeb77b;
}


/* ---------- METRICS ---------- */

.metrics {
    display: grid;

    grid-template-columns: 1fr 1fr;
}


.metric {
    padding: 18px;

    border-right: 1px solid #292d27;
    border-bottom: 1px solid #292d27;
}


.metric-value {
    display: block;

    font-size: 24px;

    color: #b8baa5;

    margin-bottom: 5px;
}


.metric-label {
    display: block;

    color: #676c60;

    font-size: 9px;

    letter-spacing: 1px;
}


/* ---------- LOGBOOK ---------- */

.log-entry {
    display: grid;

    grid-template-columns: 80px 120px 1fr;

    gap: 15px;

    padding: 13px;

    border-bottom: 1px solid #292d27;

    font-size: 11px;

    align-items: center;
}


.log-date {
    color: #747969;
}


.log-category {
    color: #a08b5e;

    font-size: 9px;

    letter-spacing: 1px;
}


.log-entry a {
    color: #999d8a;

    text-decoration: none;
}


.log-entry a:hover {
    color: #d0d2bc;

    text-decoration: underline;
}


/* ---------- PROJECTS ---------- */

.project-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;
}


.project {
    min-height: 110px;

    padding: 18px;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    border-right: 1px solid #292d27;
    border-bottom: 1px solid #292d27;

    text-decoration: none;

    background: #141714;

    transition: background 0.15s;
}


.project:hover {
    background: #20241e;
}


.project-number {
    color: #62675b;

    font-size: 9px;

    letter-spacing: 1px;
}


.project strong {
    color: #aeb77b;

    font-size: 13px;

    letter-spacing: 1px;
}


.project span:last-child {
    color: #6f7468;

    font-size: 9px;
}


/* ---------- FOOTER ---------- */

footer {
    display: flex;

    justify-content: space-between;

    padding: 12px 20px;

    border-top: 1px solid #454a40;

    background: #101210;

    color: #5e6358;

    font-size: 9px;

    letter-spacing: 1px;
}


/* ---------- CRT EFFECT ---------- */

.scanlines {
    pointer-events: none;

    position: fixed;

    inset: 0;

    z-index: 1000;

    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.015) 0px,
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: 0.35;
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {

    .dashboard {
        grid-template-columns: 1fr;
    }


    .sidebar {
        border-right: none;

        border-bottom: 1px solid #555a4d;
    }


    .two-column {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .terminal {
        width: 100%;
        margin: 0;

        border-left: none;
        border-right: none;
    }


    .header {
        flex-direction: column;

        align-items: flex-start;

        gap: 12px;
    }


    .header-right {
        flex-direction: column;

        gap: 3px;
    }


    .identity-content {
        flex-direction: column;
    }


    .portrait {
        width: 120px;
        min-width: 120px;
        height: 140px;
    }


    .portrait-symbol {
        width: 65px;
        height: 65px;

        font-size: 30px;
    }


    .project-grid {
        grid-template-columns: 1fr;
    }


    .log-entry {
        grid-template-columns: 1fr;

        gap: 3px;
    }


    footer {
        flex-direction: column;

        gap: 5px;
    }

}