-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
143 lines (130 loc) · 3.48 KB
/
style.css
File metadata and controls
143 lines (130 loc) · 3.48 KB
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
/* htdocs/css/style.css */
:root {
/* Light Theme Variables */
--bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
--glass-bg: rgba(255, 255, 255, 0.7);
--glass-border: rgba(255, 255, 255, 0.5);
--text-main: #333;
--text-secondary: #555;
--card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
--primary-color: #667eea;
}
[data-theme="dark"] {
/* Dark Theme Variables */
--bg-gradient: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
--glass-bg: rgba(0, 0, 0, 0.6);
--glass-border: rgba(255, 255, 255, 0.1);
--text-main: #eee;
--text-secondary: #ccc;
--card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
--primary-color: #764ba2;
}
body {
background: var(--bg-gradient);
color: var(--text-main);
font-family: 'Poppins', sans-serif;
min-height: 100vh;
transition: background 0.5s ease;
overflow-x: hidden;
}
/* --- Glass Components --- */
.glass-panel {
background: var(--glass-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--glass-border);
border-radius: 15px;
box-shadow: var(--card-shadow);
transition: all 0.3s ease;
}
/* --- Navbar --- */
.navbar-custom {
background: var(--glass-bg);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--glass-border);
}
/* --- Chat System --- */
.chat-container {
height: 80vh;
display: flex;
flex-direction: column;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 15px;
scrollbar-width: thin;
}
.chat-message {
margin-bottom: 10px;
animation: fadeIn 0.3s ease;
}
.message-bubble {
padding: 8px 12px;
border-radius: 15px;
background: rgba(255, 255, 255, 0.5);
display: inline-block;
max-width: 85%;
font-size: 0.9rem;
}
[data-theme="dark"] .message-bubble {
background: rgba(255, 255, 255, 0.1);
}
.my-message {
text-align: right;
}
.my-message .message-bubble {
background: var(--primary-color);
color: white;
}
/* --- File Upload Area --- */
.upload-area {
border: 2px dashed var(--primary-color);
padding: 30px;
text-align: center;
border-radius: 15px;
cursor: pointer;
transition: 0.3s;
background: rgba(255,255,255,0.1);
}
.upload-area:hover {
background: rgba(102, 126, 234, 0.1);
}
/* --- File Cards --- */
.file-card {
transition: transform 0.2s;
}
.file-card:hover {
transform: translateY(-5px);
}
.file-icon {
font-size: 2.5rem;
color: var(--primary-color);
}
/* --- Animations --- */
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 10px; }
/* --- Admin Specific Styles --- */
.admin-avatar-pulse {
box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
animation: goldPulse 2s infinite;
border: 2px solid gold;
}
@keyframes goldPulse {
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}
/* Make Admin Chat Messages Gold/Distinct */
.admin-message-bubble {
background: linear-gradient(45deg, #FFD700, #FFA500) !important;
color: #000 !important;
font-weight: bold;
border: 1px solid #fff;
}