/* Complete Fixed Styles - All UI Issues Resolved */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f7f9fa;
  color: #0f1419;
  line-height: 1.5;
  font-size: 15px;
}

/* Layout */
.container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 350px;
  gap: 30px;
  padding: 0 20px;
}

/* Utilities */
.hidden { display: none !important; }
.loading { 
  text-align: center; 
  padding: 40px; 
  color: #536471;
  font-size: 16px;
}
.empty-state { 
  text-align: center; 
  padding: 60px 20px; 
  color: #536471;
  font-size: 15px;
}

/* Buttons */
.btn {
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #1d9bf0;
  color: white;
}

.btn-primary:hover {
  background: #1a8cd8;
}

.btn-primary:disabled {
  background: #8ecdf8;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: #0f1419;
  border: 1px solid #cfd9de;
}

.btn-secondary:hover {
  background: #f7f9fa;
}

.btn-danger {
  background: #f4212e;
  color: white;
}

.btn-danger:hover {
  background: #d01828;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 50%;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: #f7f9fa;
}

/* Login Screen */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 400px;
}

.login-logo {
  font-size: 64px;
  text-align: center;
  margin-bottom: 20px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.login-subtitle {
  text-align: center;
  color: #536471;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #cfd9de;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #1d9bf0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-btn {
  width: 100%;
  background: #1d9bf0;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #1a8cd8;
}

.login-help {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #eff3f4;
  font-size: 13px;
  color: #536471;
}

.login-help p {
  margin: 4px 0;
}

.error-msg {
  color: #f4212e;
  font-size: 14px;
  margin-top: 12px;
  padding: 10px;
  background: #fee;
  border-radius: 8px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.user-info {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  object-fit: cover;
  user-select: none;
  background: #eff3f4;
}

.user-details {
  text-align: center;
  width: 100%;
}

.user-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.user-role {
  color: #536471;
  font-size: 14px;
  margin-bottom: 12px;
}

.logout-btn {
  width: 100%;
  padding: 8px 16px;
  background: #f7f9fa;
  border: 1px solid #cfd9de;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.logout-btn:hover {
  background: #eff3f4;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.nav-item:hover {
  background: #f7f9fa;
}

.nav-item.active {
  background: #e7f5ff;
  color: #1d9bf0;
  font-weight: 600;
}

.nav-item .icon {
  font-size: 20px;
}

/* Main Content */
.main-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-height: 100vh;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eff3f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
  border-radius: 16px 16px 0 0;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
}

/* Post Composer */
.post-composer {
  padding: 16px 24px;
  border-bottom: 1px solid #eff3f4;
  display: flex;
  gap: 12px;
}

.composer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  object-fit: cover;
  user-select: none;
  background: #eff3f4;
}

.composer-body {
  flex: 1;
}

.composer-input {
  width: 100%;
  border: none;
  resize: none;
  font-size: 17px;
  font-family: inherit;
  min-height: 60px;
  padding: 8px 0;
  line-height: 1.5;
}

.composer-input:focus {
  outline: none;
}

.composer-input::placeholder {
  color: #8b98a5;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.visibility-select {
  padding: 8px 12px;
  border: 1px solid #cfd9de;
  border-radius: 20px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
}

.visibility-select:hover {
  background: #f7f9fa;
}

.visibility-select:focus {
  outline: none;
  border-color: #1d9bf0;
}

/* Posts Feed */
.posts-feed {
  min-height: 400px;
}

.post {
  padding: 16px 24px;
  border-bottom: 1px solid #eff3f4;
  transition: background 0.2s;
}

.post:hover {
  background: #f7f9fa;
}

.post-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  object-fit: cover;
  user-select: none;
  background: #eff3f4;
}

.post-author {
  flex: 1;
}

.post-author-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 2px;
}

.author-name {
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: text-decoration 0.2s;
}

.author-name:hover {
  text-decoration: underline;
}

