/* assets/css/filesender.css - scoped to the Temporary Chat + File Sender portal only */

.fs-wrap { max-width: 720px; margin: 0 auto; }
.fs-hero { text-align: center; margin-bottom: 28px; }
.fs-hero h1 { margin-bottom: 6px; }
.fs-hero p { color: var(--muted); }

.fs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .fs-cards { grid-template-columns: 1fr; } }

.fs-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-align: center; }
.fs-card .fs-icon { font-size: 40px; margin-bottom: 10px; }
.fs-card h3 { margin: 0 0 8px; }
.fs-card p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.fs-card select, .fs-card input[type="text"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-alt); color: var(--text); margin-bottom: 12px; font-size: 15px; text-align: center; letter-spacing: 1px; }
.fs-btn { display: inline-block; width: 100%; padding: 12px; border-radius: 10px; border: none; background: var(--primary); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.fs-btn:hover { filter: brightness(1.08); }
.fs-btn.secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.fs-btn.danger { background: #c0392b; color: #fff; }
.fs-btn:disabled { opacity: .55; cursor: not-allowed; }

.fs-result { background: var(--surface-alt); border: 1px dashed var(--primary); border-radius: 14px; padding: 22px; text-align: center; margin-top: 20px; }
.fs-code-big { font-size: 32px; font-weight: 800; letter-spacing: 4px; color: var(--primary); margin: 10px 0; }
.fs-qr { margin: 14px auto; display: flex; justify-content: center; }
.fs-qr canvas, .fs-qr img { border-radius: 10px; background: #fff; padding: 8px; }

.fs-error { background: var(--danger-bg,#fde8e8); color: var(--danger,#c0392b); padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; text-align: center; }

/* ---- Room layout ---- */
.fs-room { display: flex; flex-direction: column; height: calc(100vh - 200px); min-height: 480px; max-width: 780px; margin: 0 auto; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.fs-room-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-alt); flex-wrap: wrap; }
.fs-room-header .fs-rh-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fs-room-code { font-weight: 800; letter-spacing: 2px; font-size: 16px; }
.fs-pill { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.fs-pill.live { color: #1a9c58; border-color: #1a9c58; }
.fs-room-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fs-icon-btn { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; color: var(--text); text-decoration: none; }

.fs-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg, var(--surface)); }
.fs-msg { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.fs-msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.fs-msg.them { align-self: flex-start; background: var(--surface-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.fs-msg .fs-meta { font-size: 10px; opacity: .7; margin-top: 4px; }
.fs-msg-system { align-self: center; font-size: 11px; color: var(--muted); background: transparent; }

.fs-filecard { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.fs-filecard .fs-fic { font-size: 26px; }
.fs-filecard .fs-fname { font-weight: 600; font-size: 13px; word-break: break-all; }
.fs-filecard .fs-fsize { font-size: 11px; opacity: .8; }
.fs-filecard img.fs-thumb { max-width: 180px; max-height: 180px; border-radius: 8px; display: block; margin-top: 6px; }
.fs-filecard .fs-dl { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; color: inherit; }

.fs-uploading { align-self: flex-end; max-width: 78%; background: var(--surface-alt); border: 1px dashed var(--primary); border-radius: 14px; padding: 9px 13px; font-size: 12px; }
.fs-progress-bar { height: 6px; border-radius: 4px; background: var(--border); margin-top: 6px; overflow: hidden; }
.fs-progress-bar > span { display: block; height: 100%; background: var(--primary); width: 0%; transition: width .2s; }

.fs-composer { border-top: 1px solid var(--border); padding: 10px; display: flex; gap: 8px; align-items: flex-end; background: var(--surface); }
.fs-composer textarea { flex: 1; resize: none; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; background: var(--surface-alt); color: var(--text); max-height: 90px; }
.fs-composer button { border: none; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-size: 15px; }
.fs-send-btn { background: var(--primary); color: #fff; }
.fs-attach-btn { background: var(--surface-alt); border: 1px solid var(--border) !important; }

.fs-dropzone { position: absolute; inset: 0; background: rgba(91,61,240,0.12); border: 3px dashed var(--primary); display: none; align-items: center; justify-content: center; font-weight: 700; color: var(--primary); z-index: 5; border-radius: 16px; pointer-events: none; }
.fs-dropzone.active { display: flex; }
.fs-room { position: relative; }

.fs-closed-banner { text-align: center; padding: 40px 20px; color: var(--muted); }
