body {
  font-family: Arial, sans-serif;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  height: 100vh;
  margin: 0;
  overflow: hidden;
}

#topControls {
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  background: #f8f9fa;
  align-items: center;
}

.session-wrapper {
  position: relative;
  flex: 1;
}

#sessionInput {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.session-wrapper.readonly #sessionInput {
  background-color: #e9ecef;
  color: #6c757d;
  border: 1px solid #aaa;
  cursor: not-allowed;
  padding-right: 28px;
}

.session-wrapper.readonly::after {
  content: "🔒";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 14px;
}

#chatLog {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.75rem;
  overflow-y: auto;
  background: #fff;
  margin: 0.5rem;
}

.msg {
  padding: 0.5rem;
  border-radius: 5px;
  margin: 0.8em 0;
  animation: fadeIn 0.3s ease-in;
}

.msg small {
  color: #6c757d;
  font-size: 0.75em;
  font-style: italic;
  opacity: 0.8;
}

.user {
  background: #d0f0ff;
  border-left: 4px solid #007bff;
  text-align: right;
  margin-left: 3em;
  cursor: pointer;
}

.bot {
  background: #e5ffe5;
  border-left: 4px solid #28a745;
  margin-right: 3em;
  position: relative;
}

.bot pre {
  height: 100px;
  overflow: auto;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.5rem;
  white-space: pre;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 50px;
}

.recalled {
  outline: 2px solid #007bff;
  background: #b3e5fc !important;
}

#bottomPanel {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  padding: 0.5rem;
  background: #f8f9fa;
}

#testControls {
  padding: 0.5rem;
  background: #f1f3f4;
}

.testAreaWithButtons {
  display: flex;
  gap: 0.5rem;
}

#testList {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.buttonColumn {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

#controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#messageInput {
  flex: 1;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  background: #007bff;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.rating-buttons {
  display: flex;
  gap: 0.25rem;
  position: absolute;
  bottom: -10px;
  right: 20px;
}

.rating-buttons button {
  background: #629266;
  border-radius: 50%;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: transform 0.2s, background 0.2s;
}

.rating-buttons button:hover {
  transform: scale(1.1);
  background: #198322;
}

.rating-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none !important;
  pointer-events: none;
}

/* Animated typing dots */
.typing {
  display: inline-block;
  width: 1em;
  text-align: left;
}

.typing::after {
  content: "...";
  animation: dots 1s steps(5, end) infinite;
}

@keyframes dots {
  0%, 20% { color: transparent; text-shadow: none; }
  40% { color: black; text-shadow: none; }
  60% { color: black; text-shadow: .2em 0 0 black; }
  80%, 100% { color: black; text-shadow: .2em 0 0 black, .4em 0 0 black; }
}

/* Smooth fade-in for new messages */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.widget {
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  padding: 0.75rem;
  margin: 0.5rem 0;
}

.widget h4 {
  margin: 0 0 0.5rem 0;
  color: #333;
}

/* ---- FLIGHT INFO ---- */
.flight-card {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 0.5rem;
  margin-top: 0.25rem;
  background: #eef9ee;
}

/* ---- ATRIUS POINTS ---- */
.poi-card {
  display: flex;
  gap: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fefefe;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  align-items: flex-start;
}
.poi-card img {
  width: 120px;
  height: 80px;
  border-radius: 5px;
  object-fit: cover;
}
.poi-card .poi-info p {
  margin: 0.25rem 0;
}

/* ---- TSA WAIT TIMES ---- */
.tsa-terminal {
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.tsa-terminal ul {
  margin: 0.25rem 0 0 1rem;
  padding: 0;
}
.tsa-terminal li {
  list-style: none;
  margin: 0.25rem 0;
}

/* ---- PARKING INFO ---- */
.parking-terminal {
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
}
.parking-card {
  margin: 0.25rem 0;
  padding: 0.5rem;
  border-radius: 5px;
  background: #f9f9f9;
  border: 1px solid #ccc;
}
.parking-card.open {
  border-color: #28a745;
  background: #e6ffe6;
}
.parking-card.closed {
  border-color: #dc3545;
  background: #ffe6e6;
}

.website-hits {
  margin-top: 0.75rem;
}

.website-hits h4 {
  margin-bottom: 0.25rem;
}

