/* Club048.css — final overlay (App-Bible friendly: styles in CSS) */

/* =========================
   Base layout / theme
   ========================= */

:root {
  --bg-page: #1f7a1f;          /* page background green */
  --bg-surface: #fffde7;       /* light cream surface */
  --bg-form: #fff59e;          /* yellow dialog */
  --edge: #000;

  --btn-edge: #000;
  --btn-text: #000;
  --btn-green: #16a34a;
  --btn-gray: #9ca3af;
  --btn-hover-shadow: rgba(0,0,0,.18);

  --msg-info: #111;
  --msg-success: #059669;
  --msg-error: #b91c1c;

  --header-green: #2e7d32;
  --header-text: #fff;
}

html, body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg-page);
  color: #111;
}

/* A page “surface” so you can read content on green background */
.ip48-surface {
  background: var(--bg-surface);
  padding: 14px;
}

/* =========================
   Header bar
   ========================= */

.page-header,
.headerBanner { /* supports either class if you still use headerBanner */
  background: var(--header-green);
  color: var(--header-text);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 3px solid #133e16;
}

.page-header .left { justify-self: start; font-weight: 600; }
.page-header .title { justify-self: center; font-weight: 800; letter-spacing: .3px; }
.page-header .right { justify-self: end; font-weight: 600; }

/* =========================
   Two-column layout (Form left, Messages right)
   ========================= */

#submissionLayout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
}

#formPane {
  flex: 0 0 760px;
}

#messagePane {
  flex: 1;
  min-width: 320px;

  /* Make message pane look like the dialog box */
  background: var(--bg-form);
  border: 2px solid var(--edge);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

@media (max-width: 1050px) {
  #submissionLayout { flex-direction: column; }
  #formPane, #messagePane { width: 100%; min-width: 0; }
}

/* =========================
   Form dialog
   ========================= */

#uploadForm {
  background: var(--bg-form);
  border: 2px solid var(--edge);
  padding: 14px;
  border-radius: 10px;
  max-width: 960px;
  margin: 16px auto 10px auto;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

#uploadForm label { display:inline-block; margin:6px 0 4px; }

#uploadForm .row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 10px 16px;
  align-items: center;
  margin: 6px 0;
}

#uploadForm .row.buttons { margin-top: 14px; }

@media (max-width:720px){
  #uploadForm .row { grid-template-columns:1fr; }
}

/* =========================
   Inputs
   ========================= */

#manuscriptUpload, #manuscriptName, input[type=text], input[type=email], input[type=file], select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #333;
  border-radius: 6px;
}

#manuscriptName[readonly] {
  background: #f7f7f7;
  color: #333;
}

.input-valid { background: #e8ffe8 !important; }
.input-error { background: #ffe8e8 !important; outline: 2px solid #ff9b9b; }

/* =========================
   Buttons
   ========================= */

.btn,
button.btn {
  appearance: none;
  border: 2px solid var(--btn-edge);
  background: #ffd54f;
  color: var(--btn-text);
  padding: 8px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .15s ease;
  box-shadow: 0 2px 0 #000;
  min-width: 110px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px var(--btn-hover-shadow);
}

.btn[disabled], button[disabled] {
  background: var(--btn-gray) !important;
  color: #222 !important;
  cursor: not-allowed;
}

/* If you use these IDs in HTML */
#btnSubmit.is-valid { background: var(--btn-green); color: #fff; }
#resetBtn, #btnReset { background: #fbbf24; }
#doneBtn, #btnDone { background: #60a5fa; color:#fff; }

.btns { display:flex; gap:8px; }

.admin-button {
  background-color: #004d80;
  border: 2px solid #003659;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 12px;
}
.admin-button:hover {
  background-color: #0066aa;
  border-color: #004d80;
}

/* =========================
   Tooltips
   ========================= */

[data-tooltip]{position:relative;}
[data-tooltip]::after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  background:#111;
  color:#fff;
  font-size:12px;
  padding:6px 8px;
  border-radius:6px;
  border:1px solid #000;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .15s ease,transform .15s ease;
}
[data-tooltip]:hover::after{
  opacity:1;
  transform:translateX(-50%) translateY(-2px);
}

/* =========================
   Countdown / status
   ========================= */

#countdown {
  display:none;
  border:2pt solid #000;
  background:#fff;
  padding:6px 10px;
  margin:10px auto;
  border-radius:8px;
  font-weight:700;
  width:fit-content;
}

/* =========================
   Messages (Readable like dialog)
   ========================= */

.messages-title, .msgTitle {
  margin: 0 0 6px 0;
  font-weight: 800;
}

#messageBox {
  background: #fff !important;
  color: #111 !important;
  border: 2px solid #111;
  border-radius: 8px;
  padding: 10px;
  height: 420px;
  overflow-y: auto;
  overflow-x: hidden;          /* prevents horizontal scrolling */
  font-size: 14px;
  line-height: 1.35;
}

#messageBox .msg { margin: 4px 0; }
#messageBox .msg.info { color:var(--msg-info); }
#messageBox .msg.success { color:var(--msg-success); }
#messageBox .msg.error { color:var(--msg-error); }

/* Focus ring */
input:focus, button:focus, select:focus { outline:2px dashed #000; outline-offset:3px; }
