2025-02-08 22:29:25 +03:00
|
|
|
html, body {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
2025-04-14 14:57:01 +03:00
|
|
|
font-family: 'Helvetica Neue', Arial, sans-serif;
|
|
|
|
background-color: #1e1f22;
|
|
|
|
color: #e1e1e1;
|
|
|
|
}
|
|
|
|
|
|
|
|
* {
|
|
|
|
box-sizing: border-box;
|
|
|
|
transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
height: 100%;
|
|
|
|
padding: 20px;
|
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
/* Messages area */
|
2025-02-08 22:29:25 +03:00
|
|
|
#messages {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 15px;
|
|
|
|
overflow-y: auto;
|
2025-04-14 14:57:01 +03:00
|
|
|
border: 1px solid #333b41;
|
|
|
|
background-color: #2c2f36;
|
2025-02-08 22:29:25 +03:00
|
|
|
border-radius: 10px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2025-04-14 14:57:01 +03:00
|
|
|
gap: 10px;
|
|
|
|
margin-bottom: 20px;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
.message-row {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
gap: 10px;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.profile-pic {
|
|
|
|
width: 50px;
|
|
|
|
height: 50px;
|
|
|
|
border-radius: 50%;
|
|
|
|
object-fit: cover;
|
|
|
|
flex-shrink: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-bubble {
|
|
|
|
background-color: #444c56;
|
|
|
|
padding: 10px 15px;
|
2025-02-08 22:29:25 +03:00
|
|
|
border-radius: 20px;
|
2025-04-14 14:57:01 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 8px;
|
|
|
|
word-break: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message-bubble p {
|
|
|
|
margin: 0;
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Media content */
|
|
|
|
.media-img,
|
|
|
|
.media-video {
|
|
|
|
width: 500px;
|
|
|
|
height: 500px;
|
|
|
|
object-fit: cover;
|
|
|
|
border-radius: 10px;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
/* Input section */
|
2025-02-08 22:29:25 +03:00
|
|
|
.input-container {
|
|
|
|
display: flex;
|
|
|
|
gap: 10px;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"] {
|
2025-04-14 14:57:01 +03:00
|
|
|
flex-grow: 1;
|
2025-02-08 22:29:25 +03:00
|
|
|
padding: 10px;
|
|
|
|
border-radius: 20px;
|
2025-04-14 14:57:01 +03:00
|
|
|
border: 1px solid #444c56;
|
|
|
|
background-color: #2c2f36;
|
|
|
|
color: #e1e1e1;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
input[type="text"]:focus {
|
|
|
|
outline: none;
|
2025-04-14 14:57:01 +03:00
|
|
|
border-color: #4c8bf5;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
/* Button styles */
|
2025-02-08 22:29:25 +03:00
|
|
|
button {
|
|
|
|
padding: 10px 20px;
|
|
|
|
border: none;
|
2025-04-14 14:57:01 +03:00
|
|
|
border-radius: 20px;
|
|
|
|
background-color: #4c8bf5;
|
2025-02-08 22:29:25 +03:00
|
|
|
color: white;
|
|
|
|
cursor: pointer;
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
|
|
|
button:hover {
|
|
|
|
background-color: #3978d1;
|
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
button:active {
|
2025-02-08 22:29:25 +03:00
|
|
|
background-color: #2962a1;
|
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
/* Settings overlay */
|
2025-02-08 22:29:25 +03:00
|
|
|
#settings {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2025-04-14 14:57:01 +03:00
|
|
|
background-color: rgba(0, 0, 0, 0.7);
|
2025-02-08 22:29:25 +03:00
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
/* Settings content */
|
2025-02-08 22:29:25 +03:00
|
|
|
.settings-content {
|
2025-04-14 14:57:01 +03:00
|
|
|
background-color: #2c2f36;
|
2025-02-08 22:29:25 +03:00
|
|
|
padding: 20px;
|
|
|
|
border-radius: 10px;
|
|
|
|
width: 300px;
|
2025-04-14 14:57:01 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 10px;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.settings-content h2 {
|
|
|
|
margin-top: 0;
|
2025-04-14 14:57:01 +03:00
|
|
|
color: #e1e1e1;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
/* Modal styles */
|
|
|
|
#mediaModal {
|
|
|
|
display: none;
|
|
|
|
position: fixed;
|
|
|
|
z-index: 1000;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
2025-02-08 22:29:25 +03:00
|
|
|
width: 100%;
|
2025-04-14 14:57:01 +03:00
|
|
|
height: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
background-color: rgba(0,0,0,0.8);
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
padding: 20px;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|
|
|
|
|
2025-04-14 14:57:01 +03:00
|
|
|
#mediaModal img,
|
|
|
|
#mediaModal video {
|
|
|
|
max-width: 90%;
|
|
|
|
max-height: 90%;
|
|
|
|
border-radius: 10px;
|
|
|
|
object-fit: contain;
|
|
|
|
}
|
|
|
|
|
|
|
|
#mediaModal .close-btn {
|
|
|
|
position: absolute;
|
|
|
|
top: 20px;
|
|
|
|
right: 30px;
|
|
|
|
font-size: 30px;
|
|
|
|
color: white;
|
|
|
|
cursor: pointer;
|
|
|
|
z-index: 1001;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* ============================= */
|
|
|
|
/* Light Theme */
|
|
|
|
/* ============================= */
|
|
|
|
body.light-theme {
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
color: #1a1a1a;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme #messages {
|
|
|
|
background-color: #ffffff;
|
|
|
|
border-color: #dcdcdc;
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme .message-bubble {
|
|
|
|
background-color: #f1f3f5;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme input[type="text"] {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #1a1a1a;
|
|
|
|
border-color: #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme input[type="text"]:focus {
|
|
|
|
border-color: #4c8bf5;
|
|
|
|
box-shadow: 0 0 0 2px rgba(76, 139, 245, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme button {
|
|
|
|
background-color: #4c8bf5;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme button:hover {
|
|
|
|
background-color: #3978d1;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme button:active {
|
|
|
|
background-color: #2962a1;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme .settings-content {
|
|
|
|
background-color: #ffffff;
|
|
|
|
color: #1a1a1a;
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme .settings-content h2 {
|
|
|
|
color: #1a1a1a;
|
|
|
|
}
|
|
|
|
|
|
|
|
body.light-theme .media-img,
|
|
|
|
body.light-theme .media-video {
|
|
|
|
border: 1px solid #ddd;
|
2025-02-08 22:29:25 +03:00
|
|
|
}
|