/* Rooms Sidebar Styles */
.rooms-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.rooms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.rooms-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.rooms-sidebar.open {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.rooms-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.create-room-icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #28a745;
  color: white;
  cursor: pointer;
  border-radius: 50%;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-room-icon-btn:hover {
  background: #218838;
  transform: scale(1.1);
}

.rooms-sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-sidebar-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

/* Room title with icons */
.room-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.room-title i {
  font-size: 18px;
  color: #007bff;
  min-width: 20px;
  text-align: center;
}

.room-title h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

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

/* Room Categories */
.rooms-categories {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

/* AI Category Specific Styling */
.category-btn[data-category="ai"] {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 1px solid #667eea;
}

.category-btn[data-category="ai"]:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.category-btn {
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: center;
  color: #666;
  font-weight: 500;
  white-space: nowrap;
  min-width: auto;
  width: auto;
}

.category-btn:hover {
  background: #e3f2fd;
  border-color: #007bff;
  color: #007bff;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.category-btn.active {
  background: #007bff;
  border-color: #007bff;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.rooms-list {
  padding: 15px 20px;
  max-height: calc(100vh - 400px);
  overflow-y: auto;
}

.room-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.room-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.room-header {
  margin-bottom: 12px;
}

.room-info h4 {
  margin: 0 0 4px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.room-info p {
  margin: 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.room-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin: 8px 0 12px 0;
}

.participants {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #28a745;
  font-weight: 500;
}

.category-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.category-badge.business { background: #e3f2fd; color: #1976d2; }
.category-badge.social { background: #f3e5f5; color: #7b1fa2; }
.category-badge.education { background: #e8f5e8; color: #388e3c; }
.category-badge.gaming { background: #fff3e0; color: #f57c00; }

.join-room-btn {
  width: 100%;
  padding: 8px 15px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.join-room-btn:hover {
  background: #0056b3;
}

.join-room-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.create-custom-room {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #f8f9fa;
}

.create-custom-room h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.custom-room-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.custom-room-form input,
.custom-room-form select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.create-custom-btn {
  width: 100%;
  padding: 10px 15px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.create-custom-btn:hover {
  background: #218838;
}

.no-rooms {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.no-rooms i {
  font-size: 32px;
  color: #ccc;
  margin-bottom: 15px;
}

/* Mobile responsiveness for rooms sidebar */
@media (max-width: 768px) {
  .rooms-sidebar {
    width: 100%;
    right: -100%;
  }

  .rooms-sidebar.open {
    right: 0;
  }

  .rooms-sidebar-header {
    padding: 15px 20px;
  }

  .rooms-categories {
    padding: 12px 15px;
    gap: 6px;
    justify-content: center;
  }

  .category-btn {
    font-size: 11px;
    padding: 5px 10px;
    gap: 4px;
  }

  .rooms-list {
    padding: 12px 15px;
    max-height: calc(100vh - 350px);
  }

  .create-custom-room {
    padding: 15px;
  }
}