body { font-family: sans-serif; padding: 20px; margin: 0; background: #f4f4f4; }
.container { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
h1 { font-size: 1.2rem; margin-top: 0; color: #333; }

.room-actions { display: flex; gap: 8px; margin-bottom: 15px; }
.room-btn { background: #007bff; color: white; border: none; padding: 10px 14px; border-radius: 4px; font-size: 0.9rem; font-weight: bold; cursor: pointer; width: 100%; }

#url-share-area { background: #e6f7ff; border: 1px solid #91d5ff; padding: 15px; border-radius: 6px; margin-bottom: 20px; }
.share-title { margin: 0 0 10px 0; font-size: 0.85rem; color: #0050b3; font-weight: bold; }
#generated-url-input { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 10px; background: #fafafa; font-size: 0.85rem; }
#copy-btn { width: 100%; padding: 10px; background: #1890ff; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }

#login-user-display { margin: 0 0 15px 0; font-size: 0.85rem; color: #666; display: flex; align-items: center; }
.input-group { display: flex; gap: 8px; margin-bottom: 20px; }
input[type="text"] { flex: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.add-btn { padding: 10px 16px; background: #06C755; color: white; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; }

.tab-group { display: flex; border-bottom: 2px solid #ccc; margin-bottom: 15px; }
.tab-btn { flex: 1; padding: 10px; background: none; border: none; font-size: 1rem; cursor: pointer; color: #666; font-weight: bold; }
.tab-btn.active { border-bottom: 3px solid #06C755; color: #06C755; }

ul { list-style: none; padding: 0; margin: 0; }
li { padding: 14px 12px; border-bottom: 1px solid #eee; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.task-content { width: 100%; font-size: 1rem; color: #333; word-break: break-all; }

.task-footer-row { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; gap: 10px; }
.task-meta-row { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.task-meta { display: grid; grid-template-columns: 20px 1fr; align-items: flex-start; gap: 6px; font-size: 0.75rem; color: #777; line-height: 1.4; }
.meta-text { display: flex; flex-direction: column; gap: 1px; }

.task-user { color: #06C755; font-weight: bold; }
.task-completed-user { color: #ff4d4d; font-weight: bold; }
.user-avatar { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; margin-top: 1px; }
.login-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }

.btn-group { display: flex; gap: 6px; flex-shrink: 0; } 
.done-btn { background: #ff4d4d; padding: 6px 12px; font-size: 0.8rem; color: white; border: none; border-radius: 4px; cursor: pointer; }
.restore-btn { background: #007bff; padding: 6px 12px; font-size: 0.8rem; color: white; border: none; border-radius: 4px; cursor: pointer; }
.delete-btn { background: #666; padding: 6px 12px; font-size: 0.8rem; color: white; border: none; border-radius: 4px; cursor: pointer; }
.completed-text { color: #888; text-decoration: line-through; }

#room-history-area { background: #f9f9f9; border: 1px solid #e8e8e8; padding: 15px; border-radius: 6px; margin-top: 30px; }
.history-title { margin: 0 0 12px 0; font-size: 0.85rem; color: #555; font-weight: bold; }
.history-btn { width: 100%; padding: 10px; background: #fff; border: 1px solid #1890ff; color: #1890ff; border-radius: 4px; font-size: 0.9rem; text-align: left; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.history-btn:active { background: #e6f7ff; }
.error-alert { background: #fff1f0; border: 1px solid #ffa39e; color: #cf1322; padding: 15px; border-radius: 6px; margin-bottom: 20px; font-size: 0.9rem; font-weight: bold; display: none; line-height: 1.5; }

        .policy-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; }
        .policy-content { background: white; padding: 20px; border-radius: 8px; max-width: 500px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 0.85rem; color: #444; line-height: 1.6; text-align: left; }
        .policy-content h2 { font-size: 1.1rem; margin-top: 0; color: #333; border-bottom: 2px solid #eee; padding-bottom: 8px; }
        .policy-content h3 { font-size: 0.95rem; margin: 15px 0 5px 0; color: #333; }
        .policy-close-btn { width: 100%; padding: 10px; background: #666; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; margin-top: 20px; }
        .footer-link-area { text-align: center; margin-top: 30px; font-size: 0.75rem; }
        .footer-link-area a { color: #999; text-decoration: none; margin: 0 10px; }
        .footer-link-area a:hover { text-decoration: underline; }
