* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f4f5f7; color: #172b4d; }

.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f4f5f7; }
.login-box { background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); padding: 40px; width: 100%; max-width: 360px; }
.login-box h1 { font-size: 1.3rem; margin: 0 0 20px; text-align: center; }
.login-box label { display: block; font-size: 0.8rem; font-weight: 600; margin: 14px 0 6px; color: #444; }
.login-box input { width: 100%; padding: 10px 12px; border: 1px solid #dcdfe4; border-radius: 6px; font-size: 0.95rem; }
.login-box button { width: 100%; margin-top: 20px; padding: 11px; background: #0052cc; color: #fff; border: none; border-radius: 6px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.login-box button:hover { background: #0747a6; }
.error { background: #ffebe6; color: #bf2600; padding: 10px 12px; border-radius: 6px; font-size: 0.85rem; margin-bottom: 4px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #fff; border-bottom: 1px solid #dcdfe4; }
.topbar-title { font-size: 1.1rem; font-weight: 700; }
.topbar-user { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; color: #444; }
.topbar-btn { color: #0052cc; text-decoration: none; font-size: 0.85rem; padding: 6px 12px; border: 1px solid #dcdfe4; border-radius: 6px; }
.topbar-btn:hover { background: #f4f5f7; }

.board { display: flex; gap: 16px; padding: 24px; overflow-x: auto; align-items: flex-start; min-height: calc(100vh - 60px); }
.column {
    background: #fff; border: 1px solid #dcdfe4; border-radius: 10px;
    width: 260px; min-width: 260px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.column.dragging { opacity: 0.4; }
.column-ghost { background: transparent; border: 2px dashed #c1c7d0; box-shadow: none; display: flex; align-items: center; justify-content: center; min-height: 60px; }
.column-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.column-title { font-weight: 700; font-size: 0.95rem; cursor: text; flex: 1; word-break: break-word; }
.column-title input { width: 100%; font: inherit; font-weight: 700; padding: 2px 4px; border: 1px solid #4c9aff; border-radius: 4px; }
.col-del { background: none; border: none; color: #97a0af; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 4px; flex-shrink: 0; }
.col-del:hover { color: #bf2600; }

.sub-list { display: flex; flex-direction: column; gap: 8px; min-height: 12px; }
.sub-item {
    display: flex; align-items: center; gap: 8px; background: #f9fafb; border: 1px solid #e4e7eb;
    border-radius: 6px; padding: 8px 10px; cursor: grab;
}
.sub-item.dragging { opacity: 0.4; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; cursor: pointer; border: 1px solid rgba(0,0,0,0.1); }
.status-0 { background: #c1c7d0; }
.status-1 { background: #ffab00; }
.status-2 { background: #36b37e; }
.sub-title { flex: 1; font-size: 0.85rem; cursor: text; word-break: break-word; }
.sub-title input { width: 100%; font: inherit; padding: 2px 4px; border: 1px solid #4c9aff; border-radius: 4px; }
.sub-del { background: none; border: none; color: #97a0af; cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 2px; opacity: 0; transition: opacity 0.15s; flex-shrink: 0; }
.sub-item:hover .sub-del { opacity: 1; }
.sub-del:hover { color: #bf2600; }

.add-sub-btn, .add-main-btn {
    width: 100%; margin-top: 10px; background: none; border: 1px dashed #c1c7d0; color: #5e6c84;
    padding: 8px; border-radius: 6px; font-size: 0.82rem; cursor: pointer;
}
.add-sub-btn:hover, .add-main-btn:hover { background: #f4f5f7; border-color: #97a0af; color: #172b4d; }
.add-main-btn { border: none; font-size: 0.9rem; font-weight: 600; }

.inline-add-input, .inline-edit-input {
    width: 100%; padding: 6px 8px; border: 1px solid #4c9aff; border-radius: 6px; font-size: 0.85rem; margin-top: 8px;
}
.inline-edit-input.sub-edit { margin-top: 0; font-size: 0.85rem; }

@media (max-width: 600px) {
    .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .board { padding: 14px; }
}