.author-meta {
  font-size: 14px;
  color: #536471;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

.badge-admin { background: #fee; color: #f4212e; }
.badge-moderator { background: #fef3c7; color: #d97706; }
.badge-teacher { background: #e0e7ff; color: #4338ca; }
.badge-student { background: #e7f5ff; color: #1d9bf0; }
.badge-parent { background: #f0fdf4; color: #16a34a; }

.post-content {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.post-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: opacity 0.2s;
  background: #eff3f4;
}

.post-image:hover {
  opacity: 0.95;
}

.post-actions {
  display: flex;
  gap: 40px;
  margin-top: 12px;
}

.post-action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #536471;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  user-select: none;
}

.post-action:hover {
  color: #1d9bf0;
  background: #e7f5ff;
}

.post-action.liked {
  color: #f4212e;
}

.post-action.liked:hover {
  background: #fee;
}

/* Comments */
.comment {
  display: flex;
  gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid #eff3f4;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  object-fit: cover;
  user-select: none;
  background: #eff3f4;
}

.comment-body {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.comment-author:hover {
  text-decoration: underline;
}

.comment-meta {
  color: #536471;
  font-size: 13px;
}

.comment-content {
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.comment-input-section {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  border-top: 1px solid #eff3f4;
}

.comment-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #cfd9de;
  border-radius: 20px;
  font-size: 15px;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: #1d9bf0;
}

/* Profile Page - COMPLETELY REDESIGNED */
.profile-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  border-radius: 16px 16px 0 0;
}

.profile-info {
  max-width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.profile-avatar-large {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  flex-shrink: 0;
  background: #eff3f4;
  user-select: none;
}

.profile-header-text {
  flex: 1;
  color: white;
  padding-bottom: 8px;
}

.profile-header-text .profile-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-header-text .profile-username {
  font-size: 16px;
  opacity: 0.9;
}

.profile-details {
  padding: 24px;
  border-bottom: 1px solid #eff3f4;
}

.profile-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-username {
  color: #536471;
  font-size: 15px;
  margin-bottom: 16px;
}

.profile-bio {
  margin-bottom: 16px;
  line-height: 1.5;
  white-space: pre-wrap;
  font-size: 15px;
}

.profile-stats {
  display: flex;
  gap: 24px;
  color: #536471;
  font-size: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-stat strong {
  color: #0f1419;
  font-weight: 700;
}

.profile-posts {
  padding: 0;
}

/* Post Detail Page */
.post-detail {
  max-width: 100%;
  padding: 0;
}

.post-detail-main {
  border-bottom: 1px solid #eff3f4;
  padding: 20px 24px;
}

.post-detail-content {
  font-size: 18px;
  line-height: 1.6;
  margin: 16px 0;
  white-space: pre-wrap;
}

.post-detail-timestamp {
  color: #536471;
  font-size: 15px;
  margin: 12px 0;
}

.post-detail-stats {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid #eff3f4;
  border-bottom: 1px solid #eff3f4;
  margin: 16px 0;
}

.post-detail-stat {
  font-size: 15px;
  color: #536471;
}

.post-detail-stat strong {
  font-weight: 700;
  color: #0f1419;
  margin-right: 4px;
}

.replies-section {
  padding-top: 12px;
}

.replies-title {
  font-size: 20px;
  font-weight: 700;
  padding: 12px 24px;
  border-bottom: 1px solid #eff3f4;
}

/* Search */
.search-container {
  padding: 20px 24px;
}

.search-box {
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cfd9de;
  border-radius: 24px;
  font-size: 15px;
  font-family: inherit;
}

.search-input:focus {
  outline: none;
  border-color: #1d9bf0;
}

.search-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eff3f4;
}

.search-tab {
  padding: 14px 20px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 600;
  color: #536471;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.search-tab.active {
  color: #1d9bf0;
  border-bottom-color: #1d9bf0;
}

.search-results {
  display: none;
}

.search-results.active {
  display: block;
}

.user-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 8px;
}

.user-result:hover {
  background: #f7f9fa;
}

.user-result-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  background: #eff3f4;
  user-select: none;
}

.user-result-info {
  flex: 1;
}

.user-result-name {
  font-weight: 600;
  font-size: 15px;
}

.user-result-meta {
  color: #536471;
  font-size: 14px;
}

/* Calendar */
.calendar-grid {
  padding: 20px;
}

.event-card {
  background: white;
  border: 1px solid #eff3f4;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.event-card:hover {
  background: #f7f9fa;
  border-color: #1d9bf0;
}

.event-date {
  color: #1d9bf0;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.event-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.event-meta {
  color: #536471;
  font-size: 14px;
}

/* Clubs */
.clubs-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.club-card {
  background: white;
  border: 1px solid #eff3f4;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.club-card:hover {
  border-color: #1d9bf0;
  box-shadow: 0 4px 12px rgba(29, 155, 240, 0.1);
}

.club-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.club-name {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.club-description {
  color: #536471;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.club-members {
  color: #536471;
  font-size: 13px;
}

.club-detail-header {
  padding: 24px;
  border-bottom: 1px solid #eff3f4;
}

.club-members-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 20px;
}

.club-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f7f9fa;
  border-radius: 12px;
}

.club-member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  background: #eff3f4;
  user-select: none;
}

.club-member-name {
  font-weight: 600;
  font-size: 14px;
}

/* Messages */
.messages-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 600px;
}

.conversations-list {
  border-right: 1px solid #eff3f4;
  overflow-y: auto;
}

.conversation {
  padding: 16px;
  border-bottom: 1px solid #eff3f4;
  cursor: pointer;
  transition: background 0.2s;
}

.conversation:hover {
  background: #f7f9fa;
}

.conversation.active {
  background: #e7f5ff;
}

.chat-area {
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
}

.message-input-area {
  padding: 16px;
  border-top: 1px solid #eff3f4;
  display: flex;
  gap: 12px;
}

.message-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #cfd9de;
  border-radius: 20px;
  font-size: 15px;
  font-family: inherit;
}

