*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:#f5f7fa;color:#333;font-size:14px}
.layout{display:flex;min-height:100vh}
.sidebar{width:220px;background:#1a2332;color:#fff;flex-shrink:0;position:fixed;height:100vh;overflow-y:auto}
.sidebar .logo{padding:20px;font-size:18px;font-weight:bold;border-bottom:1px solid #2d3a4d}
.sidebar .logo span{color:#4fc3f7}
.sidebar nav{padding:10px 0}
.sidebar nav a{display:block;padding:12px 20px;color:#a0aec0;text-decoration:none;transition:all .2s;border-left:3px solid transparent}
.sidebar nav a:hover,.sidebar nav a.active{color:#fff;background:#2d3a4d;border-left-color:#4fc3f7}
.sidebar nav a i{margin-right:8px;width:16px;display:inline-block;text-align:center}
.main{flex:1;margin-left:220px;padding:20px}
.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding:15px 20px;background:#fff;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.topbar .user-info{display:flex;align-items:center;gap:12px}
.topbar .avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#4fc3f7,#29b6f6);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:bold}
.topbar .user-detail .name{font-weight:600}
.topbar .user-detail .role{font-size:12px;color:#888}
.topbar .actions{display:flex;gap:10px}
.btn{padding:8px 16px;border:none;border-radius:6px;cursor:pointer;font-size:13px;transition:all .2s;display:inline-flex;align-items:center;gap:6px}
.btn-primary{background:#4fc3f7;color:#fff}
.btn-primary:hover{background:#29b6f6}
.btn-success{background:#66bb6a;color:#fff}
.btn-success:hover{background:#4caf50}
.btn-warning{background:#ffa726;color:#fff}
.btn-warning:hover{background:#ff9800}
.btn-danger{background:#ef5350;color:#fff}
.btn-danger:hover{background:#f44336}
.btn-outline{background:transparent;border:1px solid #ddd;color:#666}
.btn-outline:hover{border-color:#4fc3f7;color:#4fc3f7}
.card{background:#fff;border-radius:8px;padding:20px;margin-bottom:16px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.card-title{font-size:16px;font-weight:600;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center}
.card-title .more{font-size:12px;color:#4fc3f7;cursor:pointer}
.grid{display:grid;gap:16px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.stat-card{background:#fff;border-radius:8px;padding:18px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.stat-card .label{font-size:12px;color:#888;margin-bottom:6px}
.stat-card .value{font-size:24px;font-weight:bold;color:#1a2332}
.stat-card .change{font-size:12px;margin-top:4px}
.stat-card .change.up{color:#66bb6a}
.stat-card .change.down{color:#ef5350}
.stat-card .trend{font-size:11px;color:#aaa;margin-top:2px}
.analysis-box{background:#f0f7ff;border-left:4px solid #4fc3f7;padding:14px 16px;border-radius:0 6px 6px 0;margin-bottom:12px}
.analysis-box .title{font-weight:600;color:#1565c0;margin-bottom:6px;font-size:13px}
.analysis-box .content{font-size:13px;color:#444;line-height:1.6}
.analysis-box.warning{background:#fff8e1;border-left-color:#ffa726}
.analysis-box.warning .title{color:#e65100}
.analysis-box.danger{background:#ffebee;border-left-color:#ef5350}
.analysis-box.danger .title{color:#c62828}
.analysis-box.success{background:#e8f5e9;border-left-color:#66bb6a}
.analysis-box.success .title{color:#2e7d32}
.suggestion-item{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #f0f0f0}
.suggestion-item:last-child{border-bottom:none}
.suggestion-item .info{flex:1}
.suggestion-item .info .title{font-weight:500;margin-bottom:4px}
.suggestion-item .info .desc{font-size:12px;color:#888}
.suggestion-item .action{margin-left:12px}
.chat-box{display:flex;flex-direction:column;height:400px}
.chat-messages{flex:1;overflow-y:auto;padding:10px;background:#f9f9f9;border-radius:6px;margin-bottom:10px}
.chat-msg{margin-bottom:10px;display:flex}
.chat-msg.user{justify-content:flex-end}
.chat-msg .bubble{max-width:75%;padding:10px 14px;border-radius:12px;font-size:13px;line-height:1.5}
.chat-msg.ai .bubble{background:#fff;border:1px solid #e0e0e0;border-bottom-left-radius:2px}
.chat-msg.user .bubble{background:#4fc3f7;color:#fff;border-bottom-right-radius:2px}
.chat-input{display:flex;gap:8px}
.chat-input input{flex:1;padding:10px 14px;border:1px solid #ddd;border-radius:6px;font-size:13px}
.chat-input button{padding:10px 20px}
table{width:100%;border-collapse:collapse;font-size:13px}
table th{text-align:left;padding:10px 12px;background:#f8f9fa;color:#666;font-weight:500;border-bottom:2px solid #eee}
table td{padding:10px 12px;border-bottom:1px solid #f0f0f0}
table tr:hover{background:#fafafa}
.badge{padding:3px 8px;border-radius:10px;font-size:11px;font-weight:500}
.badge-success{background:#e8f5e9;color:#2e7d32}
.badge-warning{background:#fff8e1;color:#e65100}
.badge-danger{background:#ffebee;color:#c62828}
.badge-info{background:#e3f2fd;color:#1565c0}
.progress{height:6px;background:#eee;border-radius:3px;overflow:hidden;margin-top:6px}
.progress-bar{height:100%;background:linear-gradient(90deg,#4fc3f7,#29b6f6);border-radius:3px}
.tab-bar{display:flex;border-bottom:2px solid #eee;margin-bottom:16px}
.tab-bar .tab{padding:10px 20px;cursor:pointer;font-size:13px;color:#888;border-bottom:2px solid transparent;margin-bottom:-2px}
.tab-bar .tab.active{color:#4fc3f7;border-bottom-color:#4fc3f7;font-weight:500}
.hidden{display:none}
.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}
.modal{background:#fff;border-radius:10px;padding:24px;width:90%;max-width:500px;max-height:80vh;overflow-y:auto}
.modal h3{margin-bottom:16px}
.modal .form-group{margin-bottom:14px}
.modal label{display:block;font-size:13px;margin-bottom:6px;color:#555}
.modal input,.modal select,.modal textarea{width:100%;padding:9px 12px;border:1px solid #ddd;border-radius:6px;font-size:13px}
.modal .modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
