/* off-stage-practice-www/logform.css  --  "log your practice" button + popup (uses the .win look from style.css) */

/* button in the avatar window's title bar, left of the x */
.win-log {
    margin-left: auto;
    flex: none;
    height: 24px;
    padding: 0 8px;
    border: 2px solid var(--win-ink);
    border-radius: 5px;
    background: #fff6d4;
    color: var(--win-ink);
    font-family: inherit;
    font-size: 9px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
}
.win-log:hover { background: #f1c40f; }
.win-log + .win-close { margin-left: 0; }
@media (max-width: 560px) { .win-log { font-size: 8px; padding: 0 5px; } }

/* the log window sits above the profile window */
#log-modal { z-index: 60; }
#log-modal .win { max-width: 520px; }

/* typing must work even though the page sets user-select:none everywhere */
#log-modal input, #log-modal textarea { user-select: text; -webkit-user-select: text; }

.lg-hello { font-size: 18px; margin-bottom: 2px; }
.lg-sub { color: #64748b; margin-bottom: 10px; }
.lg-sub button { all: unset; cursor: pointer; text-decoration: underline; }

.lg-q { border-top: 2px dashed #cbd5e1; padding: 10px 0 8px; font-size: 12px; }
.lg-q:first-of-type { border-top: 0; padding-top: 0; }
.lg-q > label.lg-title, .lg-q > .lg-title { display: block; font-size: 14px; margin-bottom: 4px; }
.lg-req { color: #c0291b; }
.lg-help { color: #64748b; margin-bottom: 4px; font-size: 10px; }

.lg-opt { display: flex; align-items: flex-start; gap: 6px; padding: 2px 0; cursor: pointer; }
.lg-en { color: #64748b; font-size: 0.85em; }
.lg-opt input { margin-top: 3px; accent-color: #1e7a3c; flex: none; }

.lg-field, .lg-other {
    width: 100%;
    border: 2px solid var(--pixel-border);
    border-radius: 4px;
    background: #ffffff;
    padding: 6px 8px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text);
}
.lg-field:focus, .lg-other:focus { outline: 3px solid #f1c40f; outline-offset: 0; }
textarea.lg-field { min-height: 86px; resize: vertical; line-height: 1.5; }
.lg-other { margin-top: 4px; }
.lg-date { width: auto; }

.lg-scale { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.lg-scale .lg-opt { flex-direction: column; align-items: center; padding: 0 6px; gap: 0; }
.lg-scale .lg-opt input { margin: 2px 0 0; }
.lg-end { color: #64748b; font-size: 10px; }

.lg-btn {
    border: 2px solid var(--pixel-border);
    border-radius: 5px;
    background: #1e7a3c;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    padding: 7px 16px;
    cursor: pointer;
    box-shadow: 2px 3px 0 rgba(15, 23, 42, 0.55);
}
.lg-btn:hover { background: #17622f; }
.lg-btn:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 rgba(15, 23, 42, 0.55); }
.lg-btn[disabled] { opacity: 0.55; cursor: wait; }

.lg-msg { margin-top: 8px; padding: 6px 8px; border: 2px solid var(--pixel-border); border-radius: 4px; background: #fff; }
.lg-msg.err { border-color: #c0291b; color: #931201; }
.lg-msg.ok { border-color: #1e7a3c; color: #14532d; }
.lg-msg:empty { display: none; }
.lg-edit { color: #1d51ff; margin-top: 4px; }
.lg-login { display: grid; gap: 8px; max-width: 320px; margin: 4px auto; }

@media (max-width: 560px) {
    .lg-field, .lg-other { font-size: 16px; }   /* stops iPhone Safari from zooming into the field */
}

/* photo upload */
.lg-file { font-family: inherit; font-size: 12px; max-width: 100%; }
.lg-photo-box { margin-top: 6px; }
.lg-thumb { display: block; max-width: 100%; max-height: 200px; border: 2px solid var(--pixel-border); border-radius: 4px; background: #fff; }
.lg-link { all: unset; cursor: pointer; text-decoration: underline; color: #c0291b; font-size: 11px; margin-top: 4px; display: inline-block; }

/* photo inside the profile window, under the day's notes (rendered by dayBody() in script.js) */
.p-photo { margin-top: 6px; }
.p-photo img { display: block; width: 100%; max-height: 320px; object-fit: contain; border: 2px solid var(--pixel-border); border-radius: 4px; background: #fff; image-rendering: auto; }

/* speech bubble: update / clear */
.lg-q input.lg-field:disabled { opacity: 0.45; cursor: not-allowed; }
.lg-q #lg-os { margin: 2px 0 6px; }
/* audio upload */
.lg-q #lg-audio { margin: 2px 0 2px; }
.lg-q input.lg-file:disabled { opacity: 0.45; cursor: not-allowed; }
.lg-audio-box audio { display: block; }

/* audio player inside the profile window, under the day's notes (rendered by dayBody() in script.js) */
.p-audio { margin-top: 6px; }
.p-audio audio { display: block; width: 100%; }