@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    transition: font-size 0.3s ease;
    background-color: #f8f9fa;
}

.page {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Navigation */
.nav-link.active {
    font-weight: 700;
    border-bottom: 2px solid var(--bs-primary);
}

/* Chatbot styles */
.chat-container {
    max-width: 800px;
    margin: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 60vh;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.chat-box {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 75%;
    line-height: 1.5;
}

.user-message {
    background-color: #0d6efd;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-input-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa;
}

.chat-input-form input {
    border-right: none;
    border-radius: 20px 0 0 20px;
}

.chat-input-form button {
    border-radius: 0 20px 20px 0;
}

/* Card hover effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
    transition: all 0.3s ease;
}

/* Accessibility button */
#voice-command-btn.listening {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}