/* styles.css */

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #343a40;
}

/* Hero Section */
section.bg-primary {
    background-size: cover;
    background-position: center;
    position: relative;
}

    section.bg-primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Overlay */
    }

    section.bg-primary .container {
        position: relative;
        z-index: 1;
    }

/* Navbar */
.navbar-brand img {
    margin-right: 10px;
}

/* Footer Links */
footer ul li a:hover {
    text-decoration: underline;
}

/* Custom Card Styles */
.card-img-top,
.tutorial-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Fix for the image in the card */
.card-img-top {
    max-width: 250px;
    height: auto;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
}

/* Custom Styles for Carousel */
.main-image {
    height: 600px; /* Fixed height */
    object-fit: fill; /* Ensures the image covers the container without distortion */
    border-radius: 8px;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.carousel-thumbnail {
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    max-width: 150px;
    margin: 5px;
    border: 2px solid transparent;
    border-radius: 4px;
}

    .carousel-thumbnail:hover,
    .carousel-thumbnail.active {
        transform: scale(1.05);
        border-color: #007bff;
    }

.description-text {
    margin-top: 15px;
    font-size: 1.1rem;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

/* Anchor Offset for Fixed Navigation (if any) */
.anchor-offset {
    padding-top: 70px; /* Adjust based on your fixed header height */
    margin-top: -70px;
}

/* Thumbnail Container Styling */
.thumbnail-container {
    display: flex;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: center;
}

    .thumbnail-container::-webkit-scrollbar {
        height: 8px;
    }

    .thumbnail-container::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .thumbnail-container img {
        flex: 0 0 auto;
    }

/* App Enhancements Section */
.app-enhancements-section,
.content-section {
    padding: 40px 0;
}

    .app-enhancements-section h2,
    .content-section h2 {
        text-align: center;
        margin-bottom: 30px;
    }

.enhancement-card,
.content-card {
    transition: transform 0.3s;
}

    .enhancement-card:hover,
    .content-card:hover {
        transform: translateY(-10px);
    }

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

    footer p {
        margin: 0;
        font-size: 14px;
    }

    footer a {
        color: #fff;
        text-decoration: underline;
    }

        footer a:hover {
            color: #ddd;
        }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-image {
        width: 100%;
        height: auto;
    }

    .carousel-thumbnail {
        max-width: 100px;
    }
}

/* Booking Section Enhancements */
.booking-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Light gray background for contrast */
}

/* Booking Modal Styles */
.booking-iframe {
    width: 100%;
    height: 800px; /* Adjust height as needed */
    border: none;
}

@media (max-width: 768px) {
    .booking-iframe {
        height: 1200px; /* Increase height for mobile devices */
    }
}

/* Ensure the main navbar is fixed and overlays content */
.main-navbar {
    position: fixed; /* Fixes the navbar to the top */
    top: 0;
    width: 100%;
    z-index: 1030; /* Above other content */
}

/* Partial Header Styling */
.partial-header {
    position: fixed;
    top: 56px; /* Height of the navbar (default is 56px) */
    width: 200px;
    right: 0;
    z-index: 1020;
    background-color: #6c757d;
    padding: 10px;
    border-bottom-left-radius: 5px;
}

/* Add padding to the body to prevent content from being hidden behind the navbar */
body {
    padding-top: 130px; /* 70px for navbar + 60px partial header */
}

/* Customize the collapse menu to overlay content */
.custom-collapse {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: 200px;
    background-color: #343a40;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    padding: 0.5rem 0;
    z-index: 1040;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* Show the menu when it's expanded */
.navbar-collapse.show.custom-collapse {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Menu items styling */
.custom-collapse .nav-link {
    color: #ffffff;
    padding: 0.5rem 1rem;
}

    .custom-collapse .nav-link:hover {
        background-color: #495057;
        color: #ffffff;
    }

.navbar-toggler {
    display: block;
}

/* Make the menu vertical */
.custom-collapse .navbar-nav {
    flex-direction: column;
}

/* Style active links */
.custom-collapse .nav-link.active {
    background-color: #495057;
}

/* Card Styles */
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-primary,
.btn-secondary,
.btn-success,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    border-radius: 20px;
    padding: 0.5rem 1rem;
}

    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-success:hover,
    .btn-outline-primary:hover,
    .btn-outline-secondary:hover,
    .btn-outline-danger:hover {
        opacity: 0.9;
    }

/* List Group Styles */
.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    border-radius: 0;
}

    .list-group-item:last-child {
        border-bottom: none;
    }

/* Video Styling */
video {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* Test Button */
.btn-success {
    width: 100%;
}

/* Alert Styling */
.alert {
    border-radius: 10px;
}

/* Module Details Section */
.module-details {
    transition: all 0.5s ease-in-out;
}

/* Hover Effect for Module Items */
.module-item:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

/* Disabled Button Styling */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Chat Interface Styles */

/* Chat Container - increased from 80vh to 90vh to reduce squish */
.chat-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    height: 90vh; /* Was 80vh, now bigger */
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Left/Right alignment classes */
.bubble-left {
    text-align: left;
}

.bubble-right {
    text-align: right;
}

/* Bubble styling */
.message-bubble {
    display: inline-block;
    max-width: 70%;
    padding: 10px;
    border-radius: 15px;
    position: relative;
    background-color: #f1f1f1; /* default bubble color for AI/others */
    margin-bottom: 5px;
}

.bubble-right .message-bubble {
    background-color: #cce5ff; /* user bubble color */
}

/* Message header (sender, icons) */
.message-header {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Place icons (expand/collapse, remove) in the header */
.header-actions {
    display: flex;
    align-items: center;
}

/* Collapsible content */
.message-content.collapsible-content.collapsed {
    max-height: 50px;
    overflow: hidden;
}

/* Expand icon */
.expand-icon {
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
}

/* Code block styling */
.code-block {
    border: 1px solid #ddd;
    background: #fff;
    margin: 5px 0;
    padding: 5px;
    border-radius: 5px;
    position: relative;
}

.save-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
    border: none;
    background-color: rgba(255, 255, 255, 0.7);
    color: #0d6efd;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 0.8rem;
}

    .save-btn:hover {
        background-color: #fff;
        color: #084298;
    }

/* Scrollbar styling inside chat container */
.chat-container::-webkit-scrollbar {
    width: 8px;
}

.chat-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

    .chat-container::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 90%;
    }

    .chat-container {
        height: 70vh; /* For smaller screens */
    }

    .save-btn {
        top: 5px;
        right: 5px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }
}
