@font-face {
    font-family: 'Wire One';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(./webfonts/wire-one-latin-400-normal.woff2) format('woff2'), url(./webfonts/wire-one-latin-400-normal.woff) format('woff');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
  }

/* alumni-sans-pinstripe-cyrillic-ext-400-normal */
@font-face {
    font-family: 'Alumni Sans Pinstripe';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(./webfonts/alumni-sans-pinstripe-cyrillic-ext-400-normal.woff2) format('woff2'), url(./webfonts/alumni-sans-pinstripe-cyrillic-ext-400-normal.woff) format('woff');
    unicode-range: U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
  }
  
  /* alumni-sans-pinstripe-cyrillic-400-normal */
  @font-face {
    font-family: 'Alumni Sans Pinstripe';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(./webfonts/alumni-sans-pinstripe-cyrillic-400-normal.woff2) format('woff2'), url(./webfonts/alumni-sans-pinstripe-cyrillic-400-normal.woff) format('woff');
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
  }
  
  /* alumni-sans-pinstripe-vietnamese-400-normal */
  @font-face {
    font-family: 'Alumni Sans Pinstripe';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(./webfonts/alumni-sans-pinstripe-vietnamese-400-normal.woff2) format('woff2'), url(./webfonts/alumni-sans-pinstripe-vietnamese-400-normal.woff) format('woff');
    unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
  }
  
  /* alumni-sans-pinstripe-latin-ext-400-normal */
  @font-face {
    font-family: 'Alumni Sans Pinstripe';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(./webfonts/alumni-sans-pinstripe-latin-ext-400-normal.woff2) format('woff2'), url(./webfonts/alumni-sans-pinstripe-latin-ext-400-normal.woff) format('woff');
    unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
  }
  
  /* alumni-sans-pinstripe-latin-400-normal */
  @font-face {
    font-family: 'Alumni Sans Pinstripe';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(./webfonts/alumni-sans-pinstripe-latin-400-normal.woff2) format('woff2'), url(./webfonts/alumni-sans-pinstripe-latin-400-normal.woff) format('woff');
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
  }  
.context-area {
    width: 400px;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
}
body {
    overflow: hidden;
}

.fullheight {
    height: calc(100vh);
}

.contextMenu {
    stroke: #00557d;
    fill: #ffffff;
}
  
.menuEntry {
cursor: pointer;
}

.menuEntry text {
font-size: 12px;
stroke: #00557d;
}
  
.test {
    background-color: red;
}


.links line {
    stroke: #000;
}

.row {
    --bs-gutter-x: 0px;
}

#tooltip {
    position: absolute;
    background-color: white;
    max-width: 200px;
    height: auto;
    padding: 1px;
    border-style: solid;
    border-radius: 4px;
    border-width: 1px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, .5);
    pointer-events: none;
}

#promo_panel {
    /* overflow: scroll; */
    padding: 0px;
    margin: 0px;
    border: 1px solid #000;
    height: 100%;
    /* background-color: rgb(23, 118, 201); */
}
#scratch_panel {
    /* overflow: scroll; */
    padding: 0px;
    margin: 0px;
    border: 1px solid #000;
    height: 100%;
}

#tree_panel {
    padding: 0px;
    margin: 0px;
    border: 1px solid #000;
    height: 100%;
    overflow: scroll;
}

#filter_panel {
    padding: 0px;
    margin: 0px;
    height: 100%;
}

/* Loading and Error States for Tree Panel */
#tree_panel.loading {
    position: relative;
}

.loading-message {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 250px;
}

.loading-message::before {
    content: "";
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.error-message {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 40px;
    color: #d32f2f;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #d32f2f;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 250px;
}

.error-message::before {
    content: "⚠️";
    font-size: 24px;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notification Customization */
.widget-toast {
    font-family: inherit;
    font-size: 14px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 350px;
    word-wrap: break-word;
}

.widget-toast .toast-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
}

.widget-toast .toast-close:hover {
    color: rgba(255, 255, 255, 1);
}

/* Dark theme adjustments for toasts */
@media (prefers-color-scheme: dark) {
    .widget-toast {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
    .widget-toast {
        max-width: 280px;
        font-size: 13px;
    }
}

/* Ensure toasts work well in iframe context */
.widget-toast {
    position: fixed !important;
    z-index: 2147483647 !important;
}

.split {
    height: calc(50%);
}
.split .col {
    height: 100%;
}
.select-source {
    outline: 5px solid rgb(0, 255, 0, 0.5);
}

.select-target {
    outline: 5px solid rgb(255, 0, 0, 0.5);
}

.select-other {
    outline: 5px solid rgb(255, 255, 0, 0.5);
}