.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a1a2e,#16213e)}.login-container{background:#fff;border-radius:16px;box-shadow:0 10px 40px #0000004d;padding:40px;width:100%;max-width:400px;margin:20px}.login-header{text-align:center;margin-bottom:32px}.login-header h1{font-size:24px;color:#1a1a2e;font-weight:700;margin-bottom:8px}.login-header .powered-by{font-size:12px;color:#888}.form-group{margin-bottom:20px}.form-group label{display:block;font-size:14px;font-weight:500;color:#333;margin-bottom:8px}.form-group .input{width:100%}.btn-group{display:flex;gap:12px;margin-top:28px}.btn-group .btn{flex:1}.message{padding:12px 16px;border-radius:8px;font-size:13px;margin-bottom:20px}.message.error{background:#fee;color:#c00}.message.success{background:#efe;color:#080}.mode-toggle{text-align:center;margin-top:24px;font-size:14px;color:#666}.link-btn{background:none;border:none;color:#0f3460;font-size:14px;font-weight:500;cursor:pointer;padding:0}.link-btn:hover{text-decoration:underline}.chat-page{display:flex;flex-direction:column;height:100%;background:#f5f5f5}.welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:16px;color:#666;padding:20px}.welcome h2{font-size:20px;color:#333;font-weight:600}.welcome p{font-size:14px}.sample-questions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:700px}.sample-q{background:#fff;border:1px solid #ddd;border-radius:8px;padding:8px 14px;font-size:13px;cursor:pointer;color:#0f3460;transition:all .15s}.sample-q:hover{background:#0f3460;color:#fff;border-color:#0f3460}.messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.msg{max-width:85%;padding:12px 16px;border-radius:12px;line-height:1.5;font-size:14px;word-wrap:break-word}.msg.user{align-self:flex-end;background:#0f3460;color:#fff;border-bottom-right-radius:4px}.msg.assistant{align-self:flex-start;background:#fff;color:#222;border-bottom-left-radius:4px;box-shadow:0 1px 3px #0000001a;max-width:90%}.msg.error{border-left:3px solid #e74c3c}.error-text{color:#c00;margin-bottom:10px}.chart-container{margin:10px 0;padding:16px;background:#fafafa;border-radius:8px;border:1px solid #eee}.chart-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.chart-header h4{font-size:14px;font-weight:600;color:#333;margin:0}.save-btn{display:flex;align-items:center;gap:6px;background:#10b981;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:12px;cursor:pointer;transition:background .2s}.save-btn:hover{background:#059669}.save-btn svg{flex-shrink:0}.table-wrap{max-height:300px;overflow:auto;border:1px solid #e0e0e0;border-radius:6px;margin-top:10px}.result-table{width:100%;border-collapse:collapse;font-size:13px}.result-table th,.result-table td{text-align:left;padding:6px 10px;border-bottom:1px solid #e0e0e0}.result-table th{background:#f7f7f7;font-weight:600;position:sticky;top:0}.result-table tr:hover td{background:#f0f4ff}.row-count{font-size:12px;color:#888;margin-top:8px}.sql-block{margin-top:12px}.sql-block summary{cursor:pointer;font-size:12px;color:#666}.sql-code{margin-top:8px;background:#f0f0f0;padding:12px;border-radius:6px;font-family:SF Mono,Menlo,monospace;font-size:12px;white-space:pre-wrap;overflow-x:auto}.typing{color:#888;font-size:13px}.input-bar{display:flex;gap:8px;padding:12px 20px;background:#fff;border-top:1px solid #ddd}.input-bar .input{flex:1}.chart-card{background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;height:100%;display:flex;flex-direction:column;overflow:hidden}.chart-card-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eee;cursor:move}.chart-title{font-size:14px;font-weight:600;color:#333;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chart-menu-container{position:relative}.menu-btn{background:none;border:none;padding:4px;cursor:pointer;color:#888;border-radius:4px;display:flex;align-items:center;justify-content:center}.menu-btn:hover{background:#f0f0f0;color:#333}.chart-menu{position:absolute;top:100%;right:0;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:140px;z-index:100;overflow:hidden}.chart-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:10px 14px;border:none;background:none;font-size:13px;color:#333;cursor:pointer;text-align:left}.chart-menu button:hover{background:#f5f5f5}.chart-menu button.delete-option{color:#e74c3c}.chart-menu button.delete-option:hover{background:#fee}.chart-card-body{flex:1;padding:8px 12px 12px;overflow:hidden;display:flex;flex-direction:column;min-height:0}.chart-card-body>div{flex:1;min-height:0}.chart-loading,.chart-error{color:#888;font-size:13px}.chart-error{color:#e74c3c}.delete-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.delete-modal{background:#fff;border-radius:12px;padding:24px;max-width:400px;width:90%}.delete-modal h4{margin:0 0 12px;font-size:18px;color:#333}.delete-modal p{margin:0 0 20px;color:#666;font-size:14px}.delete-modal-actions{display:flex;gap:10px;justify-content:flex-end}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover{background:#c0392b}.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.dashboard-page{flex:1;overflow:auto;background:#f0f2f5}.dashboard-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#888;text-align:center;padding:40px}.dashboard-empty svg{margin-bottom:20px;color:#ccc}.dashboard-empty h3{font-size:20px;font-weight:600;color:#555;margin:0 0 12px}.dashboard-empty p{font-size:14px;line-height:1.6;margin:0}.dashboard-grid-container{min-height:100%;width:100%;max-width:1200px;margin:0 auto}.dashboard-grid{min-height:calc(100vh - 100px)}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform;box-shadow:0 8px 24px #00000026}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px;bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:5px;bottom:5px;width:8px;height:8px;border-right:2px solid rgba(0,0,0,.2);border-bottom:2px solid rgba(0,0,0,.2)}.react-grid-item:hover>.react-resizable-handle:after{border-color:#0006}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0003;width:100%;max-width:450px;margin:20px}.modal-header{padding:20px 24px;border-bottom:1px solid #eee;display:flex;align-items:center;justify-content:space-between}.modal-header h2{font-size:18px;font-weight:600;color:#333}.modal-close{background:none;border:none;cursor:pointer;padding:4px;color:#888;display:flex;align-items:center;justify-content:center}.modal-close:hover{color:#333}.modal-body{padding:24px}.settings-section{margin-bottom:24px}.settings-section:last-child{margin-bottom:0}.settings-section h3{font-size:14px;font-weight:600;color:#333;margin-bottom:12px}.settings-row{display:flex;gap:10px}.settings-row .input{flex:1}.settings-current{font-size:13px;color:#666;margin-bottom:10px}.settings-message{font-size:12px;margin-top:8px}.settings-message.success{color:#080}.settings-message.error{color:#c00}.main-page{display:flex;flex-direction:column;height:100vh}.header{background:#1a1a2e;color:#fff;padding:12px 20px;display:flex;align-items:center;gap:16px;flex-shrink:0}.header-title{display:flex;flex-direction:column}.header-title h1{font-size:18px;font-weight:600}.header-title .powered-by{font-size:11px;color:#8a8aaf;font-weight:400}.header-tabs{display:flex;gap:4px;margin-left:24px}.tab-btn{background:transparent;border:none;color:#8a8aaf;padding:8px 16px;font-size:14px;font-weight:500;cursor:pointer;border-radius:6px;transition:all .2s}.tab-btn:hover{color:#fff;background:#ffffff1a}.tab-btn.active{color:#fff;background:#ffffff26}.company-select{padding:6px 10px;border-radius:6px;border:1px solid #444;background:#16213e;color:#fff;font-size:14px;margin-left:auto}.header-right{display:flex;align-items:center;gap:12px}.user-info{font-size:13px;color:#8a8aaf}.settings-btn{background:none;border:none;color:#fff;cursor:pointer;padding:8px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background .2s}.settings-btn:hover{background:#ffffff1a}.settings-btn svg{width:20px;height:20px}.logout-btn{background:#ffffff1a;border:none;color:#fff;cursor:pointer;padding:6px 12px;border-radius:6px;font-size:12px;transition:background .2s}.logout-btn:hover{background:#fff3}.main-content{flex:1;overflow:hidden;display:flex;flex-direction:column}*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f5f5f5;min-height:100vh}#root{min-height:100vh;display:flex;flex-direction:column}.btn{padding:10px 20px;border:none;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary{background:#0f3460;color:#fff}.btn-primary:hover{background:#0a2540}.btn-secondary{background:#f5f5f5;color:#333;border:1px solid #ddd}.btn-secondary:hover{background:#e8e8e8}.btn:disabled{opacity:.5;cursor:not-allowed}.input{padding:10px 14px;border:1px solid #ddd;border-radius:8px;font-size:14px;outline:none;transition:border-color .2s,box-shadow .2s}.input:focus{border-color:#0f3460;box-shadow:0 0 0 3px #0f34601a}.react-grid-layout{position:relative}.react-grid-item{transition:all .2s ease;transition-property:left,top}.react-grid-item.cssTransforms{transition-property:transform}.react-grid-item.resizing{z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}
