/* 🟢 Global Styles */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: url("../kush-bg.png") no-repeat center center fixed; /* ✅ Background Image */
    background-size: cover; /* ✅ Ensure it covers the full screen */
    color: #A3FF7F;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* ✅ Centers everything */
.page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}




.header {
    display: flex;
    justify-content: flex-start; /* ✅ Aligns everything to the left */
    align-items: center;
    width: 100%;
    height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.95) 0%,  
        rgba(0, 0, 0, 0.90) 10%,
        rgba(0, 0, 0, 0.85) 25%,
        rgba(0, 0, 0, 0.80) 40%,
        rgba(0, 0, 0, 0.75) 55%,
        rgba(0, 0, 0, 0.70) 70%,
        rgba(0, 0, 0, 0.65) 80%,  
        rgba(0, 0, 0, 0.55) 90%,  
        rgba(0, 0, 0, 0.25) 100%    
    );
}

.header-logo {
    width: 170px !important;  /* ✅ Force width */
    height: auto !important;  /* ✅ Maintain aspect ratio */
    margin-left: 100px; /* ✅ Moves it slightly from the left edge */
    margin-top: 75px;
    position: relative; /* ✅ Keeps it within the normal flow */
}



/* ✅ Mobile Adjustments */
@media (max-width: 768px) {
    .header-logo {
        width: 50px;
        height: 50px;
        margin-left: 25px; /* Moves the logo to the right */

    }
}

/* Adjust help button position on mobile */
@media (max-width: 768px) {
    #help-button {
        bottom: 15px !important; /* Move it lower */
    }
}

/* ✅ Chat Container */
.chat-container {
    width: 60%;
    max-width: 900px;
    height: 75vh;
    background: rgba(20, 20, 20, 0.7); /* ✅ Darker Background */
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    
    box-shadow: 
        0px 15px 35px rgba(0, 0, 0, 0.7);  /* Deep shadow underneath for floating effect */
        
    border: 0.2px solid #728a7c; /* ✅ Green Accent */
    
}

/* ✅ Chat Box */
.chat-box {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;

    flex-direction: column-reverse;
    background: rgba(30, 30, 30, 0.85);
    border-radius: 10px 10px 0 0;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4), 
                inset -4px -4px 6px rgba(255, 255, 255, 0.2);
    scrollbar-width: thin;
    scrollbar-color: #00FF00 #656565;
}

/* ✅ Prevents page scrolling */
html, body {
    overflow: hidden;
    height: 100%;
}

/* ✅ Chat Messages */
.chat-message {
    display: block !important; /* ✅ Forces proper text layout */
    align-items: flex-end;
    max-width: 80%;
    padding: 12px 16px;
    font-weight: 500;
    border-radius: 18px;
    font-size: 16px;
    line-height: 2.0;
    margin: 10px 0;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    white-space: normal !important; /* ✅ Ensures text wraps */
    word-wrap: break-word !important; /* ✅ Forces word-breaking */
    overflow-wrap: break-word !important; /* ✅ Extra safeguard */
}

/* ✅ User & Bot Messages */
.user {
    background: #00A3FF;
    color: #fff;
    border: 1px solid #767676;
    align-self: flex-end;
    text-align: left;
    border-bottom-right-radius: 5px;
}

.bot {
    background: #404040;
    color: #f1eded;
    border-radius: 25px;
    border: 1px solid #767676;
    align-self: flex-start;
    text-align: left;
    min-width: 250px; /* ✅ Prevents width shrinking on hover */
    border-bottom-left-radius: 5px;
}



/* ✅ Stylish Input Box */
.input-container {
    display: flex;
    align-items: center;
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05); /* ✅ Subtle transparency */
    backdrop-filter: blur(5px); /* ✅ Glassmorphic Effect */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.2), 
                inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* ✅ Input Field */
input[type="text"] {
    flex: 1;
    padding: 14px;
    font-size: 14px;
    border: 1px solid rgba(170, 170, 170, 0.25);
    border-radius: 8px;
    font-weight: 500;
    background: rgba(200, 200, 200, 0.15);
    color: #ffffff;
    outline: none;
    text-indent: 10px;
    transition: 0.2s ease-in-out;
}

input[type="text"]:focus {
    border-color: #aaaaaa;
    background: rgba(200, 200, 200, 0.15);
}



/* ✅ Mobile Adjustments */
@media (max-width: 768px) {
    .chat-container {
        width: 88%;
        height: calc(85vh - 120px);
        margin-top: 10px;
    }
    .chat-box {
        height: auto;
        max-height: 100%;
    }
    .input-container {
        padding: 8px;
    }
    input[type="text"] {
        font-size: 16px;
    }
 
}

/* ✅ Ticker */
.ticker {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #A3FF7F;
    overflow: hidden;
    padding: 5px 0;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

a {
    color: #A3FF7F; /* ✅ Use the green from your theme */
    text-decoration: none; /* ✅ Removes underline */
}

a:hover {
    color: #00FF00; /* ✅ Brighter green on hover */
    text-decoration: underline;
}



/* ✅ Custom Scrollbar */
.chat-box::-webkit-scrollbar {
    width: 4px; /* ✅ Thin scrollbar */
}

.chat-box::-webkit-scrollbar-track {
    background: #1E1E1E; /* ✅ Dark track */
}

.chat-box::-webkit-scrollbar-thumb {
    background: #000; /* ✅ Black scrollbar */
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: #333; /* ✅ Slightly lighter hover effect */
}

/* ✅ Firefox scrollbar */
.chat-box {
    scrollbar-width: thin;
    scrollbar-color: #000 #1E1E1E;
}

/* ✅ News Section */
.news-section {
    margin-bottom: 20px;
        min-width: 270px;
            max-width: 100%; /* Prevent overflow */
                width: fit-content; /* Keep it as compact as possible */
    display: inline-block; /* Ensures width is respected */


}

/* ✅ State Name - Larger and White */
.news-header {
    font-size: 14px;
    color: white; /* ✅ White color */
    font-weight: bold;
    margin-bottom: 12px; /* ✅ Extra spacing from articles */
}

/* ✅ News Article Links */
.news-link {
    color: #A3FF7F;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
}

.news-link:hover {
    color: #00FF00;
    text-decoration: underline;
}

/* ✅ "Show More" Button */
.show-more {
    color: #A3FF7F;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
}

.show-more:hover {
    color: #00FF00;
    text-decoration: underline;
}

.gls-link {
    color: #A3FF7F; /* Match theme color */
    font-weight: bold;
    text-decoration: none;
}

.gls-link:hover {
    color: #00FF00; /* Brighter green on hover */
    text-decoration: underline;
}


@media (max-width: 768px) {
    #help-button {
        position: fixed;  /* Keeps it in a fixed position */
        bottom: 60px;  /* Ensures it stays near the bottom */
        right: 20px;  /* Moves it to the right */
        left: auto;  /* Ensures it doesn't stay on the left */
        z-index: 1000;  /* Keeps it above other elements */
    }
}