.message-input:focus {
  outline: none;
  border-color: #1d9bf0;
}

/* Admin */
.admin-container {
  padding: 20px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.stat-card {
  background: #f7f9fa;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1d9bf0;
}

.stat-label {
  color: #536471;
  font-size: 14px;
  margin-top: 4px;
}

.users-table {
  background: white;
  border: 1px solid #eff3f4;
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  background: #f7f9fa;
  padding: 16px 20px;
  font-weight: 700;
  border-bottom: 1px solid #eff3f4;
}

.users-list {
  max-height: 600px;
  overflow-y: auto;
}

.user-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr 1fr 100px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eff3f4;
  transition: background 0.2s;
}

.user-row:hover {
  background: #f7f9fa;
}

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

.user-table-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  background: #eff3f4;
  user-select: none;
}

.user-details {
  flex: 1;
}

.user-name-table {
  font-weight: 600;
  font-size: 14px;
}

.user-username {
  color: #536471;
  font-size: 13px;
}

.user-email {
  color: #536471;
  font-size: 14px;
}

.user-role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.user-class {
  color: #536471;
  font-size: 14px;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-content.modal-small {
  max-width: 400px;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eff3f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #536471;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #f7f9fa;
}

.modal-body {
  padding: 20px 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eff3f4;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Notifications */
.notif-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f4212e;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.notifications-dropdown {
  position: fixed;
  top: 70px;
  right: 380px;
  width: 400px;
  max-height: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow: hidden;
}

.notif-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eff3f4;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header h3 {
  font-size: 19px;
  font-weight: 700;
}

.btn-text {
  background: none;
  border: none;
  color: #1d9bf0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-text:hover {
  background: #e7f5ff;
}

.notif-list {
  max-height: 500px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 20px;
  border-bottom: 1px solid #eff3f4;
  cursor: pointer;
  display: flex;
  gap: 12px;
  transition: background 0.2s;
}

.notif-item:hover {
  background: #f7f9fa;
}

.notif-item.unread {
  background: #e7f5ff;
}

.notif-item.unread:hover {
  background: #d0ebff;
}

.notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #eff3f4;
  user-select: none;
}

.notif-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.notif-preview {
  color: #536471;
  font-size: 13px;
  margin-top: 4px;
}

.notif-time {
  color: #536471;
  font-size: 13px;
  margin-top: 4px;
}

/* Right Sidebar */
.right-sidebar {
  position: sticky;
  top: 20px;
  height: fit-content;
}

.widget {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.widget-header {
  padding-bottom: 12px;
  border-bottom: 1px solid #eff3f4;
  margin-bottom: 12px;
}

.widget-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.widget-content {
  font-size: 14px;
}

.widget-item {
  padding: 12px 0;
  border-bottom: 1px solid #eff3f4;
  cursor: pointer;
  transition: opacity 0.2s;
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-item:hover {
  opacity: 0.8;
}

/* Notification Toast */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 500;
  z-index: 2000;
  border-left: 4px solid #1d9bf0;
  animation: slideIn 0.3s ease;
}

.notification.error {
  border-left-color: #f4212e;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: 280px 1fr;
  }
  .right-sidebar {
    display: none;
  }
  .notifications-dropdown {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .messages-container {
    grid-template-columns: 1fr;
  }
  .conversations-list {
    display: none;
  }
}


/* Lucide icons */
.icon svg, .logo svg, .login-logo svg, .btn-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.logo svg { width: 22px; height: 22px; }
.login-logo svg { width: 40px; height: 40px; }
.btn-icon svg { width: 18px; height: 18px; }
