File size: 2,392 Bytes
3ab4c02
76f3c6e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dd4bc85
294a40e
 
 
 
 
 
426ba7c
294a40e
dd4bc85
294a40e
94c2bba
dd4bc85
76f3c6e
 
 
294a40e
 
 
 
dd4bc85
294a40e
 
 
 
 
426ba7c
 
294a40e
 
 
 
 
 
 
 
 
 
 
 
426ba7c
 
294a40e
 
 
 
426ba7c
 
294a40e
 
 
 
426ba7c
294a40e
 
 
 
3ab4c02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124

/* Main layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Tooltip styles */
.tooltip-trigger {
    position: relative;
}

.tooltip-trigger:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

/* Settings dropdown */
#settings-dropdown {
    border: 1px solid #e5e7eb;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar transitions */
#sidebar {
    transition: width 0.3s ease-in-out;
}

#sidebar.collapsed {
    width: 0;
    overflow: hidden;
}

/* Button hover effects */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: scale(1.05);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Custom styles for the sankey diagram */
#sankey-diagram {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 0.5rem;
}
#diagram-container {
    background: #f1f5f9;
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-height: 400px; /* Set a minimum height */
    height: 100%; /* Take full height of parent */
    display: flex; /* Ensure SVG fills container */
}
.node rect {
    cursor: move;
    fill-opacity: 0.9;
shape-rendering: crispEdges;
}

.node text {
    pointer-events: none;
    text-shadow: 0 1px 0 #fff;
}

.link {
    fill: none;
    stroke-opacity: 0.2;
}
.link:hover {
    stroke-opacity: 0.7;
    stroke-width: 2px !important;
}
/* Custom scrollbar for lists */
#nodes-list::-webkit-scrollbar,
#links-list::-webkit-scrollbar {
    width: 6px;
}

#nodes-list::-webkit-scrollbar-track,
#links-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#nodes-list::-webkit-scrollbar-thumb,
#links-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#nodes-list::-webkit-scrollbar-thumb:hover,
#links-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}