* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f3f4f8;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

h1 {
  text-align: center;
  margin-bottom: 16px;
}

.main-layout {
  flex: 1;
  display: flex;
  gap: 16px;
}

/* Left text panel */
.text-panel {
  flex: 3;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-message {
  min-height: 24px;
  margin-bottom: 8px;
  color: #555;
  font-size: 0.9rem;
}

.review-content {
  flex: 1;
  border-radius: 10px;
  padding: 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  background-color: #fafafa;
  border: 1px solid #e2e2e2;
}

/* Thinking + review blocks */
.thinking-block {
  background-color: #eef2ff;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  border-left: 4px solid #4a6cff;
}

.review-block {
  background-color: #ffffff;
  padding: 8px;
  border-radius: 6px;
  border-left: 4px solid #00a676;
}

/* Right panel */
.side-panel {
  flex: 1;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  flex: 1;
  overflow-y: auto;
  border: 1px solid #e2e2e2;
  border-radius: 8px;
}

.file-list li {
  padding: 6px 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.file-list li:last-child {
  border-bottom: none;
}

.file-list li:hover {
  background-color: #f5f5f5;
}

.file-list li.active {
  background-color: #e0ecff;
  font-weight: 600;
}

/* Progress bar */
.progress-wrapper {
  margin-top: 8px;
}

.progress-bar-background {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background-color: #e5e5e5;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #4a6cff;
  transition: width 0.3s ease;
}

.progress-text {
  margin-top: 4px;
  font-size: 0.85rem;
  text-align: right;
}

/* Bottom buttons */
.bottom-bar {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.bottom-bar button {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background-color: #4a6cff;
  color: white;
  font-size: 0.95rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.bottom-bar button:disabled {
  background-color: #c2c2c2;
  cursor: not-allowed;
}

/* Mobile */
@media (max-width: 800px) {
  .main-layout {
    flex-direction: column;
  }
}