#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

:root {
    font-size: var(--rz-root-font-size);
    --rz-white: #ffffff;
    --rz-black: #000000;
    --rz-base: #dfe5ec;
    --rz-base-50: #f8fafb;
    --rz-base-100: #f3f6f9;
    --rz-base-200: #e3eaf2;
    --rz-base-300: #dfe5ec;
    --rz-base-400: #dbe0e6;
    --rz-base-500: #d7dbe0;
    --rz-base-600: #c6cbd2;
    --rz-base-700: #74787e;
    --rz-base-800: #45494f;
    --rz-base-900: #1b1d20;
    --rz-base-light: #f3f6f9;
    --rz-base-lighter: #ffffff;
    --rz-base-dark: #45494f;
    --rz-base-darker: #1b1d20;
    --rz-primary: #3481e5;
    --rz-primary-light: #bcd8ff;
    --rz-primary-lighter: rgba(0, 111, 255, 0.13);
    --rz-primary-dark: #375a8b;
    --rz-primary-darker: #00215d;
    --rz-secondary: #5b6471;
    --rz-secondary-light: #c2cddc;
    --rz-secondary-lighter: rgba(0, 107, 255, 0.13);
    --rz-secondary-dark: #444c58;
    --rz-secondary-darker: #19212b;
    --rz-info: #085786;
    --rz-info-light: #aadaff;
    --rz-info-lighter: rgba(170, 218, 255, 0.5);
    --rz-info-dark: #086791;
    --rz-info-darker: #002d41;
    --rz-success: #386A20;
    --rz-success-light: #c0ffaa;
    --rz-success-lighter: rgba(192, 255, 170, 0.5);
    --rz-success-dark: #3e9108;
    --rz-success-darker: #194100;
    --rz-warning: #e8e971;
    --rz-warning-light: #f9ffaa;
    --rz-warning-lighter: rgba(249, 255, 170, 0.5);
    --rz-warning-dark: #918908;
    --rz-warning-darker: #413d00;
    --rz-danger: #b3261e;
    --rz-danger-light: #ffb4aa;
    --rz-danger-lighter: rgba(255, 180, 170, 0.5);
    --rz-danger-dark: #91080a;
    --rz-danger-darker: #410001;
    --rz-on-base: #1b1d20;
    --rz-on-base-light: #1b1d20;
    --rz-on-base-lighter: #1b1d20;
    --rz-on-base-dark: #ffffff;
    --rz-on-base-darker: #f8fafb;
    --rz-on-primary: #ffffff;
    --rz-on-primary-light: #00215d;
    --rz-on-primary-lighter: #00215d;
    --rz-on-primary-dark: #ffffff;
    --rz-on-primary-darker: #bcd8ff;
    --rz-on-secondary: #ffffff;
    --rz-on-secondary-light: #19212b;
    --rz-on-secondary-lighter: #19212b;
    --rz-on-secondary-dark: #ffffff;
    --rz-on-secondary-darker: #c2cddc;
    --rz-on-info: #ffffff;
    --rz-on-info-light: #002d41;
    --rz-on-info-lighter: #086791;
    --rz-on-info-dark: #ffffff;
    --rz-on-info-darker: #aadaff;
    --rz-on-success: #ffffff;
    --rz-on-success-light: #194100;
    --rz-on-success-lighter: #194100;
    --rz-on-success-dark: #ffffff;
    --rz-on-success-darker: #c0ffaa;
    --rz-on-warning: #1b1d20;
    --rz-on-warning-light: #413d00;
    --rz-on-warning-lighter: #413d00;
    --rz-on-warning-dark: #ffffff;
    --rz-on-warning-darker: #f9ffaa;
    --rz-on-danger: #ffffff;
    --rz-on-danger-light: #410001;
    --rz-on-danger-lighter: #410001;
    --rz-on-danger-dark: #ffffff;
    --rz-on-danger-darker: #ffb4aa;
    --rz-series-1: #75abf0;
    --rz-series-2: #9c75f0;
    --rz-series-3: #f075e8;
    --rz-series-4: #f0758c;
    --rz-series-5: #f0ba75;
    --rz-series-6: #c9f075;
    --rz-series-7: #75f07d;
    --rz-series-8: #75f0d9;
    --rz-series-9: #478eeb;
    --rz-series-10: #7b47eb;
    --rz-series-11: #eb47e0;
    --rz-series-12: #eb4766;
    --rz-series-13: #eba447;
    --rz-series-14: #b7eb47;
    --rz-series-15: #47eb52;
    --rz-series-16: #47ebcc;
    --rz-series-17: #3d72b8;
    --rz-series-18: #643db8;
    --rz-series-19: #b83db0;
    --rz-series-20: #b83d54;
    --rz-series-21: #b8823d;
    --rz-series-22: #91b83d;
    --rz-series-23: #3db845;
    --rz-series-24: #3db8a1;
}

body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Landing Page Styles */
.landing-page {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../images/elephantsqldb-background.png");
    color: white;
    overflow: hidden;
    position: relative;
    animation: gradient-animation 50s ease infinite;
    background-size: 120% 120%;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.content {
    text-align: center;
    z-index: 2;
}

h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
}

p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.futuristic-button {
    width: 200px;
    font-size: 1.25rem;
    padding: 1rem;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.futuristic-button:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.secondary-button {
    background-color: #e2e8f0;
    color: #1e3a8a;
}

.secondary-button:hover {
    background-color: #cbd5e1;
    color: #1e3a8a;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    z-index: 1;
    animation: pulse-animation 10s ease infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.database-item .rz-menu-item-text {
    font-size: 1.5em; /* Largest size for databases */
    font-weight: bold;
}

.table-item .rz-menu-item-text {
    font-size: 1.2em; /* Medium size for tables */
    font-weight: 600;
}

.columns-item .rz-menu-item-text,
.column-item .rz-menu-item-text {
    font-size: 1em; /* Smaller size for columns */
    font-weight: normal;
}

.no-tables-item .rz-menu-item-text,
.no-columns-item .rz-menu-item-text {
    font-size: 0.9em; /* Slightly smaller for "No Data Available" items */
    font-style: italic;
    color: gray;
}

#aceEditor {
    height: 200px;
    width: 100%;
    resize: vertical;
    overflow: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    min-height: 100px; /* Minimum height */
    max-height: 500px; /* Maximum height */
}

.ace_keyword {
    color: #0000FF; /* Blue color for SQL keywords */
    font-weight: bold;
}

.ace_identifier {
    color: #333333; /* Default styling for identifiers */
}

.ace_text {
    color: #000000; /* Fallback for plain text */
}
.ace_keyword:focus, .ace_keyword:active, .ace_keyword.selected {
    background-color: #FFD700 !important; /* Highlighted background */
    color: #FFFFFF !important; /* Highlighted text color */
}

.ace_64 {
    color: #0000FF; /* Debugging color for unexpected tokens */
}


.overlayspinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinneranimation {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.overlay p {
    color: white;
    margin-top: 10px;
    font-size: 1.2em;
}

.tooltip {
    font-family: Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    z-index: 10;
    pointer-events: none;
}
