/* Sidebar Widgets Styles */
/* Professional Academic Design */

.sidebar-widgets {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  /* Ensure widgets are always visible without internal scrolling */
  min-height: fit-content;
  overflow: visible;
}

.sidebar-widget {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #4361ee;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.widget-title i {
  color: #4361ee;
  font-size: 0.9rem;
}

.widget-content {
  font-size: 0.8rem;
}

.widget-link {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: #4361ee;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.widget-link:hover {
  color: #3a0ca3;
  transform: translateX(3px);
}

.widget-link i {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.widget-link:hover i {
  transform: translateX(3px);
}

/* Loading Animation */
.widget-loading {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  gap: 4px;
}

.loading-dot {
  width: 6px;
  height: 6px;
  background: #4361ee;
  border-radius: 50%;
  animation: loadingPulse 1.4s infinite ease-in-out;
}

.loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes loadingPulse {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Meeting List */
.meeting-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.meeting-item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.meeting-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meeting-date {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meeting-roles {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meeting-role {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #555;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-icon {
  font-size: 0.7rem;
  flex-shrink: 0;
}

.meeting-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-size: 0.7rem;
}

.meeting-type {
  font-size: 0.75rem;
}

.meeting-presenter {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.no-meetings,
.widget-error {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.75rem;
}

/* News List */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.news-date {
  display: block;
  font-size: 0.65rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.15rem;
}

.news-title {
  display: block;
  color: #1a1a2e;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.news-title:hover {
  color: #4361ee;
}

.news-category {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.news-category.seminar {
  background: #e8f5e9;
  color: #2e7d32;
}

.news-category.conference {
  background: #fff3e0;
  color: #e65100;
}

.news-category.publication {
  background: #e3f2fd;
  color: #1565c0;
}

/* Dark Theme Support */
[data-theme="dark"] .sidebar-widget {
  background: linear-gradient(135deg, #1e1e2e 0%, #2d2d3f 100%);
  border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .widget-title {
  color: #e0e0e0;
}

[data-theme="dark"] .meeting-date,
[data-theme="dark"] .news-title {
  color: #e0e0e0;
}

[data-theme="dark"] .meeting-details,
[data-theme="dark"] .meeting-role {
  color: #aaa;
}

[data-theme="dark"] .meeting-item,
[data-theme="dark"] .news-item {
  border-color: rgba(255, 255, 255, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar-widgets {
    display: none;
  }
}
