/* === CHECKYBECKY — WARM CLARITY THEME FINAL v2 === */

/* === Container === */
.checkybecky-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
  border-radius: 16px;
  background: #FCFBFA; /* soft cream background */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  font-family: "Inter", sans-serif;
  color: #222;
}

/* === Chat Area === */
.cb-chat {
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 10px 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #eee;
}

/* === Message Bubbles === */
.cb-msg {
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 12px;
  line-height: 1.6;
  max-width: 85%;
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

.cb-user {
  background: #E4582F;      /* coral red-orange */
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 3px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1px;
}

.cb-assistant {
  background: #FCEFEA;      /* coral tint */
  border-left: 4px solid #E4582F;
  color: #222;
}

/* === Input Row === */
.cb-input {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.cb-input input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  outline: none;
  transition: 0.2s ease;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  color: #333;
  line-height: 1.5;
}
.cb-input input:focus {
  border-color: #E4582F;
  box-shadow: 0 0 0 3px rgba(228, 88, 47, 0.2);
  background: #fff8f6;
}

.cb-input button {
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  background: #E4582F;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cb-input button:hover {
  background: #cc4423;
}

/* === Checklist === */
.cb-list {
  margin-top: 18px;
}

.cb-list-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
  color: #222;
}

.cb-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cb-item .cb-item-text {
  flex: 1;
  font-size: 15px;
  font-family: "Inter", sans-serif;
}

.cb-item-del {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background-color: #FFE5E0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='%23E4582F' viewBox='0 0 24 24'><path d='M3 6h18v2H3V6zm2 3h14l-1.5 12.5a2 2 0 0 1-2 1.5H8.5a2 2 0 0 1-2-1.5L5 9zm5-5V3h4v1h5v2H5V4h5z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: transparent;
  text-indent: -9999px;
  overflow: hidden;
}

.cb-item-del:hover {
  background-color: #FFD9D1;
}

/* === Add Row === */
.cb-add-row {
  margin-top: 10px;
}
.cb-add-row input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
  transition: 0.2s ease;
  font-family: "Inter", sans-serif;
}
.cb-add-row input:focus {
  border-color: #E4582F;
  box-shadow: 0 0 0 3px rgba(228, 88, 47, 0.15);
}

/* === Actions === */
.cb-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.cb-actions button {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: #FFF6F4;
  color: #222;
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition: 0.2s ease;
}
.cb-actions button:hover {
  background: #FFE9E3;
}
.cb-actions button:active {
  background: #FFD9D1;
}

/* === Hint === */
.cb-hint {
  font-size: 13.5px;
  font-family: "Inter", sans-serif;
  line-height: 1.45;
  color: #9b7f72; /* warm neutral */
  text-align: left;
  margin: 6px 0 16px 4px;
}
.cb-hint::before {
  content: "💡 ";
  font-size: 14px;
  vertical-align: middle;
  opacity: 0.9;
}

/* === Print Mode === */
@media print {
  .cb-input, .cb-actions, .cb-chat { display: none; }
  .checkybecky-container { border: none; box-shadow: none; }
}

/* === Responsive === */
@media (max-width: 640px) {
  .checkybecky-container {
    padding: 16px;
  }
  .cb-input input {
    font-size: 14px;
  }
  .cb-msg {
    font-size: 12px;
  }
}

/* Print mode - only checklist is visible */
@media print {

    body * {
        visibility: hidden !important;
    }

    /* Only checklist area stays visible */
    .checkybecky-container .cb-list,
    .checkybecky-container .cb-list * {
        visibility: visible !important;
    }

    /* Position checklist at top-left so it prints clean */
    .checkybecky-container .cb-list {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        padding: 0;
        margin: 0;
    }
}
