414 lines
6.7 KiB
CSS
414 lines
6.7 KiB
CSS
.chat-container {
|
|
display: flex;
|
|
height: 100%;
|
|
background: rgba(5, 8, 12, 0.9);
|
|
border: 1px solid var(--border-color);
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.chat-sidebar {
|
|
width: 300px;
|
|
border-right: 1px solid var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: all 0.3s ease;
|
|
z-index: 2;
|
|
background: rgba(10, 15, 24, 0.6);
|
|
}
|
|
|
|
.chat-main {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
position: relative;
|
|
}
|
|
|
|
/* SEARCH SECTION */
|
|
.search-section {
|
|
padding: 20px 15px 15px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
|
|
.search-input-wrapper {
|
|
display: flex;
|
|
gap: 5px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.search-input-wrapper input {
|
|
flex: 1;
|
|
background: #05080c;
|
|
border: 1px solid var(--border-color);
|
|
color: #fff;
|
|
padding: 8px;
|
|
font-size: 12px;
|
|
font-family: "Geologica", sans-serif;
|
|
}
|
|
|
|
.search-results-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 15px;
|
|
right: 15px;
|
|
background: #0a0f18;
|
|
border: 1px solid var(--primary-color);
|
|
border-top: none;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
|
|
}
|
|
|
|
.search-result-item {
|
|
padding: 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.search-result-item:hover {
|
|
background: rgba(0, 212, 255, 0.1);
|
|
}
|
|
|
|
/* CHAT LIST & ITEMS */
|
|
.chats-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.friends-section-label {
|
|
padding: 20px 15px 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.label-text {
|
|
font-size: 10px;
|
|
letter-spacing: 2px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.label-line {
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--border-color);
|
|
}
|
|
|
|
.chat-item {
|
|
padding: 12px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.02);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.chat-item:hover {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.chat-item.active {
|
|
background: rgba(0, 212, 255, 0.1);
|
|
box-shadow: inset 4px 0 0 var(--primary-color);
|
|
}
|
|
|
|
.chat-item-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-dot.online {
|
|
background: #00ff88;
|
|
box-shadow: 0 0 5px #00ff88;
|
|
}
|
|
|
|
.status-dot.offline {
|
|
background: #444;
|
|
}
|
|
|
|
.unfriend-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.2);
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
opacity: 0;
|
|
}
|
|
|
|
.chat-item:hover .unfriend-btn {
|
|
opacity: 1;
|
|
}
|
|
|
|
.unfriend-btn:hover {
|
|
color: #ff3e3e;
|
|
text-shadow: 0 0 8px rgba(255, 62, 62, 0.4);
|
|
}
|
|
|
|
/* CHAT MAIN AREA */
|
|
.chat-header {
|
|
padding: 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: rgba(10, 15, 24, 0.8);
|
|
}
|
|
|
|
.active-chat-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.active-chat-info i {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.chat-messages {
|
|
flex: 1;
|
|
padding: 15px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.message {
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.msg-time {
|
|
color: rgba(255, 255, 255, 0.3);
|
|
margin-right: 8px;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.msg-author {
|
|
color: var(--primary-color);
|
|
font-weight: bold;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.message.system .msg-author {
|
|
color: #ff3e3e;
|
|
}
|
|
|
|
.message.system .msg-text {
|
|
color: #888;
|
|
font-style: italic;
|
|
}
|
|
|
|
.chat-input-area {
|
|
padding: 15px;
|
|
background: #05080c;
|
|
display: flex;
|
|
gap: 10px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.chat-input-area input {
|
|
flex: 1;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid var(--border-color);
|
|
color: #fff;
|
|
padding: 10px 15px;
|
|
outline: none;
|
|
}
|
|
|
|
.send-btn {
|
|
background: transparent;
|
|
border: 1px solid var(--primary-color);
|
|
color: var(--primary-color);
|
|
padding: 0 20px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.send-btn:hover {
|
|
background: var(--primary-color);
|
|
color: #000;
|
|
}
|
|
|
|
/* MODAL STYLES */
|
|
.modal-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 100;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.modal-content {
|
|
background: #0a0f18;
|
|
border: 1px solid #ff3e3e;
|
|
padding: 25px;
|
|
width: 90%;
|
|
max-width: 350px;
|
|
text-align: center;
|
|
box-shadow: 0 0 30px rgba(255, 62, 62, 0.15);
|
|
}
|
|
|
|
.modal-content h3 {
|
|
color: #ff3e3e;
|
|
margin-bottom: 15px;
|
|
font-size: 14px;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.modal-content p {
|
|
color: #aaa;
|
|
font-size: 13px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.confirm-btn,
|
|
.cancel-btn {
|
|
flex: 1;
|
|
padding: 10px;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.confirm-btn {
|
|
background: rgba(255, 62, 62, 0.1);
|
|
border: 1px solid #ff3e3e;
|
|
color: #ff3e3e;
|
|
}
|
|
|
|
.confirm-btn:hover {
|
|
background: #ff3e3e;
|
|
color: #fff;
|
|
}
|
|
|
|
.cancel-btn {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border: 1px solid var(--border-color);
|
|
color: #fff;
|
|
}
|
|
|
|
/* MOBILE RESPONSIVENESS */
|
|
@media (max-width: 768px) {
|
|
.chat-sidebar {
|
|
width: 100%;
|
|
position: absolute;
|
|
height: 100%;
|
|
background: #0a0f18;
|
|
}
|
|
|
|
.chat-sidebar.hidden {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.chat-main {
|
|
width: 100%;
|
|
position: absolute;
|
|
height: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.chat-main.hidden {
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.back-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--primary-color);
|
|
font-size: 1.2rem;
|
|
padding: 0 15px 0 0;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
/* Контейнер елемента списку */
|
|
.chat-item {
|
|
padding: 12px 15px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.02);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.chat-item:hover {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.chat-item.active {
|
|
background: rgba(0, 212, 255, 0.1);
|
|
box-shadow: inset 4px 0 0 var(--primary-color);
|
|
}
|
|
|
|
.chat-item-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex: 1;
|
|
}
|
|
|
|
.unfriend-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.3);
|
|
padding: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
opacity: 0;
|
|
}
|
|
|
|
@media (min-width: 769px) {
|
|
.chat-item:hover .unfriend-btn {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.unfriend-btn {
|
|
opacity: 1;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
padding: 12px;
|
|
}
|
|
|
|
.chat-item {
|
|
padding: 15px;
|
|
}
|
|
}
|
|
|
|
.unfriend-btn:hover {
|
|
color: #ff3e3e;
|
|
text-shadow: 0 0 8px rgba(255, 62, 62, 0.4);
|
|
}
|