File size: 1,994 Bytes
21ae1dc
 
 
 
 
00d06b4
21ae1dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
00d06b4
 
 
 
 
 
21ae1dc
 
 
 
00d06b4
21ae1dc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aed5ad1
 
 
 
 
 
 
 
 
 
 
 
 
 
21ae1dc
 
 
 
 
 
 
00d06b4
21ae1dc
aed5ad1
00d06b4
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/*
 * SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
 * SPDX-License-Identifier: Apache-2.0
 */

#sendBtn, #stopBtn, #fileBtn, #audioBtn {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#sendBtn {
  background: linear-gradient(135deg, var(--color-primary), #2563eb);
  color: white;
}

#sendBtn.recording {
  background: linear-gradient(135deg, #f87171, #ef4444);
  transform: scale(1.1);
}

#sendBtn:hover:not(:disabled):not(.recording) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

#sendBtn:active:not(:disabled):not(.recording) {
  transform: translateY(0) scale(0.98);
}

#sendBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: scale(0.96);
}

#stopBtn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  display: none;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

#stopBtn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

#stopBtn:active {
  transform: translateY(0) scale(0.98);
}

#fileBtn, #audioBtn {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  color: white;
}

#fileBtn:hover, #audioBtn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

#fileBtn:active, #audioBtn:active {
  transform: translateY(0) scale(0.98);
}

#sendIcon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: #fff;
  transition: transform 0.2s ease;
}

#sendBtn:hover:not(:disabled):not(.recording) #sendIcon {
  transform: translateX(2px);
}

#sendBtn.recording #sendIcon {
  display: none;
}

#sendBtn.recording::after {
  content: '';
  width: 1rem;
  height: 1rem;
  background: url('/static/images/mic.svg') no-repeat center;
  background-size: contain;
}