/* Marketing page specific styles */

.hero-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 5rem 0;
}

.avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Customize card shadows */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Carousel customization */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* Chat card styles */
#chat-messages {
    scrollbar-width: thin;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f8fafc;
}

#chat-messages::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

/* Course selection form styles - within chat messages should match dark theme */
.bot-message #course-selection-container {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.bot-message #course-selection-container .form-check-label {
    color: #ffffff !important;
    font-weight: 500;
}

.bot-message #course-selection-container .text-muted {
    color: #cbd5e0 !important;
}

.bot-message #course-selection-container .alert {
    color: #ffffff !important;
    background-color: #2b6cb0 !important;
    border-color: #3182ce !important;
}

.bot-message #course-list .form-check {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.bot-message #course-list .form-check:hover {
    background-color: #f1f5f9;
    border-color: #2563eb;
}

.bot-message #course-list .form-check-input:checked + .form-check-label {
    color: #2563eb !important;
}

.bot-message #course-list .form-check-label {
    color: #1e293b !important;
}

.bot-message #selected-courses-list {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.75rem;
    min-height: 2rem;
}

.bot-message #course-selection-summary h6 {
    color: #1e293b !important;
    margin-bottom: 0.5rem;
}

/* Accessibility form styles - within chat messages should match dark theme */
.bot-message #accessibility-form-container {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.bot-message #accessibility-form-container p {
    color: #ffffff !important;
    font-weight: 400;
    margin-bottom: 1rem;
}

.bot-message #accessibility-form-container .form-check-label {
    color: #ffffff !important;
    font-weight: 400;
}

.bot-message #accessibility-form-container .form-check {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.bot-message #accessibility-form-container .form-check:hover {
    background-color: #4a5568;
    border-color: #6f42c1;
}

.bot-message #accessibility-form-container .form-check-input:checked + .form-check-label {
    color: #9f7aea !important;
}

.bot-message #accessibility-form-container .btn {
    margin-top: 1rem;
}

/* Accessibility form styles outside chat messages (standalone forms) */
#accessibility-form * {
    color: #212529 !important;
}

#accessibility-form ul li {
    color: #212529 !important;
}

#accessibility-form .form-label {
    color: #212529 !important;
}

#accessibility-form .form-check-label {
    color: #212529 !important;
}

/* Override for standalone accessibility forms with light backgrounds */
.bg-light #accessibility-form * {
    color: #212529 !important;
}

/* Ensure buttons in chatbot messages maintain dark theme */
.bot-message .btn-outline-primary {
    color: #ffffff !important;
    border-color: #4a5568 !important;
    background-color: transparent;
}

.bot-message .btn-outline-primary:hover {
    color: #2d3748 !important;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}

.bot-message .btn-success {
    background-color: #38a169 !important;
    border-color: #38a169 !important;
    color: #ffffff !important;
}

.bot-message .btn-success:hover {
    background-color: #2f855a !important;
    border-color: #2f855a !important;
}

/* Chat message styling - light theme with proper contrast */
#chat-messages .message-bubble {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0;
}

#chat-messages .message-bubble * {
    color: #1e293b !important;
}

#chat-messages .message-bubble p,
#chat-messages .message-bubble h5,
#chat-messages .message-bubble h6,
#chat-messages .message-bubble li,
#chat-messages .message-bubble strong,
#chat-messages .message-bubble span,
#chat-messages .message-bubble div {
    color: #1e293b !important;
}

/* User messages - blue background */
#chat-messages .user-message {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8;
}

#chat-messages .user-message * {
    color: #ffffff !important;
}

/* Bot messages - light background */
#chat-messages .bot-message {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0;
}

#chat-messages .bot-message *,
#chat-messages .bot-message p,
#chat-messages .bot-message div,
#chat-messages .bot-message span,
#chat-messages .bot-message strong,
#chat-messages .bot-message li,
#chat-messages .bot-message h1,
#chat-messages .bot-message h2,
#chat-messages .bot-message h3,
#chat-messages .bot-message h4,
#chat-messages .bot-message h5,
#chat-messages .bot-message h6,
#chat-messages .bot-message small,
#chat-messages .bot-message .text-muted {
    color: #1e293b !important;
}

/* Override backgrounds in chat messages */
#chat-messages .bg-light {
    background-color: #f8fafc !important;
}

#chat-messages .bg-info {
    background-color: #eff6ff !important;
}

#chat-messages .bg-info.bg-opacity-10 {
    background-color: #eff6ff !important;
}

/* Ensure proper contrast for all chat message elements */
#chat-messages .message-bubble,
#chat-messages .bot-message,
#chat-messages .bg-light,
#chat-messages .bg-info,
#chat-messages .bg-info.bg-opacity-10 {
    color: #1e293b !important;
}

/* Force dark text on all chat content regardless of parent classes */
#chat-messages * {
    color: #1e293b !important;
}

/* Exception: Keep user messages with white text on blue background */
#chat-messages .user-message,
#chat-messages .user-message * {
    color: #ffffff !important;
}

/* Ensure all text in chat messages is dark for light backgrounds */
#chat-messages .bg-light *,
#chat-messages .bg-info *,
#chat-messages .bg-info.bg-opacity-10 *,
#chat-messages .bg-light small {
    color: #1e293b !important;
}

/* Chat input styling for visibility */
#message-input {
    background-color: #ffffff !important;
    color: #212529 !important;
    border: 2px solid #dee2e6 !important;
}

#message-input:focus {
    background-color: #ffffff !important;
    color: #212529 !important;
    border-color: #6f42c1 !important;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25) !important;
}

#message-input::placeholder {
    color: #6c757d !important;
    opacity: 1;
}

/* Ensure chat input container has light background */
#chat-form .input-group {
    background-color: #ffffff;
    border-radius: 8px;
}

/* Style the send button for consistency */
#chat-form .btn-primary {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: #ffffff;
}

#chat-form .btn-primary:hover {
    background-color: #5a359a;
    border-color: #5a359a;
}

/* Add some animation for chat messages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#chat-messages > div {
    animation: fadeIn 0.3s ease-out forwards;
}