/* styles.css */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: fixed;
    inset: 0;
}

#chat-container {
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-width: 800px;
    margin: 5vh auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

#chat-history {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
    background: white;
}

.form-container {
    display: flex;
    padding: 10px;
    background: #FFFFFF;
    border: 0.4px solid #DADCE0;
    border-radius: 60px;
    margin: 20px;
}

#chat-input {
    padding: 10px;
    flex-grow: 10;
    outline: none;
    font-size: 16px;
    border: 0.4px solid rgba(0, 0, 0, 0);
}

#send-button {
    font-size: 14px;
    padding: 10px 16px;
    border: none;
    background-color: #020a16;
    color: white;
    font-weight: medium;
    cursor: pointer;
    border-radius: 60px;
    transition: background-color 0.3s;
    outline: none;
}

#send-button:hover {
    background-color: #454d58;
}

#send-button:disabled {
    background-color: #353535; /* 회색 톤의 배경 */
    color: #ffffff;            /* 회색 톤의 글자색 */
    cursor: default;           /* 기본 커서를 사용 */
}

#send-button:not(:disabled):hover {
    background-color: #454d58; /* 활성화 상태에서의 호버 배경색 */
}


/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F7F7F8;
}

::-webkit-scrollbar-thumb {
    background-color: #B0B0B0;
    border-radius: 10px;
}

.message {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
  }
  
  .profile-circle {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
  }
  
  .username {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px; /* 이름과 메시지 내용 사이의 간격 */
  }
  
  .message-content {
    margin-bottom: 4px; /* 메시지와 시간 스탬프 사이의 간격 */
    font-size: 0.9rem;
  }
  
  .received .profile-circle {
    margin-right: 10px;
    background-color: #ff934b;
  }
  
  .sent .profile-circle {
    margin-right: 10px;
    background-color: #4e70df;
  }
  
  .sent .message-text {
    align-items: flex-start;
  }
  
  .sent {
    justify-content: flex-start;
  }
  
  .received .message-text {
    align-items: flex-start;
  }

  .spinner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #000000; /* 색상은 사용자 인터페이스에 맞게 조정할 수 있습니다 */
    animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0.34, 1);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.75);
    }
    50% {
        transform: scale(1.25);
    }
}
