.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.activitiesContainer {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  max-width: 1000px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 30px 30px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.header h2 {
  font-size: 2rem;
  color: #e1e5f2;
  margin-bottom: 5px;
  font-weight: 600;
}

.header p {
  color: #cbd5e1;
  font-size: 1rem;
}

.content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.section {
  margin-bottom: 40px;
}

.section:last-child {
  margin-bottom: 0;
}

.section h3 {
  font-size: 1.3rem;
  color: #e1e5f2;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3b82f6;
  display: inline-block;
}

.windowGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.windowPreview {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  will-change: transform;
}

.windowPreview:hover {
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.windowHeader {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.windowIcon {
  font-size: 14px;
}

.windowTitle {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.windowBody {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.5);
}

.windowPlaceholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
}

.placeholderIcon {
  font-size: 2rem;
  opacity: 0.5;
}

.appGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
}

.appItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  will-change: transform;
}

.appItem:hover {
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
}

.appIcon {
  font-size: 2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  color: #e1e5f2;
}

.appName {
  font-size: 0.9rem;
  font-weight: 500;
  color: #e1e5f2;
  text-align: center;
}

.footer {
  padding: 20px 30px;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  justify-content: center;
}

.logoutButton {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ef4444;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.logoutButton:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .activitiesContainer {
    max-width: 95vw;
    max-height: 90vh;
  }

  .header {
    padding: 20px 20px 15px;
  }

  .header h2 {
    font-size: 1.5rem;
  }

  .content {
    padding: 20px;
  }

  .windowGrid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .appGrid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
  }

  .appItem {
    padding: 15px;
    min-height: 80px;
  }

  .appIcon {
    font-size: 1.5rem;
  }

  .appName {
    font-size: 0.8rem;
  }
}
