KingNish commited on
Commit
bde24fa
1 Parent(s): 7fdbd84

Update styles.css

Browse files
Files changed (1) hide show
  1. styles.css +139 -139
styles.css CHANGED
@@ -1,215 +1,215 @@
1
  :root {
2
- --primary-color: #4a90e2;
3
- --secondary-color: #f39c12;
4
- --accent-color: #38cb96;
5
- --background-color: #f0f4f8;
6
- --card-bg-color: #ffffff;
7
- --text-color: #333333;
8
- --border-color: #e0e0e0;
9
- --shadow-color: rgba(0, 0, 0, 0.1);
10
- --hover-shadow-color: rgba(74, 144, 226, 0.3);
11
- --hover-bg-color: #1e9b6e;
12
- --active-bg-color: #1a855d;
13
- --tooltip-bg-color: #333;
14
- --tooltip-text-color: #fff;
15
  }
16
 
17
  body {
18
- font-family: 'Roboto', sans-serif;
19
- background: linear-gradient(135deg, var(--background-color) 0%, #dfe9f3 100%);
20
- color: var(--text-color);
21
- margin: 0;
22
- padding: 0;
23
- display: flex;
24
- justify-content: center;
25
- align-items: center;
26
- min-height: 100vh;
27
  }
28
 
29
  .container {
30
- width: 90%;
31
- max-width: 800px;
32
  }
33
 
34
  .voice-assistant-card {
35
- background: linear-gradient(135deg, var(--card-bg-color) 0%, #f9f9f9 100%);
36
- border-radius: 20px;
37
- box-shadow: 0 10px 30px var(--shadow-color);
38
- padding: 40px;
39
- text-align: center;
40
- position: relative;
41
- overflow: hidden;
42
  }
43
 
44
  .voice-assistant-card::before {
45
- content: '';
46
- position: absolute;
47
- top: 0;
48
- left: 0;
49
- width: 100%;
50
- height: 100%;
51
- background: rgba(255, 255, 255, 0.1);
52
- border-radius: 20px;
53
- z-index: -1;
54
- filter: blur(10px);
55
  }
56
 
57
  .title {
58
- font-size: 2.5rem;
59
- font-weight: 700;
60
- margin-bottom: 20px;
61
- color: var(--primary-color);
62
- position: relative;
63
- z-index: 1;
64
  }
65
 
66
  #responseTime {
67
- font-size: 0.9rem;
68
- color: #777;
69
- margin-bottom: 20px;
70
- position: relative;
71
- z-index: 1;
72
  }
73
 
74
  .indicator-wrapper {
75
- display: flex;
76
- justify-content: space-around;
77
- margin-bottom: 30px;
78
- position: relative;
79
- z-index: 1;
80
  }
81
 
82
  .indicator {
83
- display: flex;
84
- align-items: center;
85
- padding: 10px 20px;
86
- border-radius: 50px;
87
- font-size: 1rem;
88
- color: #fff;
89
- transition: all 0.3s ease;
90
- position: relative;
91
- z-index: 1;
92
  }
93
 
94
  .indicator svg {
95
- margin-right: 8px;
96
  }
97
 
98
  #userIndicator {
99
- background: linear-gradient(135deg, var(--primary-color) 0%, #6fb1f2 100%);
100
  }
101
 
102
  #aiIndicator {
103
- background: linear-gradient(135deg, var(--secondary-color) 0%, #ffaf5c 100%);
104
  }
105
 
106
  #startStopButton {
107
- background: linear-gradient(135deg, var(--accent-color) 0%, #28b475 100%);
108
- color: #fff;
109
- border: none;
110
- padding: 15px 30px;
111
- font-size: 1.2rem;
112
- border-radius: 50px;
113
- cursor: pointer;
114
- transition: all 0.3s ease;
115
- display: flex;
116
- align-items: center;
117
- justify-content: center;
118
- margin: 0 auto 30px;
119
- position: relative;
120
- z-index: 1;
121
  }
122
 
123
  #startStopButton:hover {
124
- background: linear-gradient(135deg, var(--hover-bg-color) 0%, #28b475 100%);
125
- transform: translateY(-2px);
126
- box-shadow: 0 5px 15px var(--hover-shadow-color);
127
  }
128
 
129
  #startStopButton:active {
130
- background: linear-gradient(135deg, var(--active-bg-color) 0%, #28b475 100%);
131
- transform: translateY(0);
132
- box-shadow: 0 2px 10px var(--shadow-color);
133
  }
134
 
135
  #startStopButton svg {
136
- margin-right: 10px;
137
  }
