@tailwind base;@tailwind components;@tailwind utilities;@layer base{:root{--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--card: 0 0% 100%;--card-foreground: 222.2 84% 4.9%;--popover: 0 0% 100%;--popover-foreground: 222.2 84% 4.9%;--primary: 222.2 47.4% 11.2%;--primary-foreground: 210 40% 98%;--secondary: 210 40% 96.1%;--secondary-foreground: 222.2 47.4% 11.2%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;--accent: 210 40% 96.1%;--accent-foreground: 222.2 47.4% 11.2%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 214.3 31.8% 91.4%;--input: 214.3 31.8% 91.4%;--ring: 222.2 84% 4.9%;--radius: .5rem;--color-border: hsl(var(--border));--color-background: hsl(var(--background));--color-foreground: hsl(var(--foreground));--color-primary: hsl(var(--primary));--color-primary-foreground: hsl(var(--primary-foreground));--color-secondary: hsl(var(--secondary));--color-secondary-foreground: hsl(var(--secondary-foreground));--color-muted: hsl(var(--muted));--color-muted-foreground: hsl(var(--muted-foreground));--color-accent: hsl(var(--accent));--color-accent-foreground: hsl(var(--accent-foreground));--color-destructive: hsl(var(--destructive));--color-destructive-foreground: hsl(var(--destructive-foreground));--color-popover: hsl(var(--popover));--color-popover-foreground: hsl(var(--popover-foreground));--color-card: hsl(var(--card));--color-card-foreground: hsl(var(--card-foreground));--color-input: hsl(var(--input));--color-ring: hsl(var(--ring));--color-primary-rgb: 17, 24, 39;--color-muted-rgb: 226, 232, 240}.dark{--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--card: 222.2 84% 4.9%;--card-foreground: 210 40% 98%;--popover: 222.2 84% 4.9%;--popover-foreground: 210 40% 98%;--primary: 210 40% 98%;--primary-foreground: 222.2 47.4% 11.2%;--secondary: 217.2 32.6% 17.5%;--secondary-foreground: 210 40% 98%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%;--accent: 217.2 32.6% 17.5%;--accent-foreground: 210 40% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 210 40% 98%;--border: 217.2 32.6% 17.5%;--input: 217.2 32.6% 17.5%;--ring: 212.7 26.8% 83.9%;--color-border: hsl(var(--border));--color-background: hsl(var(--background));--color-foreground: hsl(var(--foreground));--color-primary: hsl(var(--primary));--color-primary-foreground: hsl(var(--primary-foreground));--color-secondary: hsl(var(--secondary));--color-secondary-foreground: hsl(var(--secondary-foreground));--color-muted: hsl(var(--muted));--color-muted-foreground: hsl(var(--muted-foreground));--color-accent: hsl(var(--accent));--color-accent-foreground: hsl(var(--accent-foreground));--color-destructive: hsl(var(--destructive));--color-destructive-foreground: hsl(var(--destructive-foreground));--color-popover: hsl(var(--popover));--color-popover-foreground: hsl(var(--popover-foreground));--color-card: hsl(var(--card));--color-card-foreground: hsl(var(--card-foreground));--color-input: hsl(var(--input));--color-ring: hsl(var(--ring))}}@layer base{*{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground)}}.react-flow__node{border:1px solid;border-color:var(--color-border);border-radius:.5rem;box-shadow:0 4px 10px -3px #00000026;background-color:var(--color-card);width:auto!important;cursor:pointer;transition:all .2s ease;overflow:hidden}.react-flow__node:hover{box-shadow:0 6px 15px -3px #0003;transform:translateY(-2px)}.react-flow__node.dragging{box-shadow:0 10px 15px -3px #0003,0 4px 6px -4px #0003;z-index:10;border-color:var(--color-primary);transform:scale(1.02)}.react-flow__handle{background-color:var(--color-primary);border-color:var(--color-primary-foreground);transition:all .2s ease}.react-flow__handle:hover{background-color:var(--color-primary);transform:scale(1.5)}.react-flow__edge-path{stroke:var(--color-primary);stroke-width:2;transition:stroke-width .2s ease}.react-flow__edge:hover .react-flow__edge-path{stroke-width:3}.table-node{padding:0;min-width:280px;display:flex;flex-direction:column;max-width:none;position:relative;transition:width .1s ease,height .1s ease}.table-node.resizing{cursor:nwse-resize!important;opacity:.9;box-shadow:0 8px 15px -3px #00000040,0 4px 6px -4px #00000040;z-index:1000!important;pointer-events:all!important}.table-node.resizing .resize-handle{background-color:var(--color-primary);opacity:1}.react-flow__node.resizing{cursor:nwse-resize!important;z-index:1000;pointer-events:all!important}.react-flow__node.resizing *{pointer-events:none}.react-flow__node.resizing .resize-handle{pointer-events:all!important}.table-node__header{font-weight:700;font-size:1.125rem;padding:.75rem 1rem;-webkit-user-select:none;-moz-user-select:none;user-select:none;text-align:center;border-bottom:2px solid var(--color-border);background-color:var(--color-primary);color:var(--color-primary-foreground);cursor:grab;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.table-node__header:active{cursor:grabbing;background-color:hsl(var(--primary) / .9)}.table-node__header .table-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;font-weight:700;letter-spacing:.01em}.table-node__content{font-size:.875rem;padding:.5rem;overflow-y:auto;max-height:none;min-height:100px;flex:1;scrollbar-width:thin}.table-node__content::-webkit-scrollbar{width:6px}.table-node__content::-webkit-scrollbar-track{background:transparent}.table-node__content::-webkit-scrollbar-thumb{background-color:var(--color-muted);border-radius:3px}.table-node__field{padding:.4rem .5rem;position:relative;border-bottom:1px solid rgba(0,0,0,.05);display:flex;align-items:center;border-radius:.25rem;transition:background-color .15s ease}.table-node__field:hover{background-color:#00000008}.table-node__field:last-child{border-bottom:none}.table-node__field-pk{background-color:rgba(var(--color-primary-rgb, 59, 130, 246),.08);font-weight:600}.table-node__field-pk:hover{background-color:rgba(var(--color-primary-rgb, 59, 130, 246),.12)}.table-node__field-fk{font-style:italic;background-color:rgba(var(--color-muted-rgb, 156, 163, 175),.08)}.table-node__field-fk:hover{background-color:rgba(var(--color-muted-rgb, 156, 163, 175),.12)}.table-node__column-header{display:grid;grid-template-columns:50px 1fr 80px;padding:.3rem .5rem;background-color:#0000000a;border-bottom:2px solid var(--color-border);font-size:.7rem;font-weight:700;text-transform:uppercase;color:var(--color-muted-foreground);letter-spacing:.05em}.table-node__field-content{display:grid;grid-template-columns:50px 1fr 80px;width:100%;align-items:center}.column-key{display:flex;justify-content:center;align-items:center;padding-right:.25rem}.column-name{padding:0 .5rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.column-type{font-size:.75rem;color:var(--color-muted-foreground);text-align:right;overflow:hidden;text-overflow:ellipsis;padding-left:.25rem}.badge{display:inline-block;font-size:.65rem;font-weight:700;padding:.15rem .3rem;border-radius:.25rem;text-align:center;min-width:26px}.badge-pk{background-color:rgba(var(--color-primary-rgb),.15);color:var(--color-primary)}.badge-fk{background-color:rgba(var(--color-muted-rgb),.2);color:var(--color-muted-foreground)}.field-name{font-weight:500}.required-marker{color:var(--color-destructive);font-weight:700;margin-left:.25rem}.fk-reference{font-size:.65rem;font-style:italic;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--color-muted-foreground)}body.resizing-mode{cursor:nwse-resize!important}body.resizing-mode .react-flow__node{pointer-events:none!important}body.resizing-mode .react-flow__pane{cursor:nwse-resize!important;pointer-events:none!important}body.resizing-mode .react-flow__node.dragging{pointer-events:none!important}body.resizing-mode *{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}body.resizing-mode .table-node.resizing{pointer-events:all!important;z-index:1000!important;opacity:.9;box-shadow:0 8px 15px -3px #00000040,0 4px 6px -4px #00000040}body.resizing-mode .resize-handle{pointer-events:all!important;background-color:var(--color-primary)!important;opacity:1!important}.resize-handle{position:absolute;bottom:2px;right:2px;width:20px;height:20px;display:flex;align-items:center;justify-content:center;cursor:nwse-resize;border-radius:3px;opacity:.5;transition:opacity .2s;z-index:10;color:var(--color-muted-foreground);background-color:transparent}.resize-handle:hover,.resize-handle:active{opacity:1;color:var(--color-primary)}.resize-handle svg{width:14px;height:14px;transform:rotate(-45deg);pointer-events:none}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:grab}.react-flow__node.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}
