402 lines
7.2 KiB
CSS
402 lines
7.2 KiB
CSS
.coaching {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: calc(100vh - 140px);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Context Tabs */
|
|
.contextBar {
|
|
border-bottom: 1px solid var(--border-color, #e0e0e0);
|
|
padding: 0.5rem 1rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contextTabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
overflow-x: auto;
|
|
align-items: center;
|
|
}
|
|
|
|
.contextTab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.4rem 0.75rem;
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
border-radius: 20px;
|
|
background: var(--bg-card, #fff);
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
white-space: nowrap;
|
|
transition: all 0.15s;
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.contextTab:hover {
|
|
background: var(--bg-hover, #f5f5f5);
|
|
}
|
|
|
|
.contextTabActive {
|
|
background: var(--primary-color, #F25843);
|
|
color: #fff;
|
|
border-color: var(--primary-color, #F25843);
|
|
}
|
|
|
|
.contextTabIcon {
|
|
font-weight: 700;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.contextTabLabel {
|
|
max-width: 120px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.contextTabNew {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 1px dashed var(--border-color, #ccc);
|
|
border-radius: 50%;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-secondary, #888);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.contextTabNew:hover {
|
|
background: var(--bg-hover, #f5f5f5);
|
|
color: var(--primary-color, #F25843);
|
|
}
|
|
|
|
/* New Context Form */
|
|
.newContextForm {
|
|
padding: 1rem;
|
|
background: var(--bg-card, #fff);
|
|
border-bottom: 1px solid var(--border-color, #e0e0e0);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.newContextInput,
|
|
.newContextSelect {
|
|
padding: 0.5rem 0.75rem;
|
|
border: 1px solid var(--border-color, #ddd);
|
|
border-radius: 6px;
|
|
font-size: 0.9rem;
|
|
background: var(--bg-input, #fff);
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.newContextActions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btnPrimary {
|
|
padding: 0.5rem 1.25rem;
|
|
background: var(--primary-color, #F25843);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.btnPrimary:hover:not(:disabled) { filter: brightness(1.08); }
|
|
.btnPrimary:disabled {
|
|
background: var(--color-medium-gray, #ccc);
|
|
color: var(--text-secondary, #888);
|
|
cursor: not-allowed;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.btnSecondary {
|
|
padding: 0.5rem 1.25rem;
|
|
background: transparent;
|
|
color: var(--text-primary, #333);
|
|
border: 1px solid var(--border-color, #ddd);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.btnSecondary:hover:not(:disabled) {
|
|
background: var(--hover-bg, #f5f5f5);
|
|
border-color: var(--primary-color, #F25843);
|
|
color: var(--primary-color, #F25843);
|
|
}
|
|
|
|
.btnSmall {
|
|
padding: 0.3rem 0.75rem;
|
|
background: var(--primary-color, #F25843);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btnSmall:hover:not(:disabled) { filter: brightness(1.08); }
|
|
|
|
.btnSmallDanger {
|
|
padding: 0.3rem 0.75rem;
|
|
background: transparent;
|
|
color: var(--error-color, #dc2626);
|
|
border: 1px solid var(--error-color, #dc2626);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.btnSmallDanger:hover:not(:disabled) {
|
|
background: var(--error-color, #dc2626);
|
|
color: #fff;
|
|
}
|
|
|
|
/* No context */
|
|
.noContext {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: var(--text-secondary, #666);
|
|
}
|
|
|
|
.noContext h3 {
|
|
color: var(--text-primary, #333);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.noContext p {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Chat Area */
|
|
.chatArea {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sessionStart {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.sessionStart h3 {
|
|
color: var(--text-primary, #333);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.sessionStart p {
|
|
color: var(--text-secondary, #666);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.sessionHeader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.5rem 1rem;
|
|
background: var(--bg-card, #fff);
|
|
border-bottom: 1px solid var(--border-color, #e0e0e0);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sessionLabel {
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.sessionActions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Messages */
|
|
.messages {
|
|
flex: 1;
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.message {
|
|
max-width: 80%;
|
|
}
|
|
|
|
.messageUser {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.messageAssistant {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.messageBubble {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 12px;
|
|
font-size: 0.9rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.messageUser .messageBubble {
|
|
background: var(--primary-color, #F25843);
|
|
color: #fff;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.messageLive {
|
|
opacity: 0.7;
|
|
font-style: italic;
|
|
border: 1px dashed rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.messageAssistant .messageBubble {
|
|
background: var(--bg-card, #f5f5f5);
|
|
color: var(--text-primary, #333);
|
|
border: 1px solid var(--border-color, #e0e0e0);
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.messageBubble p {
|
|
margin: 0 0 0.5rem;
|
|
}
|
|
|
|
.messageBubble p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.messageTime {
|
|
font-size: 0.7rem;
|
|
color: var(--text-secondary, #999);
|
|
margin-top: 0.2rem;
|
|
padding: 0 0.25rem;
|
|
}
|
|
|
|
.messageUser .messageTime {
|
|
text-align: right;
|
|
}
|
|
|
|
.typing {
|
|
color: var(--text-secondary, #888);
|
|
font-style: italic;
|
|
}
|
|
|
|
.typingDots {
|
|
animation: blink 1.4s infinite both;
|
|
}
|
|
|
|
@keyframes blink {
|
|
0%, 80%, 100% { opacity: 0; }
|
|
40% { opacity: 1; }
|
|
}
|
|
|
|
/* Input */
|
|
.inputArea {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1rem;
|
|
border-top: 1px solid var(--border-color, #e0e0e0);
|
|
background: var(--bg-card, #fff);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.textInputRow {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.textInput {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding: 0.6rem 0.75rem;
|
|
border: 1px solid var(--border-color, #ddd);
|
|
border-radius: 8px;
|
|
resize: none;
|
|
font-size: 0.9rem;
|
|
font-family: inherit;
|
|
min-height: 40px;
|
|
max-height: 120px;
|
|
background: var(--bg-input, #fff);
|
|
color: var(--text-primary, #333);
|
|
}
|
|
|
|
.sendBtn {
|
|
padding: 0.6rem 1.25rem;
|
|
background: var(--primary-color, #F25843);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.sendBtn:hover:not(:disabled) { filter: brightness(1.08); }
|
|
.sendBtn:disabled {
|
|
background: var(--color-medium-gray, #ccc);
|
|
color: var(--text-secondary, #888);
|
|
cursor: not-allowed;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.voiceStatus {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.25rem 0;
|
|
min-height: 1.5rem;
|
|
}
|
|
|
|
.voiceIndicator {
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary, #888);
|
|
}
|
|
|
|
.voiceIndicator.voiceActive {
|
|
color: var(--primary-color, #F25843);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.voiceActive {
|
|
border: 2px solid #22c55e;
|
|
}
|
|
|
|
.mutedActive {
|
|
background: var(--color-medium-gray, #999);
|
|
color: #fff;
|
|
border-color: var(--color-medium-gray, #999);
|
|
}
|
|
|
|
.errorBanner {
|
|
padding: 0.5rem 1rem;
|
|
background: #fde8e8;
|
|
color: var(--color-error, #d32f2f);
|
|
font-size: 0.85rem;
|
|
text-align: center;
|
|
}
|