138
 
139
  .settings {
140
- display: grid;
141
- grid-template-columns: 1fr 1fr 1.5fr;
142
- gap: 20px;
143
- margin-bottom: 30px;
144
- position: relative;
145
- z-index: 1;
146
  }
147
 
148
  .setting {
149
- text-align: left;
150
- position: relative;
151
- /* Added for tooltip positioning */
152
  }
153
 
154
  .setting label {
155
- display: block;
156
- margin-bottom: 5px;
157
- font-weight: 700;
158
- color: var(--text-color);
159
  }
160
 
161
  select,
162
  input[type="password"] {
163
- width: 100%;
164
- padding: 10px;
165
- border: 1px solid var(--border-color);
166
- border-radius: 5px;
167
- font-size: 1rem;
168
- background-color: #fff;
169
- color: var(--text-color);
170
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
171
- transition: all 0.3s ease;
172
  }
173
 
174
  select:hover,
175
  input[type="password"]:hover {
176
- border-color: var(--primary-color);
177
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
178
  }
179
 
180
  .tooltip {
181
- display: none;
182
- position: absolute;
183
- background-color: var(--tooltip-bg-color);
184
- color: var(--tooltip-text-color);
185
- padding: 5px;
186
- border-radius: 5px;
187
- font-size: 0.8rem;
188
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
189
  }
190
 
191
  .setting:hover .tooltip {
192
- display: block;
193
- /* Show tooltip on hover */
194
  }
195
 
196
  #transcript {
197
- background: linear-gradient(135deg, #f9f9f9 0%, #e6e6e6 100%);
198
- border-radius: 10px;
199
- padding: 20px;
200
- margin-top: 30px;
201
- text-align: left;
202
- font-family: 'Courier New', monospace;
203
- white-space: pre-wrap;
204
- max-height: 200px;
205
- overflow-y: auto;
206
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
207
- position: relative;
208
- z-index: 1;
209
  }
210
 
211
  @media (max-width: 600px) {
212
- .settings {
213
- grid-template-columns: 1fr;
214
- }
215
  }
 
1
  :root {
2
+ --primary-color: #4a90e2;
3
+ --secondary-color: #f39c12;
4
+ --accent-color: #38cb96;
5
+ --background-color: #f0f4f8;
6
+ --card-bg-color: #ffffff;
7
+ --text-color: #333333;
8
+ --border-color: #e0e0e0;
9
+ --shadow-color: rgba(0, 0, 0, 0.1);
10
+ --hover-shadow-color: rgba(74, 144, 226, 0.3);
11
+ --hover-bg-color: #1e9b6e;
12
+ --active-bg-color: #1a855d;
13
+ --tooltip-bg-color: #333;
14
+ --tooltip-text-color: #fff;
15
  }
16
 
