@import "./components/topbar.css";
@import "./components/notifications.css"; /* if you split it out */


/* =====================================================================
   Peer Review — unified, compact theme (no page background color)
   ===================================================================== */

/* ===== 1) Tokens ===== */
:root{
    --pr-primary:#1976d2; --pr-primary-10:#e7f1ff;
    --pr-text:#0f172a; --pr-muted:#64748b;
    --pr-border:#e6ecf4; --pr-surface:#fff;
    --pr-shadow:0 4px 18px rgba(16,24,40,.06);
    --pr-shadow-hover:0 10px 24px rgba(16,24,40,.10);
    --pr-radius:14px; --pr-gap:16px;
    --ok:#2e7d32; --late:#d32f2f;
}

/* ===== 2) Root wrappers (width only) ===== */
.admin-root,.dashboard-root,.student-root{
    max-width:1100px; margin:16px auto 60px; padding:8px 18px;
    width:100%; box-sizing:border-box;
}

/* ===== 3) Global pieces ===== */
.card,.peerreview-card,.peerreview-info-note{
    background:var(--pr-surface); border:1px solid var(--pr-border);
    border-radius:var(--pr-radius); padding:16px 18px; box-shadow:var(--pr-shadow);
    margin-bottom:16px;
}
.card:hover{ box-shadow:var(--pr-shadow-hover); }
h1,h2,h3,h4{ color:var(--pr-text); margin:6px 0 10px; }
.muted{ color:var(--pr-muted); }

