/* Optimized styles for H5 Platform */

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Apply Poppins font to all elements universally */
html, body, h1, h2, h3, h4, h5, h6, p, div, span, a, button, input, textarea, select, label {
    font-family: 'Poppins', sans-serif !important;
}

/* Desktop layout optimization */
@media (min-width: 992px) {
    /* Ensure chat is on right, content on left */
    .hero-section .row {
        flex-direction: row;
    }
    
    /* Adjust chat window sizing */
    .chat-window {
        height: auto;
        margin-left: auto;
    }
    
    /* Set chat body height */
    .chat-body {
        height: 350px;
    }
    
    /* Add some spacing for content */
    .hero-content {
        padding-right: 2rem;
    }
}

/* Tablet layout */
@media (min-width: 768px) and (max-width: 991px) {
    /* Adjust chat window height for tablets */
    .chat-window {
        max-height: 90vh;
    }
    
    .chat-body {
        height: calc(90vh - 140px); /* Account for header and footer */
    }
}

/* Mobile layout optimization */
@media (max-width: 767px) {
    /* Reorder for mobile - chat first */
    .hero-section .row {
        flex-direction: column-reverse;
    }
    
    /* Adjust chat window for mobile */
    .chat-window {
        width: 100%;
        margin-bottom: 2rem;
        max-height: 80vh;
    }
    
    /* Set chat body height for mobile */
    .chat-body {
        height: calc(80vh - 140px); /* Account for header and footer */
    }
    
    /* Adjust content spacing */
    .hero-content {
        margin-top: 1.5rem;
    }
    
    /* Adjust hero section padding */
    .hero-section {
        padding: 30px 0;
        min-height: auto;
    }
    
    /* Hide Learn More button on mobile */
    .btn-outline-secondary.learn-more {
        display: none;
    }
    
    /* Make chat messages more mobile-friendly */
    .message {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}

/* Ensure proper height for all screens */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced chat window styling */
.chat-window {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    background-color: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Fix any padding issues in chat body */
.chat-body {
    padding: 1rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Fix any contrast issues with chat input */
.chat-footer input {
    border: 1px solid #e0e0e0;
}

/* Ensure send button is visible */
.chat-footer .btn-primary {
    min-width: 44px;
}

/* Fix any issues with font weights */
.hero-title {
    font-weight: 700;
}

.hero-subtitle {
    font-weight: 400;
}

.navbar-brand {
    font-weight: 700;
}