/* ---------------------------------------------------------
   GLOBAL RESET
---------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   DISPLAY PAGE BACKGROUND
---------------------------------------------------------- */
.display-body {
  background: #000000; /* change this to #000000 if needed */
  color: #111;
}

/* ---------------------------------------------------------
   INPUT PAGE BACKGROUND
---------------------------------------------------------- */
.input-body {
  background: #f4f4f4;
  color: #111;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ---------------------------------------------------------
   DISPLAY HEADER (logo + subtitle)
---------------------------------------------------------- */
#header {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  padding: 12px 30px;
  border-radius: 20px;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wallBrand {
  height: 58px;
  width: auto;
  display: block;
}

#subtitle {
  margin-top: 6px;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #444;
}

/* ---------------------------------------------------------
   NOTE COUNT LABEL (display)
---------------------------------------------------------- */
#noteCount {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 12px;
  z-index: 20;
}

/* ---------------------------------------------------------
   WALL CANVAS
---------------------------------------------------------- */
#wall {
  position: fixed;
  inset: 0;
}

/* ---------------------------------------------------------
   INPUT PAGE UI
---------------------------------------------------------- */
.input-container {
  width: min(480px, 92vw);
  margin-top: 12vh;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.input-container h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: #555;
}

/* Textarea */
textarea#message {
  width: 100%;
  min-height: 110px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fafafa;
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.4;
  resize: vertical;
}

textarea#message:focus {
  outline: none;
  border-color: #111827;
}

/* Row: color + send */
.input-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.color-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-label input[type="color"] {
  width: 40px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

/* Send button */
#sendBtn {
  background: #111827;
  color: #ffffff;
  border: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

#sendBtn:hover {
  background: #000000;
}

/* Status message */
.status {
  margin-top: 10px;
  font-size: 13px;
  min-height: 16px;
}

.status.ok { color: #16a34a; }
.status.error { color: #dc2626; }

/* ---------------------------------------------------------
   ADMIN PAGE (RESTORED)
---------------------------------------------------------- */
.admin-body {
  background: #0f172a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  color: #e5e7eb;
  font-family: "Inter", sans-serif;
}

.admin-container {
  width: min(900px, 100%);
  background: #1e293b;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.45);
}

.admin-container h1 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
}

#adminPw {
  width: 230px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e5e7eb;
}

#loginBtn {
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #4f46e5;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

#loginBtn:hover {
  background: #4338ca;
}

.admin-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.admin-actions button {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #e5e7eb;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}

.admin-actions button:hover {
  background: #1f2937;
}

.notes-list {
  max-height: 65vh;
  overflow-y: auto;
  margin-top: 10px;
}

.admin-note-card {
  background: #0f172a;
  border: 1px solid #334155;
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 10px;
}

.admin-note-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #9ca3af;
}

.admin-note-text {
  margin: 8px 0;
  font-size: 14px;
  white-space: pre-wrap;
  color: #e5e7eb;
}

.admin-note-actions {
  display: flex;
  gap: 10px;
}

.hideBtn {
  background: #0ea5e9;
  color: #0f172a;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.hideBtn:hover {
  background: #0284c7;
}

.deleteBtn {
  background: #ef4444;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
}

.deleteBtn:hover {
  background: #dc2626;
}
