1207 lines
20 KiB
CSS
1207 lines
20 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: #0e1621;
|
|
color: #ffffff;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#app {
|
|
width: 100%;
|
|
height: 100vh;
|
|
background: #17212b;
|
|
}
|
|
|
|
/* Auth Screen - Green Telegram style */
|
|
.auth-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100vh;
|
|
background: linear-gradient(135deg, #17212b 0%, #0e1621 100%);
|
|
}
|
|
|
|
.auth-box {
|
|
background: #17212b;
|
|
padding: 40px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
border: 1px solid #242f3d;
|
|
}
|
|
|
|
.auth-box h1 {
|
|
color: #43b581;
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
#auth-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.auth-input {
|
|
background: #242f3d;
|
|
border: 1px solid #242f3d;
|
|
color: #ffffff;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.auth-input:focus {
|
|
outline: none;
|
|
border-color: #43b581;
|
|
background: #17212b;
|
|
}
|
|
|
|
.auth-input::placeholder {
|
|
color: #7f91a4;
|
|
}
|
|
|
|
.auth-btn {
|
|
background: #43b581;
|
|
border: none;
|
|
color: white;
|
|
padding: 14px;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.auth-btn:hover {
|
|
background: #3aa373;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.auth-btn.register-btn {
|
|
background: #242f3d;
|
|
color: #43b581;
|
|
}
|
|
|
|
.auth-btn.register-btn:hover {
|
|
background: #2f3b49;
|
|
}
|
|
|
|
.auth-message {
|
|
margin-top: 12px;
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
display: none;
|
|
}
|
|
|
|
.auth-message.error {
|
|
display: block;
|
|
background: rgba(240, 71, 71, 0.15);
|
|
color: #f04747;
|
|
}
|
|
|
|
.auth-message.success {
|
|
display: block;
|
|
background: rgba(67, 181, 129, 0.15);
|
|
color: #43b581;
|
|
}
|
|
|
|
/* Chat Container */
|
|
.chat-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* Servers Bar - Green */
|
|
.servers-bar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: #17212b;
|
|
padding: 8px 0;
|
|
width: 72px;
|
|
border-right: 1px solid #0e1621;
|
|
}
|
|
|
|
.servers-bar .server-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: linear-gradient(135deg, #43b581, #2d7a4f);
|
|
border-radius: 50%;
|
|
margin-bottom: 12px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 18px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.servers-bar .server-icon:hover {
|
|
border-radius: 16px;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.create-server-btn {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: #242f3d;
|
|
color: #43b581;
|
|
border-radius: 50%;
|
|
font-size: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.create-server-btn:hover {
|
|
background: #2f3b49;
|
|
border-radius: 16px;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #17212b;
|
|
border-right: 1px solid #0e1621;
|
|
width: 320px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.server-header {
|
|
padding: 16px;
|
|
border-bottom: 1px solid #242f3d;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #242f3d;
|
|
gap: 12px;
|
|
}
|
|
|
|
.server-name {
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
flex: 1;
|
|
}
|
|
|
|
.logout-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #7f91a4;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
padding: 6px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.logout-btn:hover {
|
|
background: #17212b;
|
|
color: #f04747;
|
|
}
|
|
|
|
.sidebar-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
padding: 12px;
|
|
border-bottom: 1px solid #242f3d;
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
background: #242f3d;
|
|
border: none;
|
|
color: #7f91a4;
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
border-radius: 8px;
|
|
font-weight: 500;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
background: #2f3b49;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: #43b581;
|
|
color: white;
|
|
}
|
|
|
|
.tab-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.channels {
|
|
padding: 8px;
|
|
border-bottom: 1px solid #242f3d;
|
|
}
|
|
|
|
.channel {
|
|
padding: 12px 16px;
|
|
color: #ffffff;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
border-radius: 8px;
|
|
margin-bottom: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.channel:hover {
|
|
background: #242f3d;
|
|
}
|
|
|
|
.channel.active {
|
|
background: #43b581;
|
|
color: white;
|
|
}
|
|
|
|
.create-channel-btn {
|
|
font-style: italic;
|
|
color: #43b581;
|
|
}
|
|
|
|
.dm-header {
|
|
padding: 16px 16px 8px;
|
|
color: #7f91a4;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.dm-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 8px 8px;
|
|
}
|
|
|
|
.dm-user, .friend-item {
|
|
padding: 12px 16px;
|
|
color: #ffffff;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
transition: all 0.2s;
|
|
margin-bottom: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.dm-user:hover, .friend-item:hover {
|
|
background: #242f3d;
|
|
}
|
|
|
|
.dm-user.active {
|
|
background: #43b581;
|
|
color: white;
|
|
}
|
|
|
|
/* Avatars - Round like Telegram */
|
|
.msg-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
margin-right: 8px;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* User Badges */
|
|
.user-badge {
|
|
display: inline-block;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
padding: 2px 8px;
|
|
border-radius: 12px;
|
|
margin-left: 8px;
|
|
vertical-align: middle;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.user-badge.dev {
|
|
background: #9b59b6;
|
|
color: white;
|
|
}
|
|
|
|
.user-badge.admin {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.user-badge.bot {
|
|
background: #3498db;
|
|
color: white;
|
|
}
|
|
|
|
.user-badge.moderator {
|
|
background: #2ecc71;
|
|
color: white;
|
|
}
|
|
|
|
.user-badge.vip {
|
|
background: #f39c12;
|
|
color: white;
|
|
}
|
|
|
|
/* Friends Section */
|
|
.friends-section {
|
|
padding: 16px;
|
|
border-bottom: 1px solid #242f3d;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: #7f91a4;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.add-friend-btn {
|
|
background: #43b581;
|
|
border: none;
|
|
color: white;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.add-friend-btn:hover {
|
|
background: #3aa373;
|
|
}
|
|
|
|
.friend-requests-list, .friends-list {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.friend-request-item {
|
|
padding: 12px;
|
|
background: #242f3d;
|
|
border-radius: 8px;
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.friend-request-item span {
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.request-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.accept-btn, .reject-btn {
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.accept-btn {
|
|
background: #43b581;
|
|
color: white;
|
|
}
|
|
|
|
.reject-btn {
|
|
background: #f04747;
|
|
color: white;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 20px;
|
|
color: #7f91a4;
|
|
font-size: 14px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Main Content - Telegram style */
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #0e1621;
|
|
}
|
|
|
|
.chat-header {
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid #242f3d;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background: #17212b;
|
|
gap: 12px;
|
|
}
|
|
|
|
.chat-header h2 {
|
|
color: #ffffff;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.current-user {
|
|
color: #7f91a4;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.profile-btn {
|
|
background: #43b581;
|
|
border: none;
|
|
color: white;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.profile-btn:hover {
|
|
background: #3aa373;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Messages Container */
|
|
.messages-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Message - Telegram bubble style with proper wrapping */
|
|
.message {
|
|
display: flex;
|
|
gap: 12px;
|
|
max-width: 75%;
|
|
position: relative;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.message.own {
|
|
align-self: flex-end;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.message-body {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.message-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.message-author {
|
|
color: #43b581;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.message.own .message-author {
|
|
color: #64d2ff;
|
|
}
|
|
|
|
.msg-pronouns {
|
|
font-size: 0.75rem;
|
|
color: #5a6570; /* более тусклый цвет */
|
|
font-style: italic; /* только курсив */
|
|
font-weight: normal; /* без жирности */
|
|
margin-left: 6px; /* увеличенный отступ */
|
|
opacity: 0.7; /* дополнительная тусклость */
|
|
}
|
|
|
|
.message-time {
|
|
color: #7f91a4;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.message.own .message-time {
|
|
color: #8fa8c1;
|
|
}
|
|
|
|
/* Message bubble */
|
|
.message-content-wrapper {
|
|
background: #17212b;
|
|
padding: 8px 12px;
|
|
border-radius: 12px;
|
|
border-bottom-left-radius: 4px;
|
|
border: 1px solid #242f3d;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
overflow-wrap: break-word;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.message.own .message-content-wrapper {
|
|
background: #43b581;
|
|
border-bottom-left-radius: 12px;
|
|
border-bottom-right-radius: 4px;
|
|
border-color: #43b581;
|
|
}
|
|
|
|
.message-content {
|
|
color: #ffffff;
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
overflow-wrap: break-word;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.message.own .message-content {
|
|
color: white;
|
|
}
|
|
|
|
/* Message Actions */
|
|
.message-actions {
|
|
position: absolute;
|
|
top: -8px;
|
|
right: 8px;
|
|
display: none;
|
|
gap: 4px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.message.own .message-actions {
|
|
right: auto;
|
|
left: 8px;
|
|
}
|
|
|
|
.message:hover .message-actions {
|
|
display: flex;
|
|
}
|
|
|
|
.msg-reply-btn {
|
|
background: #242f3d;
|
|
border: none;
|
|
color: #43b581;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.msg-reply-btn:hover {
|
|
background: #43b581;
|
|
color: white;
|
|
}
|
|
|
|
/* Reply Indicator */
|
|
.reply-indicator {
|
|
border-left: 3px solid #43b581;
|
|
padding-left: 10px;
|
|
margin-bottom: 8px;
|
|
color: #7f91a4;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.reply-indicator:hover {
|
|
color: #43b581;
|
|
}
|
|
|
|
/* Message Input Area */
|
|
.message-input-area {
|
|
padding: 16px 20px;
|
|
border-top: 1px solid #242f3d;
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
background: #17212b;
|
|
}
|
|
|
|
.file-input-hidden {
|
|
display: none;
|
|
}
|
|
|
|
.attach-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: #43b581;
|
|
font-size: 22px;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: 50%;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.attach-btn:hover {
|
|
background: #242f3d;
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.file-preview {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #242f3d;
|
|
background: #242f3d;
|
|
display: none;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.file-preview-text {
|
|
color: #ffffff;
|
|
font-size: 14px;
|
|
word-break: break-all;
|
|
flex: 1;
|
|
}
|
|
|
|
.file-preview-clear {
|
|
background: transparent;
|
|
border: none;
|
|
color: #7f91a4;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
padding: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.file-preview-clear:hover {
|
|
color: #f04747;
|
|
}
|
|
|
|
/* Reply Preview */
|
|
.reply-preview {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid #242f3d;
|
|
background: #242f3d;
|
|
display: none;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
border-left: 3px solid #43b581;
|
|
}
|
|
|
|
.reply-preview-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
flex: 1;
|
|
}
|
|
|
|
.reply-preview-label {
|
|
color: #43b581;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.reply-preview-text {
|
|
color: #7f91a4;
|
|
font-size: 14px;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.reply-cancel-btn {
|
|
background: transparent;
|
|
border: none;
|
|
color: #7f91a4;
|
|
cursor: pointer;
|
|
font-size: 20px;
|
|
padding: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.reply-cancel-btn:hover {
|
|
color: #f04747;
|
|
}
|
|
|
|
.message-input {
|
|
flex: 1;
|
|
background: #242f3d;
|
|
border: 1px solid #242f3d;
|
|
color: #ffffff;
|
|
padding: 12px 16px;
|
|
border-radius: 20px;
|
|
font-size: 15px;
|
|
font-family: inherit;
|
|
resize: none;
|
|
height: 44px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.message-input:focus {
|
|
outline: none;
|
|
border-color: #43b581;
|
|
background: #17212b;
|
|
}
|
|
|
|
.message-input::placeholder {
|
|
color: #7f91a4;
|
|
}
|
|
|
|
.send-btn {
|
|
background: #43b581;
|
|
border: none;
|
|
color: white;
|
|
padding: 12px 24px;
|
|
border-radius: 20px;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.send-btn:hover {
|
|
background: #3aa373;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Unread Badge */
|
|
.unread-badge {
|
|
background: #f04747;
|
|
color: white;
|
|
border-radius: 10px;
|
|
padding: 2px 8px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #0e1621;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #242f3d;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #2f3b49;
|
|
}
|
|
|
|
/* Sending state styles */
|
|
.btn-disabled {
|
|
opacity: 0.6 !important;
|
|
cursor: not-allowed !important;
|
|
background: #365b3f !important;
|
|
transform: none !important;
|
|
}
|
|
|
|
.input-disabled {
|
|
background: #2f3b49 !important;
|
|
border-color: #365b3f !important;
|
|
opacity: 0.7 !important;
|
|
cursor: not-allowed !important;
|
|
color: #7f91a4 !important;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 1000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
backdrop-filter: blur(4px);
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.modal-content {
|
|
background: #17212b;
|
|
padding: 32px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
width: 100%;
|
|
max-width: 420px;
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
border: 1px solid #242f3d;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
color: #ffffff;
|
|
margin-bottom: 20px;
|
|
font-size: 20px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.close-modal {
|
|
color: #7f91a4;
|
|
float: right;
|
|
font-size: 28px;
|
|
cursor: pointer;
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.close-modal:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.modal-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.friend-input {
|
|
background: #242f3d;
|
|
border: 1px solid #242f3d;
|
|
color: #ffffff;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.friend-input:focus {
|
|
outline: none;
|
|
border-color: #43b581;
|
|
}
|
|
|
|
.modal-submit-btn {
|
|
background: #43b581;
|
|
border: none;
|
|
color: white;
|
|
padding: 14px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.modal-submit-btn:hover {
|
|
background: #3aa373;
|
|
}
|
|
|
|
.modal-error {
|
|
padding: 12px;
|
|
border-radius: 8px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
display: none;
|
|
}
|
|
|
|
.modal-error.show {
|
|
display: block;
|
|
background: rgba(240, 71, 71, 0.15);
|
|
color: #f04747;
|
|
}
|
|
|
|
.modal-error.show.success {
|
|
background: rgba(67, 181, 129, 0.15);
|
|
color: #43b581;
|
|
}
|
|
|
|
/* User Profile Modal */
|
|
/* User Profile Modal - FIXED */
|
|
.user-profile-modal {
|
|
z-index: 2000;
|
|
}
|
|
|
|
.user-profile-content {
|
|
background: #1e3c2a;
|
|
border-radius: 12px;
|
|
width: 340px;
|
|
overflow: hidden;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
border: 1px solid #5a8f56;
|
|
}
|
|
|
|
.user-profile-header {
|
|
position: relative;
|
|
height: 100px;
|
|
}
|
|
|
|
.user-profile-banner {
|
|
height: 100%;
|
|
background: linear-gradient(135deg, #43b581, #2d7a4f);
|
|
}
|
|
|
|
.user-profile-close {
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
color: white;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.user-profile-close:hover {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.user-profile-body {
|
|
padding: 0 20px 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.user-profile-avatar-container {
|
|
position: absolute;
|
|
top: -50px;
|
|
left: 20px;
|
|
}
|
|
|
|
.user-profile-avatar {
|
|
width: 100px;
|
|
height: 100px;
|
|
border-radius: 50%;
|
|
border: 4px solid #1e3c2a;
|
|
object-fit: cover;
|
|
background: #2b542f;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.user-profile-info {
|
|
padding-top: 55px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid #365b3f;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.user-profile-username {
|
|
color: #ffffff;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
margin: 0;
|
|
}
|
|
|
|
.user-profile-pronouns {
|
|
color: #8b949e;
|
|
font-size: 13px;
|
|
margin-top: 4px;
|
|
display: block;
|
|
}
|
|
|
|
.user-profile-description {
|
|
color: #d4e6d3;
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
margin-top: 8px;
|
|
min-height: 20px;
|
|
}
|
|
|
|
.user-profile-description:empty::before {
|
|
content: 'Нет описания';
|
|
color: #8b949e;
|
|
font-style: italic;
|
|
}
|
|
|
|
.user-profile-add-friend-btn {
|
|
width: 100%;
|
|
margin-top: 16px;
|
|
padding: 12px;
|
|
background: #43b581;
|
|
border: none;
|
|
border-radius: 8px;
|
|
color: white;
|
|
font-size: 15px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.user-profile-add-friend-btn:hover {
|
|
background: #3aa373;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.user-profile-add-friend-btn:disabled {
|
|
background: #365b3f;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.user-profile-add-friend-btn.added {
|
|
background: #365b3f;
|
|
}
|
|
|
|
/* Sending state styles */
|
|
.btn-disabled {
|
|
opacity: 0.6 !important;
|
|
cursor: not-allowed !important;
|
|
background: #365b3f !important;
|
|
transform: none !important;
|
|
}
|
|
|
|
.input-disabled {
|
|
background: #2f3b49 !important;
|
|
border-color: #365b3f !important;
|
|
opacity: 0.7 !important;
|
|
cursor: not-allowed !important;
|
|
color: #7f91a4 !important;
|
|
}
|
|
|
|
/* Sidebar Toggle */
|
|
.sidebar-toggle {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 99;
|
|
}
|
|
|
|
.sidebar-overlay.show {
|
|
display: block;
|
|
}
|
|
|
|
/* Media attachments */
|
|
.msg-image, .msg-video, .msg-audio {
|
|
display: block;
|
|
margin-top: 8px;
|
|
max-width: 100%;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.message {
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.servers-bar {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 320px;
|
|
position: fixed;
|
|
height: 100%;
|
|
z-index: 100;
|
|
left: -320px;
|
|
transition: left 0.3s ease;
|
|
}
|
|
|
|
.sidebar.open {
|
|
left: 0;
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: #242f3d;
|
|
border-radius: 8px;
|
|
color: #43b581;
|
|
font-size: 20px;
|
|
cursor: pointer;
|
|
position: fixed;
|
|
top: 12px;
|
|
left: 12px;
|
|
z-index: 101;
|
|
}
|
|
|
|
.main-content {
|
|
width: 100%;
|
|
}
|
|
|
|
.message {
|
|
max-width: 85%;
|
|
}
|
|
} |