:root {
    --bs-primary: #18BC9C;
    --bs-secondary: #95A5A6;
    --bs-success: #27AE60;
    --bs-info: #3498DB;
    --bs-warning: #F39C12;
    --bs-danger: #E74C3C;
    --bs-light: #ECF0F1;
    --bs-dark: #2C3E50;
    --cobalt-blue: #3498DB;
    --graphite: #2C3E50;
    --neon-green: #18BC9C;
    --orange-accent: #F39C12;
}

body {
    background-color: #ECF0F1;
    font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.belogical-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    padding: 2rem 1rem;
    text-align: center;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo-text {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

.tagline {
    color: rgba(255,255,255,0.9);
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.logi-mascot {
    width: 80px;
    height: 80px;
    display: inline-block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.3));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes glow {
    0% { filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.3)) drop-shadow(0 0 5px rgba(52, 152, 219, 0.3)); }
    100% { filter: drop-shadow(3px 3px 8px rgba(0,0,0,0.3)) drop-shadow(0 0 15px rgba(155, 89, 182, 0.5)); }
}

.chat-container {
    max-width: 900px;
    margin: 2rem auto;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 1px solid #BDC3C7;
}

.chat-title {
    color: var(--bs-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.chat-messages {
    height: 450px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 12px;
    border: 1px solid #E9ECEF;
}

.message {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 12px;
    max-width: 85%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-message {
    background: var(--bs-primary);
    color: white;
    margin-left: auto;
    text-align: right;
}

.logi-message {
    background: white;
    border: 2px solid var(--bs-primary);
    color: var(--bs-dark);
    position: relative;
}

.logi-message::before {
    content: "🦉 Logi: ";
    color: var(--bs-primary);
    font-weight: 600;
}

.content-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem;
    padding: 0 1rem;
}

.section-card {
    background: white;
    border: 1px solid #BDC3C7;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--bs-primary);
}

.section-title {
    color: var(--bs-primary);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--bs-dark);
    line-height: 1.6;
}

.chat-input-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #BDC3C7;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(24, 188, 156, 0.1);
}

.chat-send-btn {
    padding: 12px 24px;
    background: var(--bs-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-send-btn:hover {
    background: #16A085;
}

#blazor-error-ui {
    background: var(--bs-danger);
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Custom scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #E9ECEF;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #16A085;
}

#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;
}