* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #0f1923;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background: linear-gradient(135deg, #1a2a3a, #0d1f2d);
    border-bottom: 2px solid #00bcd4;
    padding: 16px 24px;
    text-align: center;
}

header h1 {
    font-size: 1.5rem;
    color: #00bcd4;
    letter-spacing: 1px;
}

header p {
    font-size: 0.85rem;
    color: #78909c;
    margin-top: 4px;
}

.chat-container {
    width: 100%;
    max-width: 700px;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    overflow-y: auto;
    padding-bottom: 120px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
    font-size: 0.95rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot {
    align-self: flex-start;
    background: #1e3a4f;
    border: 1px solid #2a5a6f;
    border-radius: 4px 12px 12px 12px;
}

.user {
    align-self: flex-end;
    background: #00695c;
    border-radius: 12px 4px 12px 12px;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-start;
    animation: fadeIn 0.3s ease;
}

.options button {
    background: #1a3a5c;
    color: #4fc3f7;
    border: 1px solid #2a5a8c;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.options button:hover {
    background: #2a5a8c;
    color: #fff;
    transform: translateY(-1px);
}

.options button.filtered-out {
    display: none;
}

.typing {
    align-self: flex-start;
    color: #78909c;
    font-style: italic;
    padding: 8px 16px;
    animation: fadeIn 0.3s ease;
}

.typing span {
    animation: blink 1.4s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Input bar for filtering options */
.input-bar {
    position: fixed;
    bottom: 52px;
    width: 100%;
    max-width: 700px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: #1a2a3a;
    border-top: 1px solid #2a3a4a;
    display: none;
}

.input-bar input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid #2a5a8c;
    background: #0f1923;
    color: #e0e0e0;
    font-size: 0.95rem;
    outline: none;
}

.input-bar input::placeholder {
    color: #546e7a;
}

.input-bar input:focus {
    border-color: #00bcd4;
}

.restart-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #1a2a3a;
    border-top: 1px solid #2a3a4a;
    padding: 12px;
    text-align: center;
}

.restart-bar button {
    background: #00695c;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.restart-bar button:hover {
    background: #00897b;
}

.severity-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
}
.sev-low { background: #1b5e20; color: #a5d6a7; }
.sev-med { background: #e65100; color: #ffcc80; }
.sev-high { background: #b71c1c; color: #ef9a9a; }

footer {
    position: fixed;
    bottom: 52px;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    color: #455a64;
    padding: 4px;
    pointer-events: none;
}
