.chatContainer {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*---- input box 영역 ----*/
.inputContainer-locked {
    position: relative;
    /* 자식 요소에서 position: absolute를 사용할 때 기준점으로 사용됩니다. */
    width: 95%;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: var(--grey2);
    border-radius: var(--borderRadiusMedium);
    border: 1px solid var(--grey3);
    padding: 35px;
    padding-right: 120px;
    box-sizing: border-box;
    /* padding과 border를 요소의 총 너비와 높이에 포함시켜 레이아웃 계산을 용이하게 합니다. */
}

.inputBox-locked {
    font-size: 18px;
    font-weight: 400;
    color: var(--grey4);
}

.lockedBtn {
    position: absolute;
    right: 20px;
    top: 50%;
    /* 부모 요소(.inputContainer-locked)를 기준으로 수직 중앙에 위치 */
    transform: translateY(-50%);
    /* 자기 자신의 높이의 50%만큼 위로 보정하여 완벽한 수직 중앙 정렬 구현 */
    width: 50px;
    height: 50px;
    background-color: var(--grey2);
    border-radius: var(--borderRadiusBtnSmall);
    border: 1px solid var(--grey3);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 버튼 내 아이콘을 수평/수직으로 완벽하게 중앙 정렬합니다. */
}

.lockedBtn:hover {
    cursor: not-allowed;
}

.lockedIcon {
    width: 20px;
    height: 20px;
}

.inputContainer-unlocked {
    position: relative;
    /* 자식 요소에서 position: absolute를 사용할 때 기준점으로 사용됩니다. */
    width: 95%;
    margin-top: 10px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: var(--borderRadiusMedium);
    border: 1.5px solid var(--black);
    padding: 20px;
    padding-right: 120px;
    box-sizing: border-box;
    /* padding과 border를 요소의 총 너비와 높이에 포함시켜 레이아웃 계산을 용이하게 합니다. */
}

.inputBox {
    width: 100%;
    height: 100%;
    min-height: 40px;
    border-radius: var(--borderRadiusMedium);
    flex-grow: 1;
    background-color: transparent;
    border: none;
    resize: none;
    /* 사용자가 textarea의 크기를 조절할 수 없도록 설정합니다. */
    outline: none;
    /* 포커스되었을 때 나타나는 기본 외곽선을 제거합니다. */
    overflow-y: auto;
    font-weight: 400;
    font-size: 18px;
    color: var(--black);
    word-wrap: break-word;
    white-space: pre-wrap;
}

.inputBox::placeholder {
    color: var(--grey3);
}

.inputSourceCount {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--grey4);
    cursor: pointer;
    user-select: none;
}

.inputSourceCount:hover {
    color: var(--blue2);
}

/* 소스 모달 스타일 */
.sourceModal {
    position: absolute;
    right: 90px;
    bottom: calc(100% + 10px);
    z-index: 1000;
    background: white;
    border: 1px solid var(--grey3);
    border-radius: var(--borderRadiusSmall);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    max-width: 400px;
}

.sourceModalContent {
    padding: 12px;
}

.sourceModalTitle {
    font-size: 12px;
    font-weight: 500;
    color: var(--grey4);
    margin-bottom: 8px;
    border-bottom: 1px solid var(--grey2);
    padding-bottom: 6px;
}

.sourceModalList {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sourceModalItem {
    font-size: 13px;
    color: var(--blue2);
    padding: 4px 0;
    border-bottom: 1px solid var(--grey1);
}

.sourceModalItem:last-child {
    border-bottom: none;
}

.sendBtn {
    position: absolute;
    right: 20px;
    top: 50%;
    /* 부모 요소(.inputContainer-locked)를 기준으로 수직 중앙에 위치 */
    transform: translateY(-50%);
    /* 자기 자신의 높이의 50%만큼 위로 보정하여 완벽한 수직 중앙 정렬 구현 */
    width: 50px;
    height: 50px;
    background-color: var(--grey1);
    border-radius: var(--borderRadiusBtnSmall);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 버튼 내 아이콘을 수평/수직으로 완벽하게 중앙 정렬합니다. */
}

.sendBtn.active {
    background-color: var(--blue2);
}

.sendIcon {
    width: 20px;
    height: 20px;
}

.sendIcon path {
    fill: var(--grey3);
}

.sendBtn.active .sendIcon path {
    fill: white;
}

.changpleBtn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--grey1);
    border-radius: var(--borderRadiusBtnSmall);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.changpleIcon {
    fill: var(--grey3);
}

.loading-message {
    display: flex;
    align-items: center;
    font-size: 16px;
    color: var(--grey1);
    margin: 10px 0;
}

.loading-dots {
    display: inline-flex;
    margin-left: 4px;
}

.dot {
    font-size: 24px;
    line-height: 1;
    opacity: 0;
    animation: loadingAnimation 1.4s infinite;
    margin-left: 2px;
}

.dot:nth-child(1) {
    color: var(--grey2);
    animation-delay: 0s;
}

.dot:nth-child(2) {
    color: var(--grey3);
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    color: var(--grey4);
    animation-delay: 0.4s;
}

@keyframes loadingAnimation {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* .sendBtn:hover {
    background-color: var(--blue1);
    border-radius: 12px;
} */

#stop-button {
    /* JavaScript로 제어하므로 기본적으로는 숨겨둡니다. */
    display: none;
    width: 50px;
    height: 50px;
    /* padding: 10px 20px; */
    /* 중앙 정렬을 위해 padding 제거 */
}

.pause-icon {
    width: 16px;
    height: 16px;
    position: relative;
    top: 2px;
}

#stop-button:hover {
    background-color: var(--btnHover);
}

/* 중단 버튼 비활성화 상태 스타일 */
#stop-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.input-lock-indicator {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
}

.lockIcon {
    width: 22px;
    height: auto;
}

.lockIcon path {
    stroke: var(--grey3);
    stroke-width: 1.5px;
}