:root { --bg: #0b0a14; --surface: #1f1740; --surface-alt: #2a174f; --text: #e8e3ff; --text-secondary: #b8a7d2; --text-muted: #8a7aaa; --accent: #6bd3ff; --accent-hover: #4fc3f7; --accent-light: rgba(107, 211, 255, 0.1); --border: #2a1950; --shadow: rgba(0, 0, 0, 0.3); --success: #4caf50; --warning: #ff9800; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; } #app { max-width: 600px; margin: 0 auto; padding: 2rem 1rem; } header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } h1 { font-size: 1.5rem; } #status { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--text-secondary); } #connection-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: middle; } #connection-status.connected::before { background: var(--success); } #connection-status.connecting::before { background: var(--warning); } /* Poll title */ #poll-title-section { margin-bottom: 1.5rem; } #poll-title { width: 100%; font-size: 1.3rem; font-weight: 600; border: none; border-bottom: 2px solid transparent; background: transparent; color: var(--text); padding: 0.4rem 0; outline: none; } #poll-title::placeholder { color: var(--text-muted); } #poll-title:hover { border-bottom-color: var(--border); } #poll-title:focus { border-bottom-color: var(--accent); } /* Add option */ #add-option { display: flex; gap: 0.5rem; margin-bottom: 1rem; } #option-input { flex: 1; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; outline: none; background: var(--surface); color: var(--text); } #option-input::placeholder { color: var(--text-muted); } #option-input:focus { border-color: var(--accent); } #add-btn { padding: 0.6rem 1.2rem; background: var(--accent); color: var(--bg); border: none; border-radius: 6px; font-size: 1rem; font-weight: 600; cursor: pointer; } #add-btn:hover { background: var(--accent-hover); } /* Total votes */ #total-votes { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1rem; font-weight: 500; } /* Poll options */ .poll-option { display: flex; align-items: center; background: var(--surface); padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 0.5rem; border: 1px solid var(--border); } .option-name { flex: 1; font-size: 1rem; } .vote-count { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); margin-right: 0.75rem; min-width: 1.5rem; text-align: center; } .vote-btn { padding: 0.4rem 1rem; border: 2px solid var(--accent); border-radius: 6px; font-size: 0.85rem; cursor: pointer; background: transparent; color: var(--accent); } .vote-btn:hover { background: var(--accent-light); } .vote-btn.voted { background: var(--accent); color: var(--bg); } .vote-btn.voted:hover { background: var(--accent-hover); } /* Empty state */ #empty-state { text-align: center; color: var(--text-muted); padding: 2rem; } #empty-state.hidden { display: none; } /* Share section */ #share-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-secondary); } #share-url-container { display: flex; gap: 0.5rem; margin-top: 0.5rem; align-items: center; } #share-url { flex: 1; background: var(--surface); padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid var(--border); font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); } #copy-btn { padding: 0.5rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; cursor: pointer; font-size: 0.8rem; color: var(--text-secondary); } #copy-btn:hover { background: var(--accent-light); color: var(--accent); }