body {
  background-color: #f7f7f7;
}

.chat-container {
  max-width: 1200px;
  margin: 50px auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
}

.chat-window {
  height: 400px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
  background: #fafafa;
}

.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  max-width: 70%;
  display: inline-block;
}

.message.user {
  background-color: #007bff;
  color: white;
  float: right;
}

.message.assistant {
  background-color: #e9ecef;
  color: #212529;
  float: left;
}

.clear {
  clear: both;
}

.event-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #007bff;
  position: relative;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
}

.event-summary {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 5px;
}

.event-date {
  font-size: 14px;
  color: #777;
}

.event-deleted {
  font-weight: bold;
  font-size: 18px;
  color: red;
  text-align: center;
}

.button-container {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.delete-event,
.edit-event {
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.form-row {
  display: flex;
  gap: 15px;
}

.delete-event {
  background: #ff4d4d;
  color: white;
}

.delete-event:hover {
  background: #cc0000;
  transform: scale(1.1);
}

.edit-event {
  background: #007bff;
  color: white;
}

.edit-event:hover {
  background: #0056b3;
  transform: scale(1.1);
}

#authorizeButton {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 10;
}

#authorizeButton:hover {
  background-color: #0056b3;
}

.add-guest {
  background: #28a745;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.add-guest:hover {
  background: #218838;
  transform: scale(1.1);
}
.guest-section {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}

.guest-section .guest-icon {
  font-weight: bold;
}

.guest-list {
  margin: 0;
  padding-left: 20px;
}

.ui-autocomplete {
  z-index: 1051 !important; /* higher than Bootstrap modal */
  background-color: white;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #ccc;
}

.typing-indicator {
  display: flex;
  gap: 5px;
  padding-left: 10px;
  margin-bottom: 12px;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: blink 1.2s infinite ease-in-out;
  opacity: 0.5;
}

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

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

@keyframes blink {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Floating activity panel */
.activity-panel {
  position: absolute;
  top: 75px;
  left: 20px;
  width: 420px;
  max-height: 500px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 16px;
  z-index: 999;
}

/* Style for each activity item */
.activity-panel .list-group-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.5;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease;
}

.activity-panel .list-group-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.activity-panel .list-group-item strong {
  display: block;
  font-size: 15.5px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.activity-panel .list-group-item small {
  display: block;
  margin-top: 6px;
  color: #666;
  font-size: 13px;
}
