:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide-in-from-top-2 {
  from {
    transform: translateY(-0.5rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zoom-in-95 {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-in {
  animation: fade-in 0.3s ease-in-out;
}

.fade-in {
  animation: fade-in 0.3s ease-in-out;
}

.slide-in-from-top-2 {
  animation: slide-in-from-top-2 0.3s ease-in-out;
}

.zoom-in-95 {
  animation: zoom-in-95 0.3s ease-in-out;
}

.duration-300 {
  animation-duration: 300ms;
}

.delay-1000 {
  animation-delay: 1000ms;
}

.bg-clip-text {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  display: inline-block;
}

h1.text-4xl {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#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;
    }

/* Improved reconnection modal styling */
#components-reconnect-modal {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(4px);
}

#components-reconnect-modal .components-reconnect-hide {
    display: none;
}

#components-reconnect-modal .components-reconnect-show {
    display: block;
    text-align: center;
    color: white;
    padding: 2rem;
}

#components-reconnect-modal .components-reconnect-failed,
#components-reconnect-modal .components-reconnect-rejected {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem auto;
    max-width: 400px;
}

#components-reconnect-modal .components-reconnect-failed button,
#components-reconnect-modal .components-reconnect-rejected button {
    background: white;
    color: #ef4444;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-top: 0.5rem;
    font-weight: 600;
}

#components-reconnect-modal .components-reconnect-failed button:hover,
#components-reconnect-modal .components-reconnect-rejected button:hover {
    background: #f3f4f6;
}

.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%;
            animation: blazor-load 0.05s ease-in-out;
        }

@keyframes blazor-load {
    0% {
        stroke-dasharray: 0% 314.16%, 0% 0%;
    }
    50% {
        stroke-dasharray: 0% 0%, 0% 314.16%;
    }
    100% {
        stroke-dasharray: 314.16% 0%, 0% 0%;
    }
}

.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");
    }