.status-badge{
    background:var(--pr-primary); color:#fff; padding:6px 14px;
    border-radius:9999px; font-size:14px; font-weight:800; line-height:1;
}
.badge-late{ background:var(--late); }
.badge-submitted{ background:var(--ok); }
.badge-due-soon{ background:#f57c00; }
.badge-not-submitted{ background:#546e7a; }

.date-badge{
    background:#f7f9fc; color:#374151; border:1px solid rgba(0,0,0,.06);
    padding:6px 12px; border-radius:9999px; font-weight:700; font-size:13px; line-height:1;
}
.date-soon{ color:#b45309; } .date-late{ color:#b91c1c; }

.button-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.next-btn,.btn-submit-green{
    background:var(--pr-primary); color:#fff; font-weight:700;
    padding:8px 12px; border-radius:8px; border:none; cursor:pointer; font-size:.95rem;
}
.btn-submit-green{ background:#2e7d32; }

/* Vaadin progress bars (slim) */
vaadin-progress-bar::part(bar){ height:10px; border-radius:999px; background:#edf2f7; }
vaadin-progress-bar::part(value){ border-radius:999px; background:linear-gradient(90deg,#60a5fa,#2563eb); }

/* ===== 4) Header (MainLayout) ===== */
.main-header{
    display:flex; align-items:center; justify-content:space-between;
    width:100%; padding:12px 20px; background:#fff; border-bottom:1px solid var(--pr-border);
}
.brand-link{ display:flex; align-items:center; text-decoration:none; color:inherit; }
.brand-mark{ height:40px; width:auto; }
.icon-link{ display:inline-flex; align-items:center; justify-content:center; padding:8px; border-radius:12px; cursor:pointer; }
.icon-link:hover{ background:rgba(0,0,0,.06); }
.icon-link.active{ background:rgba(37,99,235,.14); }
.icon-link__icon{ width:22px; height:22px; }
.user-chip{ display:inline-flex; align-items:center; gap:8px; padding:4px 8px; border-radius:999px; }
.user-chip:hover{ background:rgba(0,0,0,.04); }
.text-link{ text-decoration:none; color:inherit; }
.text-link__label{ font-weight:700; }
.logout-ghost{ background:transparent; border:1px solid rgba(0,0,0,.12); font-weight:600; }
.logout-ghost:hover{ background:rgba(0,0,0,.06); }
.top-avatar{ --vaadin-avatar-size:32px; }

/* ===== 5) Home / Dashboard ===== */
.dashboard-header{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.hero h1{ margin:0; }
.step-icon{ width:32px; height:32px; color:var(--pr-primary); }
.kpis{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:var(--pr-gap); margin:10px 0; }
.kpi{ display:grid; grid-template-columns:auto 1fr; column-gap:12px; align-items:center; padding:14px; }
.kpi-icon{ width:32px; height:32px; color:var(--pr-primary); background:var(--pr-primary-10); border-radius:999px; display:grid; place-items:center; padding:6px; }
.kpi-value{ font-size:1.35rem; font-weight:800; line-height:1; }
.kpi-title{ color:var(--pr-muted); font-weight:700; }
.actions-card{ padding:14px; }
.actions-row{ display:flex; flex-wrap:wrap; gap:10px; }
.action-chip{
    display:inline-flex; align-items:center; gap:8px; padding:8px 12px; min-height:32px;
    border-radius:999px; border:1px solid var(--pr-border); background:#fff; box-shadow:0 2px 8px rgba(16,24,40,.08);
    font-weight:800; color:#0b64d8; text-decoration:none;
}
.action-chip:hover{ background:#eef4ff; }
.progress-card{ display:grid; gap:8px; }
.timeline{ list-style:none; display:grid; gap:10px; padding-left:0; margin:0; }
.timeline li{ position:relative; padding-left:22px; }
.timeline li::before{ content:""; position:absolute; left:6px; top:3px; width:8px; height:8px; background:var(--pr-primary); border-radius:999px; }
.timeline li::after{ content:""; position:absolute; left:9px; top:14px; bottom:-14px; width:2px; background:#e6ecf4; }
.timeline li:last-child::after{ display:none; }
.activity-card{}
.act-row{ display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px dashed #e6ecf4; }
.act-row:first-of-type{ border-top:none; }
.act-ico{ width:22px; height:22px; color:var(--pr-primary); }
.act-text{ font-weight:600; }
.act-when{ color:var(--pr-muted); margin-left:auto; }
@media (max-width:1180px){ .kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:680px){ .kpis{ grid-template-columns:1fr; } .action-chip{ min-height:30px; padding:6px 10px; } }

/* ===== 6) Student workflow ===== */
vaadin-tabs{ margin:8px 0 12px; }
.student-card{ margin-top:8px; }
.pill-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.pill{ padding:.15rem .5rem; border-radius:.75rem; font-size:.8rem; border:1px solid transparent; }
.pill-info{ background:#eef2ff; color:#1e40af; border-color:#c7d7fe; }
.pill-success{ background:#eaf7ea; color:#176b2c; border-color:#b7e3c0; }
.pill-warning{ background:#fff4e5; color:#92400e; border-color:#fbc38d; }
.pill-danger{  background:#fde8e8; color:#991b1b; border-color:#fca5a5; }

.upload-vaadin{ border:2px dashed #c9d3e0; padding:12px; background:#fafbff; border-radius:10px; }

.peerreview-card{ position:relative; padding-right:130px; }
.peerreview-card .peerreview-status{ position:absolute; top:16px; right:18px; margin:0; z-index:1; }
@media (max-width:560px){
    .peerreview-card{ padding-right:18px; }
    .peerreview-card .peerreview-status{ position:static; margin-top:6px; display:inline-block; }
}

.peerreview-empty{
    display:grid; grid-template-columns:56px 1fr; gap:16px; align-items:center; min-height:110px;
}
.peerreview-empty__icon{ width:40px; height:40px; padding:8px; border-radius:999px; background:var(--pr-primary-10); color:var(--pr-primary); }
.peerreview-empty__title{ font-size:1rem; margin:0; }
.peerreview-empty__text,.peerreview-empty__hint{ color:var(--pr-muted); margin:0; }

vaadin-button.peerreview-btn[disabled]{ opacity:.55; filter:saturate(.3); cursor:not-allowed; pointer-events:none; }

/* ===== 7) Admin ===== */
.kpis.admin{ grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.activity-grid{
    display:grid; grid-template-columns:repeat(2,minmax(420px,1fr)); gap:16px;
    overflow-x:auto; padding-bottom:4px;
}
.chart-card{ border:1px solid var(--pr-border); border-radius:14px; background:#fff; box-shadow:var(--pr-shadow); padding:12px 14px; display:flex; flex-direction:column; }
.states-wrap{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.state-tile{ background:#f8fafc; border:1px solid var(--pr-border); border-radius:14px; padding:12px 14px; }
.state-tile__count{ display:block; font-size:1.2rem; font-weight:800; margin-bottom:2px; }
.state-tile__label{ color:#475569; font-weight:600; }
.admin-grid{ width:100%; }

/* ===== 8) Auth/Profile/Register ===== */
.login-view{ height:100vh; display:flex; justify-content:center; align-items:center; background:transparent; flex-direction:column; gap:24px; }
.register-view{ max-width:460px; margin:64px auto; padding:28px; background:#fff; border:1px solid var(--pr-border); border-radius:12px; box-shadow:var(--pr-shadow); display:flex; flex-direction:column; gap:16px; }
.profile-header{ margin-bottom:8px; }
.alert-pii{ background:#fef2f2; border:1px solid #fecaca; border-left:6px solid #e11d48; border-radius:12px; padding:12px 14px; margin:6px 0 12px; }

/* ===== 9) Center Toast ===== */
.center-toast{ width:min(520px,calc(100vw - 2rem)); padding:18px 20px; border-radius:16px; background:#fff; box-shadow:0 18px 60px rgba(16,24,40,.18); border:1px solid #e9eef5; animation:ct-enter .16s ease-out; }
.center-toast__header{ display:grid; grid-template-columns:auto 1fr auto; gap:.6rem; align-items:center; margin-bottom:.35rem; }
.center-toast__icon{ width:28px; height:28px; display:grid; place-items:center; border-radius:999px; color:var(--ct-accent); background:color-mix(in srgb,var(--ct-accent) 12%, transparent); }
.center-toast__title{ font-weight:800; color:#0f172a; }
.center-toast__text{ color:#334155; line-height:1.45; margin:0; }
.center-toast__close{ margin-left:.5rem; }
.center-toast--success{ --ct-accent:#16a34a; }
.center-toast--info{ --ct-accent:var(--pr-primary); }
.center-toast--warning{ --ct-accent:#f59e0b; }
.center-toast--error{ --ct-accent:#ef4444; }
@keyframes ct-enter{ from{ transform:scale(.98); opacity:0 } to{ transform:scale(1); opacity:1 } }

/* ===== Missing utilities used by views ===== */

/* Pills */
.pill-neutral{
    background:#f1f5f9; color:#334155; border-color:#e2e8f0;
}
.pill-decision-accept{
    background:#eaf7ea; color:#176b2c; border-color:#b7e3c0;
}
.pill-decision-revision{
    background:#fff4e5; color:#92400e; border-color:#fbc38d;
}
.pill-decision-reject{
    background:#fde8e8; color:#991b1b; border-color:#fca5a5;
}

/* Status label (top-right in peerreview-card) */
.peerreview-status{
    font-weight:800; font-size:.9rem; color:#1e3a8a;
}
.status-success{ color:#166534; }
.status-pending{ color:#1e40af; }
.status-danger{  color:#b91c1c; }

/* Deadline text under card headers */
.peerreview-deadline{
    display:inline-block; margin-top:4px; font-weight:700; color:#374151;
}

/* Meta row + actions row on cards */
.peerreview-meta{ margin-top:6px; display:flex; gap:10px; flex-wrap:wrap; }
.peerreview-actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

/* Nice rounded ghost button used in FeedbackView */
.ghost-btn{
    background:#f8fafc; border:1px solid var(--pr-border); border-radius:8px;
}

/* Inline callouts (editor note / revision submitted cards) */
.editor-note{ border-radius:12px; }
.peerreview-band{ border-radius:12px; }

/*--------------------------------------------*/
/*** Leaderboard – responsive podium + bigger heading + pagination ***/
.ranking-root{ background:#f7f9fb; min-height:100vh; padding:2rem 0; }

/* center content & avoid right overflow */
.ranking-container{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* bigger title (emoji scales with font) */
.ranking-container h2{
    font-weight:800;
    font-size:clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
    line-height:1.1;
    text-align:center;
    margin:0 0 1.5rem 0;
}

/* ---------- Podium ---------- */
.podium{
    display:grid;
    gap:24px;
    justify-content:center;
    align-items:start;
    /* desktop: 3 columns, row-1 gives “lift” space for #1 */
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    grid-template-rows: 60px auto;
}

.podium-card{
    width:100%;
    max-width:420px;
    min-height:220px;
    padding:1.6rem 2rem;
    background:linear-gradient(180deg,#eaf4ff 0%, #ffffff 100%);
    border:1px solid #dce7f5;
    border-radius:20px;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
    display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
    transition:box-shadow .25s ease;
    position:relative; z-index:1;
}
.podium-card:hover{ box-shadow:0 8px 18px rgba(0,0,0,.08); }
.rank-1{ grid-column:2; grid-row:1; z-index:5; }  /* centered & in front */
.rank-2{ grid-column:1; grid-row:2; }
.rank-3{ grid-column:3; grid-row:2; }

.podium-medal{ font-size:56px; line-height:1; margin-bottom:.6rem; }
.paper-title{
    margin:.25rem 0 .1rem 0; font-size:1.05rem; font-weight:700; color:#111;
    text-align:center; min-height:48px; display:flex; align-items:center; justify-content:center;
}
.paper-author{ font-size:.9rem; color:#555; }
.paper-score{  font-size:.95rem; color:#333; font-weight:600; margin-top:.2rem; }

/* ---------- Responsive podium fv---------- */
/* medium: 2 columns; #1 spans full width on first row */
@media (max-width: 1024px){
    .podium{
        grid-template-columns: repeat(2, minmax(240px, 1fr));
        grid-template-rows: auto auto;
    }
    .rank-1{ grid-column:1 / -1; grid-row:1; }
    .rank-2{ grid-column:1; grid-row:2; }
    .rank-3{ grid-column:2; grid-row:2; }
}

/* small: 1 column stacked, no overlap risk */
@media (max-width: 600px){
    .podium{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .rank-1, .rank-2, .rank-3{ grid-column:1; grid-row:auto; }
}

/* ---------- List & Pagination ---------- */
.rank-list{
    display:flex; flex-direction:column; gap:12px;
    width:100%; max-width:900px; margin:24px auto 8px auto;
}
.rank-row{
    background:#fff; border-radius:14px; box-shadow:0 1px 6px rgba(0,0,0,.06);
    padding:1rem 1.4rem;
    display:grid; grid-template-columns:70px 1fr minmax(120px, 1fr) 80px;
    align-items:center;
}
.rank-row:hover{ background:#f2f6fa; box-shadow:0 2px 10px rgba(0,0,0,.08); }
.rank-number{ color:#4285f4; font-weight:800; }
.rank-title{ color:#111; font-weight:600; }
.rank-author{ color:#555; text-align:right; }
.rank-score{ color:#00796b; font-weight:800; text-align:right; }

/* pager */
.pager{ display:flex; justify-content:center; align-items:center; gap:.5rem; margin:8px auto 0; }
.page-info{ font-size:.95rem; color:#444; }

.admin-root .ranking-root {
    background: transparent;
    padding: 1rem 0;
}


vaadin-dialog-overlay::part(content) {
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}
.primary-btn {
    background-color: var(--lumo-primary-color);
    color: white;
}

.paper-row {
    background: #f9fafb;
    border-radius: 10px;
    padding: 8px 12px;
    transition: background 0.2s;
}
.paper-row:hover {
    background: #eef2ff;
}


.forgot-password-page {
    background-color: var(--lumo-contrast-5pct);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password-page .card {
    background-color: var(--lumo-base-color);
    border-radius: var(--lumo-border-radius-l);
    box-shadow: var(--lumo-box-shadow-m);
}

/******chat bot ******/
.msg.typing {
    background: #fff;
    color: #94a3b8;
    font-size: 20px;
    animation: blink 1s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.suggestion-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 6px 0 12px;
    align-items: stretch;
}

.suggestion-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    background: #eaf1ff;
    color: #0b64d8;
    border-radius: 10px;
    font-size: 13px;
    padding: 6px 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-btn:hover {
    background: #dbeafe;
}


.msg-user {
    align-self: flex-end;
    background: var(--lumo-primary-color);
    color: white;
    padding: 10px 14px;
    border-radius: 14px 14px 0 14px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px;
}

.msg-bot {
    align-self: flex-start;
    background: #f7f7f7;
    color: #222;
    padding: 10px 14px;
    border-radius: 14px 14px 14px 0;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.chat-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}
/*** Notifications ***/
.notif-msg {
    white-space: normal !important;     /* allow wrapping and line breaks */
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    max-width: 280px;
}

.notif-list {
    overflow-x: hidden !important;      /* no horizontal scrollbar */
}

/*************************************/
/* ========================================================================== */
/* 🟦 PeerBot – Keep position + size fixed, remove double scroll */
/* ========================================================================== */

/* Keep the dialog in bottom-right, same good size */
vaadin-dialog-overlay[theme~="peerbot-dialog"] {
    position: fixed !important;
    right: 25px !important;
    bottom: 90px !important;
    width: 380px !important;
    height: 480px !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 9999 !important;
}

/* Don’t scroll the dialog itself */
vaadin-dialog-overlay[theme~="peerbot-dialog"]::part(overlay),
vaadin-dialog-overlay[theme~="peerbot-dialog"]::part(content) {
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header fixed on top */
.peerbot-header {
    flex-shrink: 0;
}

/* Input row fixed on bottom */
.input-row {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    position: sticky;
    bottom: 0;
    box-sizing: border-box;
    z-index: 1;
}

/* Only chat messages scroll */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 6px 10px; /* little bottom padding for spacing */
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

/* optional nicer scrollbar */
.chat-area::-webkit-scrollbar {
    width: 8px;
}
.chat-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
.chat-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
/* Ensure dialog content includes input row fully */
vaadin-dialog-overlay[theme~="peerbot-dialog"]::part(content) {
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* ========================================================================== */
/* 🧩 PeerBot — ensure messages area uses full height (no hidden messages) */
/* ========================================================================== */

.peerbot-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* prevent outer scroll */
}

/* This is the scrollable area for messages */
.chat-area {
    flex: 1 1 auto !important;   /* grow and shrink properly */
    min-height: 0 !important;    /* allow flexbox scrolling */
    overflow-y: auto !important;
    padding: 10px 10px 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

/* Input stays fixed and visible */
.input-row {
    flex-shrink: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 2;
}

/* Optional: hide scrollbar until hover */
.chat-area::-webkit-scrollbar {
    width: 6px;
    opacity: 0;
}
.chat-area:hover::-webkit-scrollbar {
    opacity: 1;
}
.chat-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}
.chat-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================================================== */
/* 🎨 PeerBot Header Styling (Blue Gradient) */
/* ========================================================================== */

.peerbot-header {
    background: linear-gradient(90deg, var(--lumo-primary-color) 0%, #0056d2 100%);
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.peerbot-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.peerbot-title::before {
    content: "🤖";
    font-size: 18px;
}

.peerbot-min-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.peerbot-min-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}
/* ========================================================================== */
/* 🎯 PeerBot — remove inner padding/shadow (no “card inside card”) */
/* ========================================================================== */

vaadin-dialog-overlay[theme~="peerbot-dialog"]::part(overlay) {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* remove Vaadin internal white frame */
vaadin-dialog-overlay[theme~="peerbot-dialog"]::part(content) {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* unify header + body */
.peerbot-header {
    background: linear-gradient(90deg, var(--lumo-primary-color) 0%, #0056d2 100%);
    color: #fff;
    padding: 10px 14px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    margin: 0;
    box-shadow: none;
}

/* chat container flat inside overlay */
.peerbot-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: none;
    overflow: hidden;
}

/* scroll area (messages) */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px 10px 6px 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: smooth;
}

/* input fixed at bottom */
.input-row {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding: 8px 10px;
    display: flex;
    align-items: center;
}
/* ========================================================================== */
/* ✨ PeerBot – final polish: spacing and single icon */
/* ========================================================================== */

/* Fix double icon (remove auto-added 🤖) */
.peerbot-title::before {
    content: none !important;
}

/* Add gentle spacing inside the message area */
.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 8px 14px; /* more space left/right */
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* Optional: make scrollbar not touch messages */
.chat-area::-webkit-scrollbar {
    width: 8px;
}
.chat-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
    margin-right: 4px;
}
