/* 全体レイアウト */
.usegpt-wrap {
    max-width: 640px;
    margin: 1.5rem auto;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* テキストエリア（質問入力欄） */
#usegpt-chat textarea {
    width: 100%;
    min-height: 140px;
    padding: 1rem;
    border: 2px solid #c8d9e8; /* パステルブルー */
    border-radius: 8px;
    background: #f6fbff;
    color: #333;
    font-size: 16px;
    resize: vertical;
    box-sizing: border-box;
    margin-top: 1rem;
}

/* 送信ボタン */
#usegpt-chat button {
    margin-top: 0.75rem;
    padding: 0.6rem 1.4rem;
    background: #ffdfec; /* パステルピンク */
    border: 2px solid #f5c8db;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333; /* 文字色をダークに */
}
#usegpt-chat button:hover {
    background: #ffd0e4;
}

/* 回答エリア */
#usegpt-answer {
    padding: 1rem;
    border: 2px solid #e6e7f1; /* パステルラベンダー */
    border-radius: 8px;
    background: #fafaff;
    white-space: pre-wrap;
    line-height: 1.6;
    color: #444;
}

/* リセットボタン */
#usegpt-reset, 
#usegpt-copy {
    margin-top: 0.75rem;
    padding: 0.6rem 1.4rem;
    background: #e0f7fa; /* パステル水色 */
    border: 2px solid #b2ebf2;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
    margin-right: 0.5rem;
}
#usegpt-reset:hover,
#usegpt-copy:hover {
    background: #b2ebf2;
}

/* スピナー（回答生成中） */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.2);
    border-top-color: rgba(0,0,0,0.8);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 発言ラベルの装飾：ユーザー（お問い合わせ）および回答 */
.user,
.assistant {
    margin: 0.4rem 0;
}