branch:
styles.css
5092 bytesRaw
body {
font-family:
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
Cantarell, sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.phone-call-container {
width: 100%;
max-width: 400px;
height: 100vh;
max-height: 700px;
background: white;
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
}
/* Call Header */
.call-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 20px;
text-align: center;
position: relative;
}
.call-info {
margin-bottom: 10px;
}
.call-title {
font-size: 18px;
font-weight: 600;
margin-bottom: 5px;
}
.call-duration {
font-size: 14px;
opacity: 0.9;
font-family: "Courier New", monospace;
}
.call-status {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
}
.status-indicator {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #22c55e;
animation: pulse 2s infinite;
}
.status-indicator.connecting .status-dot {
background-color: #f59e0b;
}
.status-indicator.connected .status-dot {
background-color: #22c55e;
}
.status-indicator.disconnected .status-dot {
background-color: #ef4444;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
/* Transcription Area */
.transcription-area {
flex: 1;
padding: 20px;
overflow-y: auto;
background: #f8fafc;
}
.no-messages {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
color: #64748b;
}
.waiting-indicator {
text-align: center;
}
.pulse-dot {
width: 12px;
height: 12px;
background-color: #667eea;
border-radius: 50%;
margin: 0 auto 15px;
animation: pulse 1.5s infinite;
}
.messages-container {
display: flex;
flex-direction: column;
gap: 16px;
}
.message-bubble {
max-width: 85%;
padding: 12px 16px;
border-radius: 18px;
position: relative;
animation: slideIn 0.3s ease-out;
}
.message-bubble.user {
background: #667eea;
color: white;
align-self: flex-end;
border-bottom-right-radius: 6px;
}
.message-bubble.assistant {
background: white;
color: #1f2937;
align-self: flex-start;
border-bottom-left-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.message-bubble.in_progress {
opacity: 0.8;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.message-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
font-size: 12px;
font-weight: 500;
}
.speaker-name {
opacity: 0.8;
}
.message-content {
font-size: 14px;
line-height: 1.4;
word-wrap: break-word;
}
/* Typing Indicator */
.typing-indicator {
display: flex;
gap: 4px;
margin-top: 8px;
justify-content: center;
}
.typing-indicator span {
width: 6px;
height: 6px;
background-color: currentColor;
border-radius: 50%;
opacity: 0.6;
animation: typing 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(1) {
animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
animation-delay: -0.16s;
}
@keyframes typing {
0%,
80%,
100% {
transform: scale(0.8);
opacity: 0.5;
}
40% {
transform: scale(1);
opacity: 1;
}
}
/* Call Controls */
.call-controls {
background: white;
padding: 20px;
display: flex;
justify-content: center;
gap: 20px;
border-top: 1px solid #e2e8f0;
}
.control-btn {
width: 50px;
height: 50px;
border-radius: 50%;
border: none;
background: #f1f5f9;
color: #64748b;
font-size: 20px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.control-btn:hover {
background: #e2e8f0;
transform: scale(1.05);
}
.end-call-btn {
background: #ef4444 !important;
color: white !important;
}
.end-call-btn:hover {
background: #dc2626 !important;
}
.mute-btn.active {
background: #f59e0b !important;
color: white !important;
}
.speaker-btn.active {
background: #22c55e !important;
color: white !important;
}
/* Scrollbar Styling */
.transcription-area::-webkit-scrollbar {
width: 6px;
}
.transcription-area::-webkit-scrollbar-track {
background: transparent;
}
.transcription-area::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
}
.transcription-area::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
/* Responsive Design */
@media (max-width: 480px) {
.phone-call-container {
max-width: 100%;
height: 100vh;
border-radius: 0;
}
.call-header {
padding: 15px;
}
.transcription-area {
padding: 15px;
}
.call-controls {
padding: 15px;
}
}