* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===== BODY ===== */
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #6a0dad, #ff7a18);
}

/* ===== PAGE WRAPPER (CENTER FIX) ===== */
#page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== MAIN CONTAINER ===== */
.container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
  max-width: 400px;
}

/* ===== UPLOAD ===== */
.upload-box {
  display: block;
  padding: 20px;
  margin: 20px 0;
  border: 2px dashed #6a0dad;
  border-radius: 8px;
  cursor: pointer;
  color: #6a0dad;
}

button {
  background: #6a0dad;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #ff7a18;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== LOGO ===== */
.logo {
  position: fixed;
  top: 50px;
  left: 50px;
  z-index: 10;
}

.logo img {
  height: 100px;
}

/* ===== UPLOAD WRAPPER ===== */
.upload-wrapper {
  position: relative;
}

.upload-box {
  position: relative;
  height: 220px;
  width: 70%;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
}

.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: none;
}

/* ===== OVERLAY ===== */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
}

/* ===== RESULT ===== */
.result-box {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: #f6f2fb;
  border-radius: 10px;
  color: #333;
  max-height: 220px;
  overflow-y: auto;
}

/* ===== CHATBOT ===== */
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #6a0dad;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  z-index: 9999;
}

#chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-height: 420px;
  background: #fff;
  border-radius: 12px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  z-index: 9999;
}

.chatbot-header {
  background: linear-gradient(135deg, #6a0dad, #ff7a18);
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

#chatbot-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.chatbot-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chatbot-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

.chatbot-input button {
  background: #6a0dad;
  color: #fff;
  border: none;
  padding: 0 14px;
}
#chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
}

#chatbot {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  height: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}
