body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.card {
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-body h2 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

canvas {
    max-height: 300px;
}

.table {
    margin-bottom: 0;
}

.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}

.list-group {
    max-height: 400px;
    overflow-y: auto;
}

.navbar {
    margin-bottom: 0;
}

.tab-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0 0 0.25rem 0.25rem;
}

.nav-tabs {
    background-color: white;
    padding: 0.5rem 0.5rem 0;
}

/* Chat Interface Styles */
.chat-messages {
    height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
    background-color: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
}

.chat-message.user .chat-bubble {
    background-color: #0d6efd;
    color: white;
}

.chat-message.bot .chat-bubble {
    background-color: white;
    border: 1px solid #dee2e6;
    color: #212529;
}

.chat-message.bot.error .chat-bubble {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.chat-bubble.loading {
    font-style: italic;
    opacity: 0.7;
}

.chat-message.loading {
    opacity: 0.7;
}

.example-question {
    font-size: 0.875rem;
    margin: 0.25rem;
}

.chat-data {
    font-size: 0.875rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.data-details {
    line-height: 1.4;
}