17
  body {
18
+ font-family: 'Roboto', sans-serif;
19
+ background: linear-gradient(135deg, var(--background-color) 0%, #dfe9f3 100%);
20
+ color: var(--text-color);
21
+ margin: 0;
22
+ padding: 0;
23
+ display: flex;
24
+ justify-content: center;
25
+ align-items: center;
26
+ min-height: 100vh;
27
  }
28
 
29
  .container {
30
+ width: 90%;
31
+ max-width: 800px;
32
  }
33
 
34
  .voice-assistant-card {
35
+ background: linear-gradient(135deg, var(--card-bg-color) 0%, #f9f9f9 100%);
36
+ border-radius: 20px;
37
+ box-shadow: 0 10px 30px var(--shadow-color);
38
+ padding: 40px;
39
+ text-align: center;
40
+ position: relative;
41
+ overflow: hidden;
42
  }
43
 
44
  .voice-assistant-card::before {
45
+ content: '';
46
+ position: absolute;
47
+ top: 0;
48
+ left: 0;
49
+ width: 100%;
50
+ height: 100%;
51
+ background: rgba(255, 255, 255, 0.1);
52
+ border-radius: 20px;
53
+ z-index: -1;
54
+ filter: blur(10px);
55
  }
56
 
57
  .title {
58
+ font-size: 2.5rem;
59
+ font-weight: 700;
60
+ margin-bottom: 20px;
61
+ color: var(--primary-color);
62
+ position: relative;
63
+ z-index: 1;
64
  }
65
 
66
  #responseTime {
67
+ font-size: 0.9rem;
68
+ color: #777;
69
+ margin-bottom: 20px;
70
+ position: relative;
71
+ z-index: 1;
72
  }
73
 
74
  .indicator-wrapper {
75
+ display: flex;
76
+ justify-content: space-around;
77
+ margin-bottom: 30px;
78
+ position: relative;
79
+ z-index: 1;
80
  }
81
 
82
  .indicator {
83
+ display: flex;
84
+ align-items: center;
85
+ padding: 10px 20px;
86
+ border-radius: 50px;
87
+ font-size: 1rem;
88
+ color: #fff;
89
+ transition: all 0.3s ease;
90
+ position: relative;
91
+ z-index: 1;
92
  }
93
 
94
  .indicator svg {
95
+ margin-right: 8px;
96
  }
97
 
98
  #userIndicator {
99
+ background: linear-gradient(135deg, var(--primary-color) 0%, #6fb1f2 100%);
100
  }
101
 
102
  #aiIndicator {
103
+ background: linear-gradient(135deg, var(--secondary-color) 0%, #ffaf5c 100%);
104
  }
105
 
106
  #startStopButton {
107
+ background: linear-gradient(135deg, var(--accent-color) 0%, #28b475 100%);
108
+ color: #fff;
109
+ border: none;
110
+ padding: 15px 30px;
111
+ font-size: 1.2rem;
112
+ border-radius: 50px;
113
+ cursor: pointer;
114
+ transition: all 0.3s ease;
115
+ display: flex;
116
+ align-items: center;
117
+ justify-content: center;
118
+ margin: 0 auto 30px;
119
+ position: relative;
120
+ z-index: 1;
121
  }
122
 
123
  #startStopButton:hover {
124
+ background: linear-gradient(135deg, var(--hover-bg-color) 0%, #28b475 100%);
125
+ transform: translateY(-2px);
126
+ box-shadow: 0 5px 15px var(--hover-shadow-color);
127
  }
128
 
129
  #startStopButton:active {
130
+ background: linear-gradient(135deg, var(--active-bg-color) 0%, #28b475 100%);
131
+ transform: translateY(0);
132
+ box-shadow: 0 2px 10px var(--shadow-color);
133
  }
134
 
135
  #startStopButton svg {
136
+ margin-right: 10px;
137
  }
138
 
139
  .settings {
140
+ display: grid;
141
+ grid-template-columns: 1fr 1fr 1.5fr;
142
+ gap: 20px;
143
+ margin-bottom: 30px;
144
+ position: relative;
145
+ z-index: 1;
146
  }
147
 
148
  .setting {
149
+ text-align: left;
150
+ position: relative;
151
+ /* Added for tooltip positioning */
152
  }
153
 
154
  .setting label {
155
+ display: block;
156
+ margin-bottom: 5px;
157
+ font-weight: 700;
158
+ color: var(--text-color);
159
  }
160
 
161
  select,
162
  input[type="password"] {
163
+ width: 100%;
164
+ padding: 10px;
165
+ border: 1px solid var(--border-color);
166
+ border-radius: 5px;
167
+ font-size: 1rem;
168
+ background-color: #fff;
169
+ color: var(--text-color);
170
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
171
+ transition: all 0.3s ease;
172
  }
173
 
174
  select:hover,
175
  input[type="password"]:hover {
176
+ border-color: var(--primary-color);
177
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
178
  }
179
 
180
  .tooltip {
181
+ display: none;
182
+ position: absolute;
183
+ background-color: var(--tooltip-bg-color);
184
+ color: var(--tooltip-text-color);
185
+ padding: 5px;
186
+ border-radius: 5px;
187
+ font-size: 0.8rem;
188
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
189
  }
190
 
191
  .setting:hover .tooltip {
192
+ display: block;
193
+ /* Show tooltip on hover */
194
  }
195
 
196
  #transcript {
197
+ background: linear-gradient(135deg, #f9f9f9 0%, #e6e6e6 100%);
198
+ border-radius: 10px;
199
+ padding: 20px;
200
+ margin-top: 60px;
201
+ text-align: left;
202
+ font-family: 'Courier New', monospace;
203
+ white-space: pre-wrap;
204
+ max-height: 200px;
205
+ overflow-y: auto;
206
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
207
+ position: relative;
208
+ z-index: 1;
209
  }
210
 
211
  @media (max-width: 600px) {
212
+ .settings {
213
+ grid-template-columns: 1fr;
214
+ }
215
  }