/*
// index.css
// uriseednet
//
// Created by Dusu Park on 2026-03-21.
// Copyright (c) Uriseed. All rights reserved.
*/
/* Replaced by EB Song on 2026-04-06 */
.chat-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;

  width: 64px;
  height: 64px;
  padding: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #d84b4b;
  border: none;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);

  outline: none;
}

.chat-fab i {
    font-size: 32px;
}

/*
.chat-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    z-index: 100;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
}*/

.chat-box {
    height: 420px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px;
    z-index: 200;
}

.msg {
    margin-bottom: 12px;
    display: flex;
}

.msg.user {
    justify-content: flex-end;
}

.msg.assistant {
    justify-content: flex-start;
}

.bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    /*white-space: pre-wrap;*/
}

.bubble p {
  margin: 0 0 0.45rem;
}

.bubble p:last-child {
  margin-bottom: 0;
}

.bubble ul,
.bubble ol {
  margin: 0.45rem 0;
  padding-left: 1.2rem;
}

.bubble li {
  margin: 0.15rem 0;
}

.bubble h1,
.bubble h2,
.bubble h3,
.bubble h4,
.bubble h5,
.bubble h6 {
  margin: 0 0 0.45rem;
  line-height: 1.35;
  font-size: 1rem;
}

.bubble pre {
  margin: 0.5rem 0;
  padding: 10px 12px;
  border-radius: 8px;
  overflow-x: auto;
  background: #f1f3f5;
}

.bubble code {
  background: #f1f3f5;
  padding: 2px 5px;
  border-radius: 4px;
}

.bubble pre code {
  background: transparent;
  padding: 0;
}

.bubble blockquote {
  margin: 0.45rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid #dee2e6;
}

.bubble a {
  text-decoration: underline;
}

/* Replaced by EB Song on 2026-04-06 */
.user .bubble {
  background: #d84b4b;
  color: white;
  border-bottom-right-radius: 4px;
}
/*
.user .bubble {
    background: #0d6efd;
    color: white;
    border-bottom-right-radius: 4px;
} */

.assistant .bubble {
    background: white;
    color: #212529;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 4px;
}

/* Added by EB Song on 2026-04-06 */
.chat-fab.btn-primary,
.chat-fab.btn-primary:hover,
.chat-fab.btn-primary:focus,
.chat-fab.btn-primary:active,
.chat-fab.btn-primary:focus-visible {
  background-color: #d84b4b;
  border-color: #d84b4b;
  color: #ffffff;
  box-shadow: none;
  outline: none;
}

#chatModal .btn.btn-primary,
#chatModal .btn.btn-primary:hover,
#chatModal .btn.btn-primary:focus,
#chatModal .btn.btn-primary:active,
#chatModal .btn.btn-primary:focus-visible {
  background-color: #d84b4b;
  border-color: #d84b4b;
  box-shadow: none;
  outline: none;

  font-size: 14px;
  padding: 6px 12px; 
}

#chatModal .form-control:focus {
  border-color: #ddd;
  box-shadow: none;
  outline: none;
}

@media (max-width: 760px) {
  .chat-fab {
    width: 48px;
    height: 48px;

    right: 16px;
    bottom: 16px;
  }

  .chat-fab i {
    font-size: 24px;
  }
}

/* , */