/* Tiny supplement to styles/systematic/css/app.css.
   Only includes things app.css doesn't already provide. */

.msg { margin-top: 12px; font-size: 13px; min-height: 1em; color: #fff; }
.msg.ok  { color: #75b652; }
.msg.err { color: #ff8a8a; }

/* Status text colour in the sidebar (systematic styles the .light dot but not the text). */
ul.main-container li.mc p.online  { color: #75b652; }
ul.main-container li.mc p.offline { color: #b86a6a; }

/* Manage page download button — uses systematic's submit button look. */
a.download-btn {
    display: block;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding: 0 15px;
    font-family: 'duke', 'open-sans', sans-serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #000 !important;
    text-transform: uppercase;
    background: linear-gradient(180deg, #ACE4F1 0%, rgba(172,228,241,0.59) 52.6%, #396E84 100%);
    border-radius: 2px;
    text-decoration: none !important;
    max-width: 420px;
}
a.download-btn:hover {
    background: linear-gradient(180deg, #92c2cd 0%, rgba(152,202,213,0.59) 52.6%, #2a5262 100%);
}

/* ---------- Admin page ---------- */
ul.admin-tabs { list-style: none; padding: 0; margin: 8px 0 0; }
ul.admin-tabs li { margin: 4px 0; }
ul.admin-tabs a.admin-tab {
    display: block;
    padding: 8px 12px;
    color: #c9d8e0;
    text-decoration: none;
    border-left: 3px solid transparent;
    font-family: 'duke', 'open-sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
ul.admin-tabs a.admin-tab:hover    { color: #fff; }
ul.admin-tabs a.admin-tab.is-active {
    color: #ACE4F1;
    border-left-color: #ACE4F1;
    background: rgba(172, 228, 241, 0.06);
}

table.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 13px;
    color: #d6dee2;
}
table.admin-table th {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(172, 228, 241, 0.35);
    color: #ACE4F1;
    font-family: 'duke', 'open-sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: normal;
}
table.admin-table td {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}
table.admin-table tbody tr:hover { background: rgba(172, 228, 241, 0.04); }
table.admin-table .row-actions { white-space: nowrap; }
table.admin-table .row-actions button,
table.admin-table .row-actions select {
    background: rgba(172, 228, 241, 0.10);
    color: #ACE4F1;
    border: 1px solid rgba(172, 228, 241, 0.35);
    padding: 3px 8px;
    margin-right: 4px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 2px;
}
table.admin-table .row-actions button.danger {
    color: #ff8a8a;
    border-color: rgba(255, 138, 138, 0.4);
}
table.admin-table .row-actions button:hover { background: rgba(172, 228, 241, 0.18); }
table.admin-table code { color: #ACE4F1; font-family: ui-monospace, monospace; }

button.standard-button {
    background: linear-gradient(180deg, #ACE4F1 0%, rgba(172,228,241,0.59) 52.6%, #396E84 100%);
    color: #000;
    border: 0;
    height: 28px;
    padding: 0 12px;
    font-family: 'duke', 'open-sans', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
}

/* ---- Alisa CoH Chat Widget ---- */

#alisa-bubble {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ACE4F1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
    z-index: 9000;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    background: #1a2e38;
}
#alisa-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 22px rgba(172, 228, 241, 0.30);
}
#alisa-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#alisa-panel {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 340px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    background: #0f1e26;
    border: 1px solid rgba(172, 228, 241, 0.28);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.70);
    z-index: 9001;
    overflow: hidden;
    font-family: 'open-sans', sans-serif;
    font-size: 13px;
}
#alisa-panel[hidden] { display: none; }

#alisa-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, #1a3a48 0%, #0f1e26 100%);
    border-bottom: 1px solid rgba(172, 228, 241, 0.18);
    flex-shrink: 0;
}
#alisa-panel-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(172, 228, 241, 0.45);
    object-fit: cover;
    flex-shrink: 0;
}
#alisa-panel-header span {
    flex: 1;
    color: #ACE4F1;
    font-family: 'duke', 'open-sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}
#alisa-close {
    background: none;
    border: none;
    color: #7a9ba8;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    transition: color 0.15s;
}
#alisa-close:hover { color: #ACE4F1; }

#alisa-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
#alisa-messages .msg-wrap {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
#alisa-messages .msg-wrap.user {
    flex-direction: row-reverse;
}
#alisa-messages .msg-bubble {
    max-width: 240px;
    padding: 7px 10px;
    line-height: 1.45;
    color: #d6dee2;
    font-size: 13px;
    word-wrap: break-word;
}
#alisa-messages .msg-wrap.alisa .msg-bubble {
    background: rgba(172, 228, 241, 0.07);
    border: 1px solid rgba(172, 228, 241, 0.14);
    border-radius: 4px 12px 12px 12px;
}
#alisa-messages .msg-wrap.user .msg-bubble {
    background: rgba(172, 228, 241, 0.17);
    border: 1px solid rgba(172, 228, 241, 0.24);
    border-radius: 12px 4px 12px 12px;
    color: #fff;
}
#alisa-messages .msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(172, 228, 241, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}
#alisa-messages .alisa-typing {
    color: #7a9ba8;
    font-style: italic;
    font-size: 12px;
    padding: 4px 0 0 32px;
}

#alisa-input-row {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(172, 228, 241, 0.14);
    background: #0d1c24;
    flex-shrink: 0;
}
#alisa-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(172, 228, 241, 0.24);
    border-radius: 3px;
    color: #d6dee2;
    padding: 6px 10px;
    font-size: 13px;
    outline: none;
    font-family: 'open-sans', sans-serif;
    min-width: 0;
}
#alisa-input:focus {
    border-color: rgba(172, 228, 241, 0.50);
    background: rgba(255, 255, 255, 0.08);
}
#alisa-input::placeholder { color: #4a6a7a; }

#alisa-send {
    background: linear-gradient(180deg, #ACE4F1 0%, rgba(172, 228, 241, 0.59) 52.6%, #396E84 100%);
    color: #000;
    border: 0;
    padding: 6px 14px;
    border-radius: 2px;
    font-family: 'duke', 'open-sans', sans-serif;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
#alisa-send:hover {
    background: linear-gradient(180deg, #92c2cd 0%, rgba(152, 202, 213, 0.59) 52.6%, #2a5262 100%);
}
#alisa-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 400px) {
    #alisa-panel { right: 8px; width: calc(100vw - 16px); }
    #alisa-bubble { bottom: 16px; right: 16px; }
    #alisa-panel { bottom: 84px; }
}

/* DOWNLOAD GAME FILES card: side-by-side Windows + Linux buttons,
   centered in the card with a gap between them. */
.standard-container.download-section { text-align: center; }
.standard-container.download-section:before {
    content: "";
    position: absolute;
    display: block;
    width: 100px;
    height: 100px;
    background-image: url("/styles/systematic/img/pointer.svg");
    background-size: 100%;
    left: -70px;
    top: 50px;
    z-index: 100;
}
.download-buttons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin: 18px 0;
}
.download-buttons .standard-button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 320px;
}
@media only screen and (max-width: 520px) {
    .download-buttons { flex-direction: column; gap: 12px; }
    .download-buttons .standard-button { max-width: none; }
}
