/**
 * SATA-CODA™ System Assessor v34.1
 * terminal/style.css
 *
 * Production UI
 */

:root {

    --gold: #FCA311;
    --gold-hover: #e5930f;

    --bg: #030305;

    --panel: #09090b;

    --panel-light: #111;

    --border: #2c2c2c;

    --text: #ffffff;

    --muted: #9b9b9b;

    --success: #25d366;

    --danger: #ff4d4f;

    --indigo: #0f1020;

    --indigo-border: #3a3b6c;

    --radius: 8px;

}

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}

html,
body {

    width: 100%;

    height: 100%;

    background: var(--bg);

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

}

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

body {

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 25px;

}

.terminal-shell {

    width: 100%;

    max-width: 900px;

    height: 92vh;

    display: flex;

    flex-direction: column;

    background: #000;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0,0,0,.45);

}

/* ======================================= */
/* HEADER                                  */
/* ======================================= */

.terminal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 18px 24px;

    background: #080808;

    border-bottom: 1px solid var(--border);

}

.header-logo {

    width: 54px;

    height: 54px;

    object-fit: contain;

}

.header-text {

    flex: 1;

    margin-left: 16px;

}

.header-text h1 {

    font-size: 18px;

    letter-spacing: .08em;

    color: var(--gold);

}

.version {

    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 12px;

}

.status {

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .1em;

}

.status.online {

    color: var(--success);

}

/* ======================================= */
/* CHAT                                    */
/* ======================================= */

.chat-window {

    flex: 1;

    overflow-y: auto;

    padding: 25px;

    background: #050505;

}

.chat-window::-webkit-scrollbar {

    width: 8px;

}

.chat-window::-webkit-scrollbar-thumb {

    background: #333;

}

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

.message {

    margin-bottom: 18px;

    padding: 16px;

    border-radius: 8px;

    line-height: 1.6;

    white-space: pre-wrap;

    word-break: break-word;

}

.message.user {

    margin-left: 18%;

    background: var(--gold);

    color: #000;

    font-weight: 600;

}

.message.bot {

    margin-right: 18%;

    background: var(--panel);

    border-left: 4px solid var(--gold);

}

.message.system {

    text-align: center;

    color: var(--muted);

    font-size: 13px;

}

.message.error {

    background: rgba(255,77,79,.12);

    border-left: 4px solid var(--danger);

}

/* ======================================= */
/* RESULT PANELS                           */
/* ======================================= */

.result-card {

    margin-top: 14px;

    padding: 14px;

    background: var(--panel-light);

    border: 1px solid var(--border);

    border-radius: 6px;

}

.result-title {

    color: var(--gold);

    font-size: 13px;

    margin-bottom: 10px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;

}

.result-row {

    display: flex;

    justify-content: space-between;

    padding: 5px 0;

    border-bottom: 1px solid rgba(255,255,255,.05);

}

.result-row:last-child {

    border-bottom: none;

}

/* ======================================= */
/* RECOMMENDATIONS                         */
/* ======================================= */

.recommendations {

    margin-top: 12px;

}

.recommendations li {

    margin-left: 18px;

    margin-bottom: 8px;

}

/* ======================================= */
/* COMMERCE                                */
/* ======================================= */

.checkout {

    margin-top: 18px;

}

.checkout a {

    display: block;

    text-align: center;

    text-decoration: none;

    background: var(--gold);

    color: #000;

    font-weight: 800;

    padding: 14px;

    border-radius: 6px;

    transition: .25s;

}

.checkout a:hover {

    background: var(--gold-hover);

}

/* ======================================= */
/* INPUT                                   */
/* ======================================= */

.input-panel {

    padding: 20px;

    border-top: 1px solid var(--border);

    background: #080808;

}

#chat-form {

    display: flex;

    gap: 12px;

}

#chat-input {

    flex: 1;

    background: #111;

    border: 1px solid #333;

    color: white;

    font-size: 15px;

    padding: 14px;

    border-radius: 6px;

    outline: none;

}

#chat-input:focus {

    border-color: var(--gold);

}

#chat-submit {

    min-width: 170px;

    background: var(--gold);

    color: #000;

    border: none;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 900;

    letter-spacing: .08em;

    transition: .25s;

}

#chat-submit:hover {

    background: var(--gold-hover);

}

#chat-submit:disabled {

    opacity: .5;

    cursor: wait;

}

/* ======================================= */
/* MOBILE                                  */
/* ======================================= */

@media (max-width:768px){

    body{

        padding:0;

    }

    .terminal-shell{

        width:100%;

        height:100vh;

        border-radius:0;

    }

    .header-text h1{

        font-size:15px;

    }

    #chat-submit{

        min-width:110px;

    }

    .message.user{

        margin-left:5%;

    }

    .message.bot{

        margin-right:5%;

    }

}
