/* ÀüÃ¼ ÄÁÅ×ÀÌ³Ê */
#chat-container {
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    max-width: 500px;
    margin: 20px auto;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Çì´õ ºÎºÐ */
#chat-header {
    background: #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header h3 {
    margin: 0;
    font-size: 15px;
    color: #fff;
    font-weight: 600;
}

#user-status {
    font-size: 11px;
    background: #444;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Ã¤ÆÃ Ã¢ (¸Þ½ÃÁö ¿µ¿ª) */
#chat-window {
    height: 450px;
    overflow-y: auto;
    padding: 20px;
    background: #fdfdfd;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ¸Þ½ÃÁö °øÅë ¾ÆÀÌÅÛ */
.msg-item {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.msg-user {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #666;
}

/* ÀÏ¹Ý »ç¿ëÀÚ(º»ÀÎ) ¸Þ½ÃÁö - ¿À¸¥ÂÊ Á¤·Ä */
.user-msg {
    align-self: flex-end;
    background: #0073aa;
    color: white;
    border-bottom-right-radius: 2px;
}
.user-msg .msg-user { color: #e1f5fe; }

/* ÀÎÇÃ·ç¾ð¼­ ¸Þ½ÃÁö - ¿ÞÂÊ Á¤·Ä ¹× °­Á¶ */
.inf-msg {
    align-self: flex-start;
    background: #fff0f0;
    border: 1.5px solid #ff4757;
    color: #333;
    border-bottom-left-radius: 2px;
}

/* ÀÎÇÃ·ç¾ð¼­ ¹èÁö */
.inf-badge {
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 5px;
    vertical-align: middle;
}

/* »èÁ¦ ¹öÆ° */
.del-btn {
    font-size: 10px;
    color: #ff6b6b;
    cursor: pointer;
    margin-left: 10px;
    opacity: 0.6;
    transition: 0.2s;
}
.del-btn:hover { opacity: 1; }

/* ÇÏ´Ü ÀÔ·ÂÃ¢ ¿µ¿ª */
#chat-input-area {
    display: flex;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

#chat-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: border 0.2s;
}

#chat-input:focus {
    border-color: #0073aa;
}

#chat-send-btn {
    margin-left: 10px;
    padding: 0 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

#chat-send-btn:hover {
    background: #005a87;
}

/* ½ºÅ©·Ñ¹Ù Ä¿½ºÅÒ */
#chat-window::-webkit-scrollbar { width: 6px; }
#chat-window::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }