/* Check-in dashboard (timelystay.com/checkin).
   Scoped to ci-* so it cannot leak into the marketing pages that share main.css. */

.ci-topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:24px}
.ci-topbar-actions{display:flex;gap:10px;align-items:center}
.ci-lang-select{padding:8px 12px;border:1px solid #dee2e6;border-radius:6px;font-size:14px;background:#fff}
.ci-btn-ghost{padding:8px 14px;border:1px solid #dee2e6;border-radius:6px;background:#fff;font-size:14px;cursor:pointer}
.ci-btn-ghost:hover{background:#f8f9fa}

.ci-card{background:#fff;border:1px solid #eceff3;border-radius:12px;padding:26px 28px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.ci-card h2{font-size:18px;font-weight:600;margin:0 0 16px;display:flex;align-items:center;gap:9px}
.ci-card h2 i{color:#3554d1}
.ci-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #f4f6f8;font-size:15px}
.ci-row:last-child{border-bottom:none}
.ci-row .k{color:#697488;flex-shrink:0}
.ci-row .v{font-weight:500;text-align:right;word-break:break-word}
.ci-note{margin-top:14px;font-size:14px;line-height:1.55;color:#4a5568}

/* Access codes: the one thing a guest scans for at the door. */
.ci-code-box{background:#fff8e1;border:1px solid #ffe082;border-radius:10px;padding:16px 18px;margin-bottom:12px}
.ci-code-label{font-size:13px;color:#7a5c00;margin-bottom:4px}
.ci-code-value{font-size:30px;font-weight:700;letter-spacing:3px;color:#3d2f00;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.ci-locked{background:#eef3ff;border:1px solid #c9d8ff;border-radius:10px;padding:16px 18px;font-size:14px;line-height:1.6;color:#1c3d8f}

.ci-tasks{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.ci-task{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #eceff3;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:500}
.ci-task.done{border-color:#b7e4c7;background:#f3fbf6;color:#1b6b3a}
.ci-task.todo{border-color:#ffd4d6;background:#fff6f6;color:#a52834}

/* Chat */
.ci-chat-card{display:flex;flex-direction:column;min-height:460px}
.ci-chat-log{flex:1;overflow-y:auto;max-height:420px;padding:6px 2px;display:flex;flex-direction:column;gap:10px}
.ci-msg{max-width:85%;padding:10px 14px;border-radius:14px;font-size:14.5px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}
.ci-msg.assistant{background:#f1f4f9;color:#1b2430;align-self:flex-start;border-bottom-left-radius:4px}
.ci-msg.user{background:#3554d1;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.ci-typing{align-self:flex-start;color:#8a94a6;font-size:13px;font-style:italic}
.ci-chat-form{display:flex;gap:8px;margin-top:14px;border-top:1px solid #f0f2f5;padding-top:14px}
.ci-chat-form input{flex:1;padding:11px 14px;border:1px solid #dee2e6;border-radius:8px;font-size:14.5px;font-family:inherit}
.ci-chat-form input:focus{outline:none;border-color:#3554d1}
.ci-chat-form button{padding:11px 18px;background:#3554d1;color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer}
.ci-chat-form button:disabled{opacity:.5;cursor:default}
.ci-chat-hint{font-size:12px;color:#8a94a6;margin-top:8px;line-height:1.5}

/* Tourist form */
.ci-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media (max-width:640px){.ci-form-grid{grid-template-columns:1fr}.ci-code-value{font-size:26px}}
.ci-field label{display:block;font-size:13px;color:#4a5568;margin-bottom:5px;font-weight:500}
.ci-field input,.ci-field select{width:100%;padding:10px 12px;border:1px solid #ced4da;border-radius:6px;font-size:14px;font-family:inherit;background:#fff}
.ci-submit{margin-top:18px;padding:12px 26px;background:#3554d1;color:#fff;border:none;border-radius:8px;font-weight:600;font-size:15px;cursor:pointer}
.ci-submit:disabled{opacity:.5;cursor:default}
.ci-form-msg{margin-top:10px;font-size:14px}

/* ---- Floating chat bubble (clinnco pattern: it must advertise itself, or nobody uses it) ---- */
#ci-widget{position:fixed;bottom:20px;right:20px;z-index:9999}
#ci-bubble{width:62px;height:62px;border-radius:50%;border:none;cursor:pointer;position:relative;
  background:linear-gradient(135deg,#3554d1 0%,#5b7cfa 100%);box-shadow:0 4px 18px rgba(53,84,209,.45);
  display:flex;align-items:center;justify-content:center;animation:ci-ring 2s ease-out infinite}
#ci-bubble::before{content:'';position:absolute;inset:0;border-radius:50%;
  background:linear-gradient(135deg,#3554d1 0%,#5b7cfa 100%);animation:ci-wave 2s ease-out infinite;z-index:-1}
#ci-bubble i{font-size:28px;color:#fff}
#ci-bubble:hover{transform:scale(1.07);animation:none}
#ci-bubble:hover::before{animation:none}
@keyframes ci-wave{0%{transform:scale(1);opacity:.75}100%{transform:scale(1.75);opacity:0}}
@keyframes ci-ring{0%{box-shadow:0 0 0 0 rgba(53,84,209,.6)}70%{box-shadow:0 0 0 14px rgba(53,84,209,0)}100%{box-shadow:0 0 0 0 rgba(53,84,209,0)}}
#ci-tip{position:absolute;right:74px;bottom:14px;background:#fff;color:#1b2430;padding:9px 15px;border-radius:20px;
  font-size:13.5px;font-weight:600;white-space:nowrap;box-shadow:0 4px 15px rgba(0,0,0,.15);animation:ci-bob 3s ease-in-out infinite}
#ci-tip::after{content:'';position:absolute;right:-7px;top:50%;transform:translateY(-50%);
  border:7px solid transparent;border-left-color:#fff;border-right:none}
@keyframes ci-bob{0%,100%{transform:translateX(0)}50%{transform:translateX(-5px)}}
#ci-tip.hide,#ci-panel.hide{display:none}
#ci-panel{position:absolute;bottom:76px;right:0;width:370px;max-width:calc(100vw - 40px);height:min(520px,70vh);
  background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.22);display:flex;flex-direction:column;overflow:hidden}
#ci-panel-head{background:linear-gradient(135deg,#3554d1 0%,#5b7cfa 100%);color:#fff;padding:14px 18px;
  display:flex;justify-content:space-between;align-items:center}
#ci-panel-head strong{font-size:15px}
#ci-panel-head .sub{font-size:11.5px;opacity:.9}
#ci-panel-close{background:none;border:none;color:#fff;font-size:24px;cursor:pointer;line-height:1}
#ci-widget .ci-chat-log{flex:1;max-height:none;padding:14px}
#ci-widget .ci-chat-form{padding:0 14px 6px;margin-top:0;border-top:1px solid #f0f2f5;padding-top:12px}
#ci-widget .ci-chat-hint{padding:0 14px 12px;margin-top:0}
@media(max-width:640px){#ci-panel{width:calc(100vw - 30px)}}
