/* 
 * Community Features Styles
 * Comprehensive styling for the community hub, groups, events, and social features
 */

/* ========== Main Layout ========== */
.community-page-wrapper {
  background: linear-gradient(135deg, #f0f4ff, #f5f3ff);
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
}

.community-layout {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
}

/* ========== Sidebar Styling ========== */
.community-sidebar {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-y: auto;
  max-height: calc(100vh - 150px);
  position: sticky;
  top: 90px;
}

.community-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #4a6cf7;
  margin: 0;
}

.sidebar-actions {
  display: flex;
  gap: 8px;
}

.community-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.community-action-btn:hover {
  background: #4a6cf7;
  color: white;
  transform: translateY(-2px);
}

.community-search {
  display: flex;
  margin-bottom: 20px;
}

.community-search-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.8);
}

.community-search-btn {
  width: 40px;
  background: #4a6cf7;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.community-search-btn:hover {
  background: #3a57d7;
}

.community-section {
  margin-bottom: 25px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.section-count {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.section-link {
  font-size: 0.85rem;
  color: #4a6cf7;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* ========== Friends List ========== */
.friends-list {
  margin-bottom: 15px;
}

.friend-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.friend-item:hover {
  background-color: rgba(74, 108, 247, 0.05);
}

.friend-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid white;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4caf50;
  border: 2px solid white;
  position: absolute;
  bottom: 0;
  right: 0;
}

.status-indicator.offline {
  background-color: #9e9e9e;
}

.friend-info {
  flex-grow: 1;
}

.friend-name {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.friend-status {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.friend-actions {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.friend-item:hover .friend-actions {
  opacity: 1;
}

.friend-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.friend-action-btn:hover {
  background: #4a6cf7;
  color: white;
}

.show-more-btn {
  display: block;
  width: 100%;
  padding: 8px;
  border: none;
  background: rgba(74, 108, 247, 0.05);
  color: #4a6cf7;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.show-more-btn:hover {
  background: rgba(74, 108, 247, 0.1);
}

/* ========== Groups List ========== */
.groups-list {
  margin-bottom: 15px;
}

.group-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
  cursor: pointer;
}

.group-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(5px);
}

.group-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  margin-right: 12px;
  background: linear-gradient(135deg, #4a6cf7, #6e8cff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.group-info {
  flex-grow: 1;
}

.group-name {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.group-members {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.notification-badge {
  background: #4a6cf7;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Mini Calendar ========== */
.mini-calendar {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 15px;
  overflow: hidden;
}

.mini-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.mini-calendar-title {
  font-weight: 600;
  color: #374151;
  margin: 0;
  font-size: 1rem;
}

.mini-calendar-actions {
  display: flex;
  gap: 5px;
}

.mini-calendar-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-calendar-btn:hover {
  background: #4a6cf7;
  color: white;
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
}

.calendar-day {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #374151;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day:hover {
  background: rgba(74, 108, 247, 0.1);
}

.calendar-day.prev-month,
.calendar-day.next-month {
  color: #9ca3af;
}

.calendar-day.current-day {
  background: #4a6cf7;
  color: white;
  font-weight: 600;
}

.calendar-day.has-event {
  font-weight: 600;
  position: relative;
}

.calendar-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #4a6cf7;
}

.upcoming-events {
  margin-top: 15px;
}

.upcoming-event {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.upcoming-event:last-child {
  border-bottom: none;
}

.event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
}

.event-dot.science {
  background: #4a6cf7;
}

.event-dot.art {
  background: #ec4899;
}

.event-info {
  flex: 1;
}

.event-title {
  display: block;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.event-time {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

/* ========== Community Feed ========== */
.community-feed {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.community-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 25px;
}

.community-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #374151;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.community-title i {
  color: #4a6cf7;
}

.community-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.community-tab {
  padding: 10px 15px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.community-tab.active {
  color: #4a6cf7;
}

.community-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #4a6cf7;
  border-radius: 3px 3px 0 0;
}

.community-tab:hover {
  color: #4a6cf7;
}

/* ========== Create Post Card ========== */
.create-post-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.create-post-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.user-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.create-post-input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.create-post-input:focus {
  outline: none;
  border-color: #4a6cf7;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.create-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-action-btn {
  padding: 8px 15px;
  background: rgba(74, 108, 247, 0.05);
  border: 1px solid rgba(74, 108, 247, 0.1);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-action-btn:hover {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.post-share-btn {
  padding: 8px 20px;
  background: #4a6cf7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: auto;
}

.post-share-btn:hover {
  background: #3a57d7;
  transform: translateY(-2px);
}

/* ========== Activity Card ========== */
.activity-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-bottom: 25px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.activity-user-info {
  display: flex;
  flex-direction: column;
}

.activity-username {
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

.activity-time {
  font-size: 0.8rem;
  color: #6b7280;
}

.activity-type {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.activity-type.achievement {
  background: linear-gradient(135deg, #ffd700, #ffc107);
}

.activity-type.project {
  background: linear-gradient(135deg, #4a6cf7, #6e8cff);
}

.activity-type.module {
  background: linear-gradient(135deg, #22c55e, #84cc16);
}

.activity-content {
  padding: 20px;
}

.activity-content p {
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 20px;
}

.achievement-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
}

.achievement-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd700, #ffc107);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.achievement-info {
  flex: 1;
}

.achievement-title {
  font-weight: 600;
  color: #374151;
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.achievement-progress {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  background: #4a6cf7;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: #6b7280;
}

.achievement-badge {
  width: 60px;
  height: 60px;
}

.achievement-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shared-project-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.project-preview {
  display: flex;
  padding: 15px;
  gap: 15px;
}

.preview-icon {
  font-size: 2rem;
  color: #4a6cf7;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 108, 247, 0.1);
  border-radius: 12px;
}

.project-info {
  flex: 1;
}

.project-title {
  font-weight: 600;
  color: #374151;
  margin: 0 0 5px;
  font-size: 1.1rem;
}

.project-description {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 10px;
  line-height: 1.5;
}

.project-meta {
  display: flex;
  gap: 15px;
}

.project-type, .project-length {
  font-size: 0.8rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-actions {
  display: flex;
  gap: 10px;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-action-btn {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-action-btn.primary {
  background: #4a6cf7;
  color: white;
  border: none;
}

.project-action-btn:not(.primary) {
  background: rgba(255, 255, 255, 0.7);
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.project-action-btn.primary:hover {
  background: #3a57d7;
  transform: translateY(-2px);
}

.project-action-btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  transform: translateY(-2px);
}

.module-progress-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
}

.module-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
}

.module-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-info {
  flex: 1;
}

.module-title {
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.module-progress {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shared-artwork {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  max-height: 300px;
}

.artwork-image {
  width: 100%;
  height: auto;
  display: block;
}

.artwork-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shared-artwork:hover .artwork-overlay {
  opacity: 1;
}

.artwork-actions {
  display: flex;
  gap: 15px;
}

.artwork-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.artwork-action-btn:hover {
  background: white;
  transform: scale(1.1);
}

.activity-actions {
  display: flex;
  padding: 10px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  gap: 20px;
}

.activity-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 5px 0;
}

.activity-action-btn:hover {
  color: #4a6cf7;
}

.action-count {
  font-size: 0.8rem;
  color: #6b7280;
}

.activity-comments {
  padding: 15px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-comment {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 10px 15px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.comment-username {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.comment-time {
  font-size: 0.8rem;
  color: #6b7280;
}

.comment-text {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 8px;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.comment-action-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.comment-action-btn:hover {
  color: #4a6cf7;
}

.add-comment {
  display: flex;
  gap: 12px;
  align-items: center;
}

.comment-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.comment-input:focus {
  outline: none;
  border-color: #4a6cf7;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.load-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: #4a6cf7;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.load-more-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* ========== Projects Tab ========== */
.projects-filter {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #6b7280;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

.filter-select {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #374151;
  font-size: 0.85rem;
  padding-right: 30px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.project-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.project-owner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.project-owner-name {
  font-size: 0.85rem;
  color: #6b7280;
}

.project-date {
  font-size: 0.8rem;
  color: #9ca3af;
}

.project-thumbnail {
  height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumbnail.writing {
  background: linear-gradient(135deg, #4a6cf7, #6e8cff);
}

.project-thumbnail.art {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.project-thumbnail.science {
  background: linear-gradient(135deg, #22c55e, #84cc16);
}

.project-thumbnail.coding {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumbnail:hover .project-overlay {
  opacity: 1;
}

.project-view-btn {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border: none;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.project-view-btn:hover {
  background: white;
  transform: scale(1.05);
}

.project-content {
  padding: 15px;
  flex: 1;
}

.project-title {
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.project-excerpt {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.project-stats {
  display: flex;
  gap: 12px;
}

.project-stat {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-category {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-category.writing {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.project-category.art {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.project-category.science {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.project-category.coding {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

/* ========== Collaborations Tab ========== */
.collaboration-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.collab-sections {
  display: flex;
  gap: 10px;
}

.collab-section-btn {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #6b7280;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.collab-section-btn.active {
  background: #4a6cf7;
  color: white;
  border-color: #4a6cf7;
}

.collab-section-btn:not(.active):hover {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.start-collab-btn {
  padding: 8px 16px;
  background: #4a6cf7;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.start-collab-btn:hover {
  background: #3a57d7;
  transform: translateY(-2px);
}

.collaboration-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collaboration-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.collab-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.collab-info {
  flex: 1;
}

.collab-title {
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.collab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.collab-type {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.collab-type.science {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.collab-type.writing {
  background: rgba(236, 72, 153, 0.1);
  color: #ec4899;
}

.collab-type.coding {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.collab-deadline {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #6b7280;
}

.collab-status {
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.collab-status.in-progress {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.collab-status.planning {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.collab-description {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.collab-description p {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.collab-members {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.collab-member-avatars {
  display: flex;
  align-items: center;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
  margin-right: -10px;
}

.member-avatar.owner {
  border-color: #4a6cf7;
}

.avatar-count {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  margin-left: 5px;
}

.collab-progress {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 180px;
}

.progress-text {
  font-size: 0.8rem;
  color: #6b7280;
  text-align: right;
}

.collab-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.collab-actions {
  display: flex;
  gap: 10px;
}

.collab-action-btn {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.collab-action-btn.primary {
  background: #4a6cf7;
  color: white;
  border: none;
}

.collab-action-btn:not(.primary) {
  background: rgba(255, 255, 255, 0.7);
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.collab-action-btn.primary:hover {
  background: #3a57d7;
  transform: translateY(-2px);
}

.collab-action-btn:not(.primary):hover {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  transform: translateY(-2px);
}

.last-activity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b7280;
}

.activity-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.invite-card, .request-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invite-card:hover, .request-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.invite-header, .request-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(74, 108, 247, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.invite-from, .request-to {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.invite-avatar, .request-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.invite-name, .request-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.invite-text, .request-text {
  color: #6b7280;
  font-size: 0.9rem;
}

.invite-date, .request-date {
  font-size: 0.85rem;
  color: #6b7280;
}

.invite-content, .request-content {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.invite-title, .request-title {
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.invite-description, .request-description {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 15px;
}

.invite-meta, .request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.invite-type, .request-type, .invite-deadline, .request-deadline, .invite-members, .request-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 20px;
}

.invite-type, .request-type {
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
}

.invite-deadline, .request-deadline, .invite-members {
  color: #6b7280;
}

.request-status.pending {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.invite-actions, .request-actions {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
}

.invite-action-btn, .request-action-btn {
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-action-btn.accept, .request-action-btn.remind {
  background: #4a6cf7;
  color: white;
  border: none;
}

.invite-action-btn.decline, .request-action-btn.cancel {
  background: rgba(255, 255, 255, 0.7);
  color: #ef4444;
  border: 1px solid #ef4444;
}

.invite-action-btn.details, .request-action-btn.details {
  background: rgba(255, 255, 255, 0.7);
  color: #6b7280;
  border: 1px solid #e5e7eb;
}

.invite-action-btn.accept:hover, .request-action-btn.remind:hover {
  background: #3a57d7;
  transform: translateY(-2px);
}

.invite-action-btn.decline:hover, .request-action-btn.cancel:hover {
  background: #fee2e2;
  transform: translateY(-2px);
}

.invite-action-btn.details:hover, .request-action-btn.details:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  transform: translateY(-2px);
}

/* ========== Messages Tab ========== */
.chat-list {
  margin-bottom: 20px;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-item:hover {
  background-color: rgba(74, 108, 247, 0.05);
}

.chat-item.unread {
  background-color: rgba(74, 108, 247, 0.1);
}

.chat-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-avatar.group-avatar {
  background: linear-gradient(135deg, #4a6cf7, #6e8cff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-info {
  flex: 1;
  min-width: 0;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.chat-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.95rem;
}

.chat-time {
  font-size: 0.8rem;
  color: #6b7280;
}

.chat-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-message {
  font-size: 0.85rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.chat-item.unread .chat-message {
  font-weight: 500;
  color: #374151;
}

.unread-badge {
  background: #4a6cf7;
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 0 6px;
}

/* ========== Notifications List ========== */
.notifications-list {
  margin-bottom: 15px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.notification-item:hover {
  background-color: rgba(74, 108, 247, 0.05);
}

.notification-item.unread {
  background-color: rgba(74, 108, 247, 0.1);
}

.notification-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.notification-icon.like {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.notification-icon.comment {
  background: linear-gradient(135deg, #4a6cf7, #6e8cff);
}

.notification-icon.mention {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.notification-icon.achievement {
  background: linear-gradient(135deg, #ffd700, #ffc107);
}

.notification-icon.friend {
  background: linear-gradient(135deg, #22c55e, #84cc16);
}

.notification-icon.system {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.notification-content {
  flex: 1;
}

.notification-text {
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 5px;
}

.notification-text strong {
  font-weight: 600;
}

.notification-time {
  font-size: 0.8rem;
  color: #6b7280;
}

.view-all-btn {
  display: block;
  width: 100%;
  padding: 10px;
  border: none;
  background: rgba(74, 108, 247, 0.05);
  color: #4a6cf7;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-all-btn:hover {
  background: rgba(74, 108, 247, 0.1);
}

/* ========== Message Modal ========== */
.message-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.message-modal.active {
  opacity: 1;
  visibility: visible;
}

.message-modal-content {
  width: 90%;
  max-width: 800px;
  height: 80vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.message-modal.active .message-modal-content {
  transform: translateY(0);
}

.message-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #4a6cf7;
  color: white;
}

.modal-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.message-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.message-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-contact-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-contact-info {
  display: flex;
  flex-direction: column;
}

.chat-contact-name {
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

.chat-contact-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #6b7280;
}

.chat-actions {
  display: flex;
  gap: 10px;
}

.chat-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-action-btn:hover {
  background: #4a6cf7;
  color: white;
}

.message-chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-date-divider {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin: 10px 0;
  position: relative;
}

.chat-date-divider::before, .chat-date-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.chat-date-divider::before {
  left: 30%;
}

.chat-date-divider::after {
  right: 30%;
}

.chat-message {
  display: flex;
  max-width: 70%;
}

.chat-message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.received {
  align-self: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 8px;
}

.message-bubble {
  background: #f3f4f6;
  border-radius: 18px;
  padding: 12px 15px;
  position: relative;
}

.chat-message.sent .message-bubble {
  background: #4a6cf7;
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-message.received .message-bubble {
  background: #f3f4f6;
  color: #374151;
  border-bottom-left-radius: 4px;
}

.message-bubble p {
  margin: 0 0 5px;
  line-height: 1.4;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
  text-align: right;
}

.message-chat-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.attachment-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(74, 108, 247, 0.1);
  color: #4a6cf7;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.attachment-btn:hover {
  background: rgba(74, 108, 247, 0.2);
}

.message-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #e5e7eb;
  border-radius: 30px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.message-input:focus {
  outline: none;
  border-color: #4a6cf7;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.send-btn {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: #4a6cf7;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-btn:hover {
  background: #3a57d7;
  transform: translateY(-2px);
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 1200px) {
  .community-layout {
    grid-template-columns: 250px 1fr 280px;
    gap: 15px;
  }
}

@media (max-width: 992px) {
  .community-layout {
    grid-template-columns: 220px 1fr;
  }
  
  .messages-sidebar {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .community-layout {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
  
  .friends-sidebar, .messages-sidebar {
    grid-column: 1;
  }
  
  .community-feed {
    grid-column: 1;
    grid-row: 2;
  }
  
  .messages-sidebar {
    grid-row: 3;
  }
  
  .community-sidebar {
    max-height: 500px;
  }
  
  .community-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .collab-sections {
    width: 100%;
    justify-content: space-between;
  }
  
  .collab-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .collab-members {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .collab-progress {
    width: 100%;
  }
  
  .collab-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .collab-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .message-chat-container {
    height: 500px;
  }
}

@media (max-width: 576px) {
  .community-layout {
    padding: 10px;
  }
  
  .community-sidebar, .community-feed {
    padding: 15px;
  }
  
  .community-tabs {
    width: 100%;
    justify-content: space-between;
  }
  
  .community-tab {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .create-post-actions {
    flex-direction: column;
  }
  
  .post-action-btn {
    width: 100%;
    justify-content: center;
  }
  
  .post-share-btn {
    width: 100%;
    margin-left: 0;
  }
  
  .project-action-btn, .collab-action-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
  
  .invite-from, .request-to {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .invite-actions, .request-actions {
    flex-direction: column;
  }
  
  .invite-action-btn, .request-action-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========== Animation Effects ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.activity-card, .project-card, .collaboration-card {
  animation: fadeIn 0.3s ease-out;
}

.friend-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.friend-item:nth-child(even) {
  animation-delay: 0.2s;
}

.chat-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.chat-item:nth-child(even) {
  animation-delay: 0.2s;
}

.notification-item:nth-child(odd) {
  animation-delay: 0.1s;
}

.notification-item:nth-child(even) {
  animation-delay: 0.2s;
}

/* Post notification styles for JS to add */
.post-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #4a6cf7;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.post-notification.active {
  opacity: 1;
  transform: translateY(0);
}