* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background-color: #f5f7fa;
}
.auth-screen {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #202c33;
color: white;
}
.auth-form {
background: white;
color: #222;
padding: 30px;
border-radius: 12px;
width: 90%;
max-width: 400px;
text-align: center;
}
.auth-form input {
width: 100%;
padding: 12px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 16px;
}
.btn {
padding: 10px 20px;
background-color: #111b21;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
margin-top: 10px;
transition: background-color 0.2s;
}
.btn:hover {
background-color: #202c33;
}
.btn-secondary {
background-color: #ccc;
color: #333;
}
.btn-secondary:hover {
background-color: #bbb;
}
.btn-small {
padding: 8px 16px;
font-size: 14px;
}
.logout-btn {
margin-top: auto;
width: 100%;
background-color: #d32f2f;
}
.logout-btn:hover {
background-color: #b71c1c;
}
.sidebar {
width: 240px;
background-color: #202c33;
color: white;
padding: 20px 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.logo {
padding: 0 20px 20px;
font-size: 20px;
font-weight: bold;
border-bottom: 1px solid #36454f;
}
.nav-item {
padding: 14px 20px;
color: white;
text-decoration: none;
transition: background-color 0.2s;
cursor: pointer;
}
.nav-item:hover {
background-color: #2a3942;
}
.main-content {
flex: 1;
padding: 30px;
overflow-y: auto;
}
.content-section {
display: none;
}
#profile {
display: block;
}
.profile-info {
display: flex;
align-items: flex-start;
gap: 30px;
}
.avatar img {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
border: 3px solid #ddd;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.profile-content {
flex: 1;
}
.my-posts-container .post-card {
background: white;
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
overflow: hidden;
max-width: 800px;
margin: 0 auto;
}
.my-posts-container .post-header {
padding: 16px;
display: flex;
align-items: center;
gap: 12px;
border-bottom: 1px solid #eee;
}
.my-posts-container .post-header img {
width: 48px;
height: 48px;
border-radius: 50%;
object-fit: cover;
border: 2px solid #ddd;
}
.my-posts-container .post-header .info {
flex: 1;
}
.my-posts-container .post-header .info strong {
font-size: 16px;
color: #333;
display: block;
}
.my-posts-container .post-header .info .date {
font-size: 13px;
color: #777;
margin-top: 2px;
}
.my-posts-container .post-image {
position: relative;
overflow: hidden;
}
.my-posts-container .post-image img {
width: 100%;
height: auto;
max-height: 600px;
object-fit: contain;
background: #f9f9f9;
padding: 8px;
box-sizing: border-box;
}
.edit-form {
display: none;
max-width: 500px;
background: white;
padding: 24px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.avatar-edit img {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 10px;
}
.form-field {
margin-bottom: 16px;
}
.form-field label {
display: block;
margin-bottom: 6px;
font-weight: bold;
}
.form-field input {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 6px;
font-size: 16px;
}
.form-buttons {
display: flex;
gap: 12px;
margin-top: 20px;
}
.search-box {
margin-bottom: 20px;
display: flex;
gap: 10px;
}
.search-box input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 6px;
}
.users-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.user-item {
padding: 12px;
background: white;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
transition: background-color 0.2s;
}
.user-item:hover {
background-color: #f0f4f8;
}
.user-item img {
width: 40px;
height: 40px;
border-radius: 50%;
object-fit: cover;
}
.chat-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
gap: 20px;
}
.messages-list {
flex: 1;
background: white;
padding: 16px;
border-radius: 10px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
overflow-y: auto;
max-height: 400px;
margin-bottom: 16px;
}
.message {
margin-bottom: 12px;
padding: 8px 12px;
border-radius: 8px;
max-width: 70%;
word-wrap: break-word;
}
.message.mine {
background-color: #dcf8c6;
margin-left: auto;
text-align: right;
}
.message.other {
background-color: #f1f0f0;
}
.message-input-box {
display: flex;
gap: 10px;
}
.message-input-box input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 6px;
}
.comment-item {
padding: 12px;
display: flex;
gap: 10px;
border-top: 1px solid #eee;
}
.comment-item img {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
}
.show-comments-btn {
margin: 0 16px 16px;
padding: 6px 12px;
font-size: 13px;
width: auto;
}
@media (max-width: 768px) {
.sidebar {
width: 60px;
padding: 10px 0;
}
.logo {
padding: 0 10px 10px;
font-size: 16px;
}
.nav-item {
padding: 10px;
font-size: 12px;
}
.main-content {
padding: 15px;
}
.profile-info {
flex-direction: column;
align-items: center;
}
.avatar img {
width: 100px;
height: 100px;
}
.profile-content {
width: 100%;
}
.profile-actions {
width: 100%;
flex-direction: column !important;
}
.btn-small {
width: 100%;
}
.search-box,
.message-input-box,
.chat-header {
flex-direction: column;
}
.message {
max-width: 85%;
}
.chat-header h2 {
font-size: 18px;
}
}
@media (max-width: 480px) {
.auth-form {
padding: 20px;
}
.sidebar {
width: 50px;
}
.logo {
display: none;
}
.main-content {
padding: 10px;
}
.my-posts-container .post-card {
max-width: 100%;
}
.profile-actions {
flex-direction: column !important;
}
.btn-small {
width: 100%;
}
}

.message-image {
    max-width: 250px;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}