jaeswift-website/css/chat-memory.css

303 lines
7.2 KiB
CSS

/* ===================================================
JAESWIFT.XYZ — JAE-AI Memory System UI
Military/terminal theme for memory vault modal
=================================================== */
/* ── Memory button + info icon in chat header ── */
.chat-mem-btn {
background: transparent;
border: 1px solid rgba(0, 220, 50, 0.4);
color: #00cc33;
font-family: 'JetBrains Mono', 'Courier New', monospace;
font-size: 11px;
padding: 2px 8px;
margin-left: 8px;
cursor: pointer;
letter-spacing: 1px;
text-transform: uppercase;
transition: all 0.15s ease;
display: inline-flex;
align-items: center;
gap: 4px;
}
.chat-mem-btn:hover {
background: rgba(0, 220, 50, 0.1);
border-color: #00cc33;
box-shadow: 0 0 8px rgba(0, 220, 50, 0.3);
}
.chat-mem-count {
color: #9cffc1;
font-weight: 700;
}
.chat-mem-info {
color: rgba(0, 220, 50, 0.55);
font-size: 13px;
margin-left: 8px;
cursor: help;
text-decoration: none;
font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.chat-mem-info:hover {
color: #00cc33;
}
/* ── Restore divider in chat ── */
.chat-divider {
text-align: center;
font-family: 'JetBrains Mono', 'Courier New', monospace;
font-size: 10px;
color: rgba(0, 220, 50, 0.4);
letter-spacing: 2px;
margin: 10px 0 14px;
position: relative;
}
.chat-divider::before,
.chat-divider::after {
content: '';
position: absolute;
top: 50%;
width: 30%;
height: 1px;
background: rgba(0, 220, 50, 0.2);
}
.chat-divider::before { left: 5%; }
.chat-divider::after { right: 5%; }
.chat-divider span {
background: transparent;
padding: 0 8px;
}
/* ── Memory vault modal ── */
.mem-modal {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.88);
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
font-family: 'JetBrains Mono', 'Courier New', monospace;
backdrop-filter: blur(6px);
animation: memFadeIn 0.18s ease;
}
@keyframes memFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.mem-modal-inner {
background: #050805;
border: 1px solid #00cc33;
box-shadow: 0 0 32px rgba(0, 220, 50, 0.25), inset 0 0 24px rgba(0, 220, 50, 0.04);
width: min(720px, 94vw);
max-height: 88vh;
display: flex;
flex-direction: column;
color: #9cffc1;
animation: memSlideUp 0.25s ease;
}
@keyframes memSlideUp {
from { transform: translateY(14px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.mem-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
border-bottom: 1px solid rgba(0, 220, 50, 0.3);
background: linear-gradient(90deg, rgba(0, 220, 50, 0.08), transparent);
}
.mem-modal-title {
color: #00ff44;
font-size: 13px;
letter-spacing: 2px;
text-transform: uppercase;
font-weight: 700;
text-shadow: 0 0 6px rgba(0, 220, 50, 0.5);
}
.mem-close {
background: transparent;
border: 1px solid rgba(255, 80, 80, 0.4);
color: #ff7070;
padding: 3px 10px;
font-size: 10px;
letter-spacing: 1px;
cursor: pointer;
font-family: inherit;
text-transform: uppercase;
transition: all 0.15s ease;
}
.mem-close:hover {
background: rgba(255, 80, 80, 0.12);
border-color: #ff7070;
box-shadow: 0 0 8px rgba(255, 80, 80, 0.3);
}
.mem-modal-subtitle {
padding: 6px 14px;
font-size: 10px;
color: rgba(156, 255, 193, 0.5);
letter-spacing: 1.5px;
border-bottom: 1px dashed rgba(0, 220, 50, 0.18);
background: rgba(0, 220, 50, 0.02);
}
.mem-modal-body {
flex: 1;
overflow-y: auto;
padding: 12px 14px;
font-size: 12px;
scrollbar-width: thin;
scrollbar-color: rgba(0, 220, 50, 0.4) transparent;
}
.mem-modal-body::-webkit-scrollbar { width: 6px; }
.mem-modal-body::-webkit-scrollbar-thumb { background: rgba(0, 220, 50, 0.35); }
.mem-modal-body::-webkit-scrollbar-track { background: transparent; }
.mem-empty {
text-align: center;
padding: 40px 10px;
color: rgba(156, 255, 193, 0.45);
font-size: 11px;
letter-spacing: 2px;
border: 1px dashed rgba(0, 220, 50, 0.2);
}
.mem-group {
margin-bottom: 16px;
}
.mem-group-title {
color: #00ff44;
font-size: 11px;
letter-spacing: 2px;
padding: 4px 0 6px;
border-bottom: 1px solid rgba(0, 220, 50, 0.25);
margin-bottom: 6px;
text-transform: uppercase;
font-weight: 700;
}
.mem-count {
color: rgba(156, 255, 193, 0.5);
font-weight: 400;
font-size: 10px;
letter-spacing: 1px;
}
.mem-item {
position: relative;
border-left: 2px solid rgba(0, 220, 50, 0.35);
background: rgba(0, 220, 50, 0.03);
padding: 8px 36px 8px 10px;
margin-bottom: 6px;
transition: all 0.12s ease;
}
.mem-item:hover {
background: rgba(0, 220, 50, 0.07);
border-left-color: #00cc33;
}
.mem-item-text {
color: #c5ffd6;
font-size: 12px;
line-height: 1.4;
word-wrap: break-word;
}
.mem-item-meta {
color: rgba(156, 255, 193, 0.4);
font-size: 9px;
letter-spacing: 1px;
margin-top: 3px;
text-transform: uppercase;
}
.mem-del {
position: absolute;
top: 6px;
right: 6px;
background: transparent;
border: 1px solid rgba(255, 80, 80, 0.3);
color: #ff7070;
width: 22px;
height: 22px;
line-height: 1;
cursor: pointer;
font-family: inherit;
font-size: 14px;
padding: 0;
transition: all 0.12s ease;
}
.mem-del:hover {
background: rgba(255, 80, 80, 0.15);
border-color: #ff7070;
box-shadow: 0 0 6px rgba(255, 80, 80, 0.35);
}
.mem-modal-footer {
display: flex;
gap: 8px;
padding: 10px 14px;
border-top: 1px solid rgba(0, 220, 50, 0.3);
background: rgba(0, 220, 50, 0.03);
flex-wrap: wrap;
justify-content: flex-end;
}
.mem-btn {
background: transparent;
border: 1px solid rgba(0, 220, 50, 0.4);
color: #9cffc1;
padding: 5px 10px;
font-family: inherit;
font-size: 10px;
letter-spacing: 1.2px;
text-transform: uppercase;
cursor: pointer;
transition: all 0.15s ease;
}
.mem-btn:hover:not(:disabled) {
background: rgba(0, 220, 50, 0.08);
border-color: #00cc33;
color: #00ff44;
box-shadow: 0 0 8px rgba(0, 220, 50, 0.25);
}
.mem-btn:disabled {
opacity: 0.5;
cursor: wait;
}
.mem-btn-clear,
.mem-btn-clearhist {
border-color: rgba(255, 180, 80, 0.45);
color: #ffcf8a;
}
.mem-btn-clear:hover:not(:disabled),
.mem-btn-clearhist:hover:not(:disabled) {
background: rgba(255, 180, 80, 0.1);
border-color: #ffb74d;
color: #ffd28a;
box-shadow: 0 0 8px rgba(255, 180, 80, 0.3);
}
.mem-btn-clear {
border-color: rgba(255, 80, 80, 0.45);
color: #ff9b9b;
}
.mem-btn-clear:hover:not(:disabled) {
background: rgba(255, 80, 80, 0.12);
border-color: #ff7070;
color: #ffbaba;
box-shadow: 0 0 8px rgba(255, 80, 80, 0.35);
}
/* ── Mobile adjustments ── */
@media (max-width: 540px) {
.mem-modal-inner {
width: 98vw;
max-height: 94vh;
}
.mem-modal-footer {
justify-content: stretch;
}
.mem-btn {
flex: 1 1 45%;
font-size: 9px;
padding: 6px 4px;
}
}