:root {
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, Noto Sans, sans-serif;
}

/* COLORS
   - Tiffany blue: #0ABAB5
   - Pink background: #FCE7F3
*/

body {
    margin: 0;
    background: #FCE7F3; /* pink background */
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* FULL-WIDTH HEADER */
.header {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #08938F;
    background: #0ABAB5; /* Tiffany blue, flat */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-bubble {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #FFFFFF; /* white bubble on blue header */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-bubble::after {
    /* chat “tail” */
    content: '';
    position: absolute;
    bottom: 3px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    transform: rotate(45deg);
    border-radius: 2px;
}

.logo-letter {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #0ABAB5; /* Tiffany blue letter */
}

.title {
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #FFFFFF; /* header text white */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #F472B6; /* pink accent */
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.9);
}

#sid {
    color: #E0F2F1;
    font-size: 12px;
    opacity: 0.9;
}

/* MAIN CONTENT (card centered) */
.main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.card {
    width: min(900px, 100%);
    background: transparent;           /* no white block */
    border: 0px solid #0ABAB52e;       /* very subtle outline, optional */
    border-radius: 16px;
    box-shadow: none;                  /* no shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.messages {
    height: 60vh;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;           /* same as page */
}

.msg {
    padding: 10px 12px;
    border-radius: 16px;
    max-width: 80%;
    line-height: 1.4;
    white-space: pre-wrap;
    font-size: 14px;
}

.user {
    align-self: flex-end;
    background: #0ABAB5;         /* Tiffany blue bubble */
    border: 1px solid #08938F;
    color: #FFFFFF;
}

.assistant {
    align-self: flex-start;
    background: #FFFFFF;
    border: 1px solid #F9A8D4;   /* pink outline */
    color: #111827;
}

/* FULL-WIDTH FOOTER */
.app-footer {
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #F9A8D4;
    background: #FDF2F8; /* light pink */
    padding: 10px 16px 12px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hint {
    opacity: 0.7;
    font-size: 12px;
    color: #6B7280;
    text-align: center;
}

.footer-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.footer-row input[type="text"] {
    flex: 1;
    max-width: 600px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #111827;
    border-radius: 10px;
    padding: 12px;
    outline: none;
}

.footer-row input[type="text"]::placeholder {
    color: #9CA3AF;
}

button {
    background: #0ABAB5; /* Tiffany blue button */
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.05s ease, box-shadow 0.05s ease, opacity 0.1s ease;
    box-shadow: 0 4px 10px rgba(15, 116, 112, 0.3);
    font-size: 14px;
    white-space: nowrap;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 116, 112, 0.4);
}

button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(15, 116, 112, 0.35);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}