File size: 5,147 Bytes
1fff71f
 
ee67a7f
1fff71f
 
 
ee67a7f
 
 
 
 
 
 
 
 
 
 
 
1fff71f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2e18bf2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
/* Custom CSS for PrepMate Webapp */
/* Feature: 012-profile-contact-ui */
/* Feature: 013-ui-cleanup-header - Content width expansion */

/* Mobile-first responsive design - 320px+ screens */

/* Content Width Expansion - 013-ui-cleanup-header */
.container {
    max-width: 90% !important;
}

/* Mobile Adjustment: Slightly narrower for readability */
@media (max-width: 768px) {
    .container {
        max-width: 95% !important;
    }
}

/* Global styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Mobile breakpoint - 320px+ */
@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Tablet breakpoint - 768px+ */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

/* Desktop breakpoint - 992px+ */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

/* Loading indicators */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border-lg {
    width: 3rem;
    height: 3rem;
}

/* Contact list styles */
.contact-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-card:hover {
    background-color: #f8f9fa;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.contact-card-active {
    border-left: 4px solid var(--primary-color);
    background-color: #e7f1ff;
}

/* Message styles */
.message-container {
    max-height: 60vh;
    overflow-y: auto;
}

.message-user {
    background-color: #e7f1ff;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.message-assistant {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Fact styles */
.fact-card {
    border-left: 3px solid var(--info-color);
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.fact-card:hover {
    background-color: #e9ecef;
}

.fact-message {
    margin-bottom: 0.5rem !important;
}

/* Character counter */
.char-counter {
    font-size: 0.875rem;
    color: var(--secondary-color);
}

.char-counter.warning {
    color: var(--warning-color);
}

.char-counter.danger {
    color: var(--danger-color);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--secondary-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Error banner */
.error-banner {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 300px;
    max-width: 90%;
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
}

/* Sync Status Indicators - Feature: 012-realtime-message-display */
/* T016-T018: Visual feedback for optimistic UI updates */

.sync-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    margin-left: 0.5rem;
    min-width: 1.25rem;
}

/* T016: Pending state - message awaiting backend confirmation */
.sync-indicator.pending {
    opacity: 0.7;
    color: var(--info-color);
}

.message-pending {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* T017: Confirmed state - message successfully synced */
.sync-indicator.confirmed {
    opacity: 1.0;
    color: var(--success-color);
}

/* T018: Failed state - sync error, needs retry */
.sync-indicator.failed {
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    border-radius: 0.25rem;
    padding: 0.125rem 0.375rem;
    cursor: pointer;
    background-color: rgba(220, 53, 69, 0.1);
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.sync-indicator.failed:hover {
    background-color: rgba(220, 53, 69, 0.2);
    transform: scale(1.05);
}

.message-failed {
    border-left: 3px solid var(--danger-color) !important;
    background-color: rgba(220, 53, 69, 0.05);
}

/* Retry button styling */
.retry-btn {
    border: none;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.retry-btn:hover {
    text-decoration: underline;
}