:root{--primary: #3b82f6;--primary-light: #eff6ff;--success: #10b981;--bg: #f8fafc;--text-main: #1e293b;--text-muted: #64748b;--card-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--glass: rgba(255, 255, 255, .8)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background-color:var(--bg);color:var(--text-main);height:100vh;overflow:hidden}.app-container{display:flex;flex-direction:column;height:100vh}.app-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:#fff;border-bottom:1px solid #e2e8f0;z-index:10}.logo{display:flex;align-items:center;gap:12px}.logo-icon{background:linear-gradient(135deg,#3b82f6,#8b5cf6);width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #3b82f64d}.logo h1{font-size:1.25rem;font-weight:800}.logo h1 span{font-size:.8rem;color:var(--text-muted);font-weight:400;margin-left:4px}.sync-status{display:flex;align-items:center;gap:6px;font-size:.75rem;color:var(--text-muted);background:var(--bg);padding:6px 12px;border-radius:20px;transition:all .3s}.syncing{color:var(--primary);animation:pulse 1.5s infinite}@keyframes pulse{0%{opacity:.6}50%{opacity:1}to{opacity:.6}}.main-content{display:flex;flex:1;overflow:hidden}.side-nav{width:240px;background:#fff;border-right:1px solid #e2e8f0;padding:1.5rem 1rem;display:flex;flex-direction:column;gap:8px}.side-nav button{display:flex;align-items:center;gap:12px;padding:12px 16px;border:none;background:none;border-radius:12px;color:var(--text-muted);font-weight:500;cursor:pointer;transition:all .2s;text-align:left}.side-nav button:hover{background:var(--primary-light);color:var(--primary)}.side-nav button.active{background:var(--primary);color:#fff;box-shadow:0 4px 12px #3b82f633}.view-area{flex:1;padding:2rem;overflow-y:auto;background:#f8fafc}.welcome-card{background:#fff;padding:2rem;border-radius:24px;display:flex;justify-content:space-between;align-items:center;box-shadow:var(--card-shadow);margin-bottom:2rem;background:linear-gradient(to right,#fff,#f0f7ff)}.card-info h2{font-size:1.75rem;margin-bottom:.5rem}.card-info p{color:var(--text-muted);margin-bottom:1.5rem}.progress-bar-container{width:300px;height:8px;background:#e2e8f0;border-radius:4px;overflow:hidden}.progress-bar{height:100%;background:var(--primary);transition:width .8s cubic-bezier(.34,1.56,.64,1)}.quick-list h3{margin-bottom:1rem;font-size:1.1rem}.quick-item{background:#fff;padding:1rem 1.5rem;border-radius:16px;display:flex;align-items:center;gap:16px;margin-bottom:12px;cursor:pointer;transition:transform .2s;border:1px solid transparent}.quick-item:hover{transform:translate(8px);border-color:var(--primary-light)}.item-time{font-weight:700;color:var(--primary);background:var(--primary-light);padding:4px 8px;border-radius:6px;font-size:.85rem}.item-name{flex:1;font-weight:500}.add-box{display:flex;gap:12px;margin-bottom:2rem}.add-box input[type=text]{flex:1;padding:12px 20px;border-radius:12px;border:2px solid #e2e8f0;outline:none;transition:border-color .2s}.add-box input:focus{border-color:var(--primary)}.add-box input[type=time]{padding:0 12px;border-radius:12px;border:2px solid #e2e8f0}.add-box button{background:var(--primary);color:#fff;border:none;width:48px;border-radius:12px;cursor:pointer}.habit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.habit-card{background:#fff;padding:1.5rem;border-radius:20px;box-shadow:var(--card-shadow);border:2px solid transparent;transition:all .3s}.habit-card.done{opacity:.7;background:#f1f5f9}.card-header{display:flex;justify-content:space-between;margin-bottom:1rem}.time-tag{font-size:.75rem;color:var(--text-muted);display:flex;align-items:center;gap:4px}.del-btn{background:none;border:none;color:#cbd5e1;cursor:pointer}.del-btn:hover{color:#ef4444}.habit-card h4{margin-bottom:4px;font-size:1.1rem}.habit-card p{font-size:.85rem;color:var(--text-muted);margin-bottom:1.5rem}.card-footer{display:flex;justify-content:space-between;align-items:center}.check-btn{background:var(--primary-light);color:var(--primary);border:none;padding:8px 16px;border-radius:10px;font-weight:600;cursor:pointer}.habit-card.done .check-btn{background:var(--success);color:#fff}.ai-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.ai-title{display:flex;align-items:center;gap:10px}.ai-gen-btn{background:linear-gradient(135deg,#8b5cf6,#3b82f6);color:#fff;border:none;padding:10px 20px;border-radius:12px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px #8b5cf64d}.ai-gen-btn.loading{opacity:.7;cursor:wait}.timeline{position:relative;padding-left:20px}.timeline:before{content:"";position:absolute;left:60px;top:0;bottom:0;width:2px;background:#e2e8f0}.timeline-item{display:flex;gap:40px;margin-bottom:30px}.time-col{width:60px;display:flex;flex-direction:column;align-items:center;font-size:.75rem;color:var(--text-muted)}.time-col .line{flex:1;width:2px;background:#e2e8f0;margin:4px 0}.content-col{flex:1}.task-bubble{background:#fff;padding:1rem 1.5rem;border-radius:16px;box-shadow:var(--card-shadow);border-left:4px solid var(--primary);position:relative}.task-bubble:before{content:"";position:absolute;left:-49px;top:50%;transform:translateY(-50%);width:12px;height:12px;background:#fff;border:3px solid var(--primary);border-radius:50%;z-index:2}
