body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 1rem;
}

#app-container {
  display: flex;
  gap: 1rem;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

#left-column {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#right-column {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2rem); /* Full viewport height minus padding */
}

#upload-container {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#pdf-viewer-container {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: none; /* Initially hidden */
}

#pdf-canvas {
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  height: auto;
}

#pdf-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

#chat-container {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#chat-history {
  flex-grow: 1;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1rem;
  overflow-y: auto;
  background-color: #fafafa;
}

form {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

input[type="file"],
input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

button {
  padding: 10px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

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

button:hover:not(:disabled) {
  background-color: #2980b9;
}

#upload-status,
#chat-status {
  text-align: center;
  min-height: 20px;
  color: #e67e22;
}

.message {
  margin-bottom: 1rem;
  padding: 10px;
  border-radius: 6px;
  line-height: 1.5;
}

.message.user {
  background-color: #eaf5ff;
  text-align: right;
}

.message.ai {
  background-color: #f1f1f1;
}

.message strong {
  display: block;
  margin-bottom: 5px;
  color: #2c3e50;
}

