ui/causalsettingspanel.razor.scss
CausalSettingsPanel {
position: absolute;
top: 0;
right: 0;
width: min(640px, 38vw);
height: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: 0;
padding: 40px 40px 40px 100px;
background: transparent;
border: none;
box-shadow: none;
backdrop-filter: none;
pointer-events: none;
z-index: 30;
opacity: 0;
transform: translateX(18px);
transition: opacity 0.22s ease-out, transform 0.36s cubic-bezier(0.16, 1, 0.3, 1);
font-family: inherit;
}
.settings-header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
color: #fff;
font-size: 36px;
font-weight: 600;
letter-spacing: 6px;
text-transform: uppercase;
text-shadow: 0 0 16px rgba(170, 220, 255, 0.9);
padding-bottom: 16px;
margin-bottom: 30px;
border-bottom: 2px solid rgba(140, 210, 255, 0.35);
pointer-events: all;
}
.settings-close {
color: rgba(190, 225, 255, 0.65);
font-size: 24px;
cursor: pointer;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
transform: scale(0.9);
transition: color 0.2s ease, transform 0.18s ease;
&:hover {
color: #fff;
text-shadow: 0 0 14px rgba(170, 220, 255, 0.95);
transform: scale(1);
}
&:active {
transform: scale(0.95);
}
}
.settings-body {
display: flex;
flex-direction: column;
gap: 12px;
pointer-events: all;
}
.settings-container {
flex-direction: column;
gap: 0;
}
.toggle-row {
display: flex;
flex-direction: row;
align-items: center;
gap: 20px;
cursor: pointer;
padding: 16px 12px 16px 0;
pointer-events: all;
transition: background-color 0.2s ease;
&:hover .toggle-track {
border-color: rgba(140, 210, 255, 0.55);
}
}
.toggle-track {
flex-shrink: 0;
width: 60px;
height: 32px;
border-radius: 16px;
background-color: rgba(77, 77, 77, 0.22);
border: 1px solid rgba(140, 210, 255, 0.2);
transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 3px;
opacity: 0.6;
&.on {
justify-content: flex-end;
background-color: rgba(140, 210, 255, 0.35);
border-color: rgba(170, 220, 255, 0.9);
box-shadow: 0 0 14px rgba(140, 210, 255, 0.4);
opacity: 1;
}
}
.toggle-thumb {
width: 24px;
height: 24px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
transition: transform 0.22s ease, background-color 0.2s ease, box-shadow 0.2s ease;
margin-left: 2px;
margin-right: 2px;
}
.toggle-track.on .toggle-thumb {
background-color: #fff;
box-shadow: 0 0 14px rgba(170, 220, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.5);
}
.toggle-text {
display: flex;
flex-direction: column;
gap: 6px;
}
.toggle-label {
color: rgba(220, 235, 245, 0.92);
font-size: 18px;
letter-spacing: 2px;
text-transform: uppercase;
text-shadow: 0 0 8px rgba(120, 200, 255, 0.25);
}
.toggle-note {
color: rgba(170, 210, 240, 0.6);
font-size: 14px;
letter-spacing: 1px;
}
.settings-footer {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
gap: 16px;
padding-top: 24px;
margin-top: 28px;
border-top: 1px solid rgba(140, 210, 255, 0.2);
pointer-events: all;
}
.settings-button {
color: rgba(190, 225, 255, 0.85);
font-size: 18px;
letter-spacing: 2px;
text-transform: uppercase;
cursor: pointer;
padding: 10px 22px;
border: 1px solid rgba(140, 210, 255, 0.35);
background-color: rgba(140, 210, 255, 0.06);
transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
&:hover {
color: #fff;
border-color: rgba(170, 220, 255, 0.9);
box-shadow: 0 0 16px rgba(140, 210, 255, 0.3);
text-shadow: 0 0 12px rgba(170, 220, 255, 0.9);
}
&.primary {
background: linear-gradient(180deg, rgba(140, 210, 255, 0.22) 0%, rgba(140, 210, 255, 0.1) 100%);
border-color: rgba(170, 220, 255, 0.75);
text-shadow: 0 0 10px rgba(140, 210, 255, 0.5);
&:hover {
background-color: rgba(140, 210, 255, 0.3);
}
}
&.disabled {
opacity: 0.35;
cursor: default;
&:hover {
color: rgba(190, 225, 255, 0.85);
border-color: rgba(140, 210, 255, 0.35);
box-shadow: none;
text-shadow: none;
}
}
}
.leave-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(4px);
z-index: 70;
pointer-events: all;
}
.leave-box {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 22px;
max-width: 82%;
padding: 30px 34px;
background: linear-gradient(165deg, rgba(14, 28, 42, 0.98) 0%, rgba(8, 16, 24, 0.98) 100%);
border: 1px solid rgba(170, 220, 255, 0.45);
border-radius: 10px;
box-shadow: 0 0 28px rgba(140, 210, 255, 0.22);
pointer-events: all;
}
.leave-text {
color: rgba(220, 235, 245, 0.92);
font-size: 18px;
text-align: center;
letter-spacing: 1px;
}
.leave-actions {
display: flex;
flex-direction: row;
gap: 12px;
}
.leave-cancel {
position: absolute;
top: 8px;
right: 8px;
}