html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.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."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Contextual Top Bar */
.contextual-top-bar {
    height: 60px;
    background: linear-gradient(135deg, #4A90E2 0%, #FFFFFF 100%);
    border-bottom: 2px solid #4A90E2;
    display: flex;
    align-items: center;
    padding: 0 30px;
    justify-content: flex-end;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contextual-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contextual-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #4A90E2;
    background: white;
    color: #4A90E2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.contextual-action-btn:hover {
    background: #4A90E2;
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
}

/* AI Voice Panel */
.ai-voice-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    color: white;
}

.ai-panel-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-panel-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ai-panel-content {
    text-align: center;
    cursor: pointer;
}

.ai-waveform {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 80px;
    gap: 6px;
    margin-bottom: 16px;
}

.wave-bar {
    width: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    transition: height 0.2s ease;
}

.ai-waveform.ready .wave-bar {
    height: 20px;
}

.ai-waveform.connecting .wave-bar {
    animation: wave-pulse 1.2s ease-in-out infinite;
}

.ai-waveform.connecting .wave-bar:nth-child(1) { animation-delay: 0s; }
.ai-waveform.connecting .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.ai-waveform.connecting .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.ai-waveform.connecting .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.ai-waveform.connecting .wave-bar:nth-child(5) { animation-delay: 0.4s; }

.ai-waveform.listening .wave-bar {
    animation: wave-listening 1s ease-in-out infinite;
}

.ai-waveform.listening .wave-bar:nth-child(1) { animation-delay: 0s; height: 30px; }
.ai-waveform.listening .wave-bar:nth-child(2) { animation-delay: 0.1s; height: 50px; }
.ai-waveform.listening .wave-bar:nth-child(3) { animation-delay: 0.2s; height: 40px; }
.ai-waveform.listening .wave-bar:nth-child(4) { animation-delay: 0.3s; height: 50px; }
.ai-waveform.listening .wave-bar:nth-child(5) { animation-delay: 0.4s; height: 30px; }

.ai-waveform.speaking .wave-bar {
    animation: wave-speaking 0.4s ease-in-out infinite;
}

.ai-waveform.speaking .wave-bar:nth-child(1) { animation-delay: 0s; }
.ai-waveform.speaking .wave-bar:nth-child(2) { animation-delay: 0.05s; }
.ai-waveform.speaking .wave-bar:nth-child(3) { animation-delay: 0.1s; }
.ai-waveform.speaking .wave-bar:nth-child(4) { animation-delay: 0.15s; }
.ai-waveform.speaking .wave-bar:nth-child(5) { animation-delay: 0.2s; }

@keyframes wave-pulse {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

@keyframes wave-listening {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes wave-speaking {
    0%, 100% { height: 20px; }
    50% { height: 70px; }
}

.ai-panel-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ai-panel-hint {
    font-size: 13px;
    opacity: 0.8;
}

.ai-error-msg {
    margin-top: 12px;
    padding: 8px;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 12px;
}

