/* Fiat Lux — global styles */

/* Upload drop zone */
.upload-area {
  background: white;
  border: 2px dashed #fcd34d; /* amber-300 */
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s;
  cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: #f59e0b; /* amber-500 */
  background-color: #fffbeb; /* amber-50 */
}

/* File card */
.file-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-left: 3px solid #fbbf24; /* amber-400 accent */
  border-radius: 0.5rem;
  padding: 1rem 1rem 1rem 0.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.15s, border-left-color 0.15s;
}

.file-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  border-left-color: #f59e0b; /* amber-500 */
}

/* File type badge — color applied via Tailwind classes (computed by badge_class()) */
.file-type-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  padding: 2px 8px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* File chips in upload modal */
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7; /* amber-100 */
  color: #92400e;       /* amber-800 */
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 2.5rem 0;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* View page — chat panel */
.chat-panel {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .chat-panel {
    position: fixed;
    inset: 0;
    width: 100%;
    z-index: 50;
    border-radius: 0;
  }
}

/* Chat messages */
.chat-msg-user {
  background: #fffbeb;
  color: #92400e;
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  max-width: 85%;
  margin-left: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-assistant {
  background: #f9fafb;
  color: #374151;
  padding: 8px 12px;
  border-radius: 12px 12px 12px 4px;
  max-width: 92%;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Chat typing indicator */
.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  min-height: 36px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: #d1d5db;
  border-radius: 50%;
  display: inline-block;
  animation: typing-bounce 1.2s infinite ease-in-out;
}

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

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); background: #d1d5db; }
  30%           { transform: translateY(-6px); background: #f59e0b; }
}

/* About page — example iframe preview */
.example-preview-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #667eea;
}

.example-preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;       /* native width of the schedule */
  height: 900px;       /* native height */
  border: none;
  transform-origin: top left;
  transform: scale(0.62);
  pointer-events: none; /* it's a preview, not interactive */
}
