/* 
  WEBFORGE AI — Black & White Theme
  Only #000, #fff, and light borders (#eee)
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background: #fff;
  color: #000;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.5px;
}

.container {
  display: flex;
  gap: 24px;
  padding: 24px;
  max-width: 1400px;
  border-color: #000;
  margin: 0 auto;
  height: calc(100vh - 72px);
}

.panel {
  border: 1px solid #eee;
  border-color: #000;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.chat-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-panel {
  flex: 2;
  transform: translateX(100%);
  border-color: #000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.preview-panel.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.preview-header {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-content {
  height: calc(100% - 48px);
  overflow: auto;
  padding: 16px;
  background: #fff;
}

h2 {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #000;
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  padding: 8px 0;
  word-break: break-word;
  white-space: pre-wrap;
}

.user {
  text-align: right;
  color: #000;
}

.bot {
  text-align: left;
  color: #000;
}

.input-area {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid #eee;
}

#userInput {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #eee;
  background: #fff;
  color: #000;
  font-family: inherit;
  font-size: 14px;
}

#userInput:focus {
  outline: 1px solid #000;
}

#sendBtn,
#downloadBtn {
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid #eee;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sendBtn:hover,
#downloadBtn:hover {
  background: #f8f8f8;
}

/* Responsive */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 72px);
  }
  .preview-panel {
    transform: translateY(100%);
  }
  .preview-panel.active {
    transform: translateY(0);
  }
}