/* Reset and Base Styles */
/* Resets default browser margins, paddings, and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Apply Cormorant Garamond font and increase the font size */
.logo {
    font-family: 'Orbitron', 'Rajdhani', 'Exo 2', sans-serif;
    font-weight: 700; /* Bold style */
    font-size: 60px; /* Adjust this value to make it bigger or smaller */
}

@font-face {
  font-family: 'Orbitron';
  src: url('../fonts/orbitron-v31-latin/orbitron-v31-latin-700.woff2') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rajdhani';
  src: url('../fonts/rajdhani-v16-latin/rajdhani-v16-latin-regular.woff2') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Exo 2';
  src: url('../fonts/exo-2-v24-latin/exo-2-v24-latin-regular.woff2') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* For smartphones */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 10px;
  }
  .container {
    width: 100%;
    flex-direction: column;
  }
  .menu {
    display: block;
  }
  .logo-txt-menu {
	    flex-direction: row;
		display: flex;
		align-items: center;
  }
}


/* Global Body Styling */
body {
    font-family: 'Arial', sans-serif; /* Sets default font */
    line-height: 1.6; /* Improves text readability */
	
    display: flex; /* Flex layout for horizontal content alignment */
    min-height: 100vh; /* Ensures full viewport height */
    align-items: center; /* Centers content vertically */
}
/* 🖱️ Scrollbar Styling */
body::-webkit-scrollbar {
    width: 5px;
}
body::-webkit-scrollbar-thumb {
    background-color: #aaa;
    border-radius: 3px;
}
body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* 🌙 Dark Mode Scrollbar */
body.dark-theme::-webkit-scrollbar-thumb {
    background-color: #555;
}
body.dark-theme::-webkit-scrollbar-track {
    background: #222;
}
/* Container Layout */
/* Main container that holds the sidebar and content */
.container {
    display: flex; /* Flexbox for horizontal alignment */
    width: 100%; /* Occupies full viewport width */
    min-height: 100%; /* Ensures full viewport height */
    transition: all 0.3s ease; /* Smooth layout transitions */
}
/* Sidebar */
.sidebar {
    width: 18%; /* Set the sidebar width */
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 20px;
    border-right:none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10;
    overflow-y: auto;
}

/* Sidebar Logo */
.sidebar .logo {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: ;
    text-align: center;
}

/* Sidebar Links */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
        font: -webkit-control;
        font-size: medium;
    color: #333;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: none;
    color: auto;
    transform: scale(1.05);
}

/* Sidebar Icons */
.sidebar ul li a svg {
    height: 22px;
    width: 22px;
}

body.dark-mode .sidebar .logo {
    color: #f7f7f7; /* White logo */
}

body.dark-mode .sidebar ul li a {
    color: #ddd; /* Lighter text */
}

body.dark-mode .sidebar ul li a:hover {
    background-color: #A3A29E; /* Subtle hover effect */
    color: ; /* White text on hover */
}

/* 🎨 Sidebar Icons - Adjust for Dark Mode */
.sidebar ul li a svg {
    fill: ; /* Inherit text color */
    transition: fill 0.3s ease-in-out;
}

body.dark-mode .sidebar ul li a svg {
    fill: #ddd; /* Lighter icons in dark mode */
}

.bottom-nav {
	display: none;
}
/* Hide Sidebar & Show Bottom Navbar on Small Screens */
@media screen and (max-width: 768px) {
    .sidebar {
        display: none; /* Hide sidebar on small screens */
    }
.sidebar  ul li a svg {
        display: none; /* Hide sidebar on small screens */
    } /* =========== BOTTOM NAVIGATION =========== */
/* 🔹 Fixed Bottom Navigation */
.bottom-nav {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    background: #f3f3f3;
    display: flex;
	overflow: Hidden;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #D0D0D0;
    z-index: 1500;
    box-shadow: none;
}
.bottom-nav {
  backdrop-filter: none; /* REMOVE or test without */
  -webkit-backdrop-filter: none;
  z-index: 1500;
}

/* 🌙 Dark Theme Sidebar */
body.dark-theme .bottom-nav {
    background: linear-gradient(to bottom, #181818, #242424);
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
    .bottom-nav ul {
        list-style: none;
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .bottom-nav ul li {
        margin-bottom: 0;
    }

    .bottom-nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        padding: 5px;
        color: #; /* Default text color */
        text-decoration: none;
        transition: transform 0.2s ease, opacity 0.3s ease, color 0.3s ease;
    }

    .bottom-nav ul li a svg {
        width: 26px;
        height: 26px;
        fill: #; /* Default black icon */
        transition: transform 0.2s ease, fill 0.3s ease;
    }

    .bottom-nav ul li a:hover {
        transform: translateY(-3px);
        opacity: 0.9;
        color: ; /* Change text color on hover */
    }

    .bottom-nav ul li a:hover svg {
        transform: none;
        fill: #; /* Change icon color to match the hover color */
    }

    .bottom-nav ul li a span {
        display: none; /* Hide text for bottom nav */
    }
}
/* =================== Show only logo image on screens less than 1024px =================== */
@media screen and (max-width: 1024px) {
    .sidebar {
        width: 10%; /* Reduce sidebar width instead of hiding */
        transition: width 0.3s ease-in-out;
    }
.sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🌞 Light Theme - Show Light Logo, Hide Dark */
.sidebar .light-logo {
    display: block;
}
.sidebar .dark-logo {
    display: none;
}

/* 🌙 Dark Theme - Show Dark Logo, Hide Light */
body.dark-theme .sidebar .light-logo {
    display: none;
}
body.dark-theme .sidebar .dark-logo {
    display: block;
}

/* 📌 Sidebar Logo Styling */
.sidebar .logo-img {
    max-width: 70px; /* Adjusted size for better fit */
    height: auto;
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

/* 🌙 Enhance Visibility on Dark Theme */
body.dark-theme .sidebar .dark-logo {
    filter: brightness(1) contrast(1.2);
}

    .sidebar .logo-text {
        display: none; /* Hide text "Gamtha" */
    }

    .sidebar ul li a span {
        display: none; /* Hide sidebar text */
    }

    .sidebar ul li a svg {
        display: inline-block; /* Show only icons */
        justify-content: center; /* Center align content horizontally */
        align-items: center; /* Center align content vertically */
    }

    .content {
        margin-left: 10%; /* Adjust content width accordingly */
        width: 90%;
    }
}

/* =================== Restore full sidebar on larger screens (1025px and above) =================== */
@media screen and (min-width: 1025px) {
    .sidebar {
        width: 18%; /* Restore full sidebar width */
		border-right: none;
    }

    .sidebar .logo {
        display: flex;
        align-items: center;
        margin-left: 10%;
    }

    .sidebar .logo-img {
        display: none; /* Hide image logo */
    }

    .sidebar .logo-text {
        display: inline-block; /* Show text "Gamtha" */
    font-family: 'Orbitron', 'Rajdhani', 'Exo 2', sans-serif;
    font-size: clamp(28px, 5vw, 25px);
    letter-spacing: 1.4px;
    transition: color 0.3s ease;
    }
	

    .sidebar ul li a span {
        display: inline-block; /* Show sidebar text */
    }

    .sidebar svg {
        display: inline-block; /* Ensure icons are also shown */
        justify-content: center; /* Center align content horizontally */
        align-items: center; /* Center align content vertically */
    }

    .content {
        margin-left: 18%; /* Matches the full sidebar width */
        width: 82%;
    }
}

/* =================== Mobile View: Show only the logo image (hide text) =================== */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 10%; /* Minimized sidebar */
        position: fixed; /* Keep sidebar fixed */
        top: 0;
        left: 0;
        height: 100vh; /* Full height */
        padding: 20px 10px; /* Adjust padding */
        background: #e4e5e6; /* Light minimalistic theme */
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: center;
        justify-content: flex-start;
        z-index: 1000; /* Ensure it's above content */
        overflow-y: auto; /* Enable vertical scrolling */
        transition: width 0.3s ease-in-out;
    }

    .sidebar .logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar .logo-img {
        width: 80%; /* Optimized width for responsiveness */
        max-width: 100px; /* Maintain a reasonable max size */
        height: auto; /* Maintain aspect ratio */
        display: block; /* Ensure block-level behavior */
        margin: 0 auto 30px auto; /* Center logo and add bottom spacing */
        object-fit: contain; /* Ensure image scales well */
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
    }

    .sidebar .logo-text {
        display: none; /* Hide text "Gamtha" */
    }

/* 🌞 Light Theme - Show Light Logo, Hide Dark */
.sidebar .light-logo {
    display: block;
}
.sidebar .dark-logo {
    display: none;
}

/* 🌙 Dark Theme - Show Dark Logo, Hide Light */
body.dark-theme .sidebar .light-logo {
    display: none;
}
body.dark-theme .sidebar .dark-logo {
    display: block;
}

/* 📌 Sidebar Logo Styling */
.sidebar .logo-img {
    max-width: 70px; /* Adjusted size for better fit */
    height: auto;
}

/* 🌙 Enhance Visibility on Dark Theme */
body.dark-theme .sidebar .dark-logo {
    filter: brightness(1) contrast(1.2);
}

    .sidebar ul {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .sidebar ul li {
        width: 100%;
        text-align: center;
    }

    .sidebar ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 98%;
        height: 50px;
        text-decoration: none;
        font-size: 1.2rem;
        color: #333; /* Ensure text/icon color */
        border-radius: 10px;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .sidebar svg {
        font-size: 1.5rem; /* Adjust icon size */
        margin-right: 8px; /* Space between icon and text */
        justify-content: center; /* Center align content horizontally */
        align-items: center; /* Center align content vertically */
    }

    .content {
        margin-left: 10%; /* Adjust content width */
        width: calc(100% - 10%);
    }
}

/* Custom Scrollbar Styling */
.sidebar-m::-webkit-scrollbar {
    width: 1px; /* Set scrollbar width */
}

.sidebar-m::-webkit-scrollbar-thumb {
    background-color: #888; /* Set scrollbar thumb color */
    border-radius: 10px; /* Rounded corners for the thumb */
}

.sidebar-m::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Darker thumb color on hover */
}

.sidebar-m::-webkit-scrollbar-track {
    background-color: #f1f1f12b; /* Light background for the scrollbar track */
    border-radius: 10px; /* Rounded corners for the track */
}



/* Menu Item Styling */
/* Specific additional styling for `.menu-item-Gamtha` links */
.menu-item-Gamtha ul li a {
    display: inline-block; /* Same block behavior for consistency */
    width: 100%; /* Links span full sidebar width */
    padding: 5px 0; /* Smaller padding than standard links */
	justify-content: center;
    color: red; /* Sets link color to red */
    text-decoration: none; /* Removes underlines */
    font-size: 1.2rem; /* Font size matches standard links */
    transition: color 0.3s ease; /* Smooth color transition */
}
/* 📌 Default Sidebar Logo */
.menu-item-Gamtha .logo-img-sidebar {
    height: 20px; /* Set the height of the logo */
    width: auto;  /* Maintain the aspect ratio of the logo */
	justify-content: center;
    transition: opacity 0.3s ease-in-out; /* Smooth transition effect */
}

/* 🌞 Light Theme - Show Light Logo, Hide Dark */
.menu-item-Gamtha .light-logo {
    display: block;
}
.menu-item-Gamtha .dark-logo {
    display: none;
}

/* 🌙 Dark Theme - Show Dark Logo, Hide Light */
body.dark-theme .menu-item-Gamtha .light-logo {
    display: none;
}
body.dark-theme .menu-item-Gamtha .dark-logo {
    display: block;
}


/* Reset and General Styles */
/* Resets browser defaults and defines consistent styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Body Styling */
body {
    font-family: 'Arial', sans-serif; /* Default font */
    line-height: 1.6; /* Improves text readability */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    display: flex; /* Flex layout for vertical alignment */
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    height: 100vh; /* Full viewport height */
}

/* Light Theme (Default) */
body {
    color: black; /* Text color */
    background: linear-gradient(to right, #e4e5e6, #f7f7f7);
}

/* Dark Theme */
body.dark-mode {
    color: white; /* Text color */
    background: linear-gradient(to right, #121212, #1e1e1e);
}


body.dark-theme .main-content {
    border: 1px solid #6D6D6D;
    border-right: none;
    background: #0000008c;
}

/* Custom Scrollbar Styling */
.main-content::-webkit-scrollbar {
    width: 5px; /* Set scrollbar width */
}

.main-content::-webkit-scrollbar-thumb {
    background-color: #adadad99; /* Set scrollbar thumb color */
    border-radius: 10px; /* Rounded corners for the thumb */
}

.main-content::-webkit-scrollbar-thumb:hover {
    background-color: #a3a3a3; /* Darker thumb color on hover */
}

.main-content::-webkit-scrollbar-track {
    background-color: #74747400; /* Light background for the scrollbar track */
    border-radius: 10px; /* Rounded corners for the track */
}


/* =================== TABLET VIEW (769px - 1024px) =================== */
@media screen and (max-width: 1024px) {
    .home-page {
        margin-left: 75px; /* Adjust width to match smaller sidebar */
        width: calc(100% - 75px);
    }
	.sidebar ul li {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}
}

/* =================== MOBILE VIEW (Up to 768px) =================== */
@media screen and (max-width: 768px) {
    .home-page{
        margin-left: 0; /* Remove sidebar spacing */
        width: 100%; /* Take full width */
    }
	.trending-stories h2 {
    display: none;
}
.trending-stories {
    padding: 20px 2%;
}
	
}

/* =================== EXTRA SMALL SCREENS (Up to 480px) =================== */
@media screen and (max-width: 768px) {
    .main-content {
        margin-top: 60px !important;
        padding-bottom: 55px;
        border: none;
        border-radius: 0px;
  }
  body.dark-theme .main-content {
    border: none;
    background: #0000008c;
}
  
  .main-content::-webkit-scrollbar {
    width: 0px;
}
}


/* Custom Scrollbar Styling */
.sidebar-m::-webkit-scrollbar {
    width: 1px; /* Set scrollbar width */
}

.sidebar-m::-webkit-scrollbar-thumb {
    background-color: #888; /* Set scrollbar thumb color */
    border-radius: 10px; /* Rounded corners for the thumb */
}

.sidebar-m::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Darker thumb color on hover */
}

.sidebar-m::-webkit-scrollbar-track {
    background-color: #f1f1f12b; /* Light background for the scrollbar track */
    border-radius: 10px; /* Rounded corners for the track */
}

@media screen and (min-width: 769px) {
  .logo-txt-menu {
	  display: none;
  }
}
	
@media screen and (min-width: 769px) {
/* 🌟 Trending Stories Section - Horizontal Carousel */
.trending-stories {
    padding: 0px;
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

/* 🌟 Trending Stories Title */
.trending-stories h2 {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

}
/* 🔥 Scrollable Stories Container */
.trending-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 10px;
    scrollbar-width: none; /* Hide scrollbar */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

/* Hide scrollbar for Webkit browsers */
.trending-scroll-container::-webkit-scrollbar {
    display: none;
}

/* 🌟 Individual Trending Story Items */
.trending-item {
    position: relative;
    min-width: 90px;
    max-width: 100px;
    height: 120px;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Hover Effect */
.trending-item:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

/* 🌟 Trending Image */
.trending-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 🔥 Trending Story Label */
.trending-item span {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 5px;
    text-align: center;
    width: 80%;
}
/* 🌟 Trending Story View - Fullscreen */
#trendingStoryView {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 95%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 3000;
}

/* ❌ Close Button */
#closeTrendingStory {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 24px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
}

#closeTrendingStory:hover {
    transform: scale(1.2);
}
.story-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Ensures spacing between title & content */
    max-width: 750px;
    min-height: 500px; /* Ensures proper height */
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* 🔥 Hover Effect */
.story-content:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.12);
}

/* 🔹 Title Styling (Top) */
.story-content h2 {
    font-size: 26px;
    font-weight: bold;
    margin-top: 0; /* Remove margin from top */
    color: #fff;
    align-self: flex-start; /* Moves title to the top */
}

/* 🔹 Details Styling (Centered) */
.story-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-align: center;
    flex-grow: 1; /* Pushes the paragraph to the center */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    width: 100%;
}


/* 📱 Mobile Optimization */
@media (max-width: 1024px) {
    .trending-item {
        min-width: 85px;
        height: 115px;
    }

    #trendingStoryView {
        width: 100vw;
        height: 100vh;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .trending-item {
        min-width: 90px;
        height: 120px;
    }

    #trendingStoryView {
        width: 100vw;
        height: 100vh;
    }
}

@media (max-width: 600px) {
    .trending-item {
        min-width: 100px;
        height: 150px;
    }

    #trendingStoryView {
        width: 100vw;
        height: 100vh;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .trending-item {
        min-width: 90px;
        height: 130px;
    }

    #closeTrendingStory {
        font-size: 18px;
        top: 8px;
        right: 12px;
    }

    #trendingStoryView {
        width: 100vw;
        height: 100vh;
        padding: 8px;
        border-radius: 0;
    }
}

/* 📲 Ultra-Small Phones (Up to 360px) */
@media (max-width: 360px) {
  

    #trendingStoryView {
        width: 100vw;
        height: 100vh;
        padding: 5px;
        border-radius: 0;
    }
}

/* 📲 Ultra-Tiny Screens (Up to 320px) */
@media (max-width: 320px) {
    .trending-item {
        min-width: 60px;
        height: 80px;
    }

    #closeTrendingStory {
        font-size: 14px;
        top: 5px;
        right: 8px;
    }

    #trendingStoryView {
        width: 100vw;
        height: 100vh;
        padding: 3px;
    }
}


/* Hide Background When Story is Open */
.hidden {
    display: none !important;
}

/* Prevent Scrolling When Story is Open */
body.no-scroll {
    overflow: hidden;
}


/* Primary Button in Hero Section */
.hero-section1 .btn-primary {
    background: transparent; /* Solid blue background */
    color: #fff; /* White text */
    border: none; /* No border */
    text-decoration: none; /* Removes underline */
    transition: background 0.3s ease; /* Smooth background transition */
}

.hero-section1 h1 {
text-align: center
}

/* Hover Effect for Primary Button */
.hero-section1 .btn-primary:hover {
    background: #0077b6; /* Lighter blue on hover */
}

/* Responsive Design */
/* Media query for screens smaller than 768px */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack sidebar and content vertically */
    }

    .sidebar {
        width: 100%; /* Full width for sidebar */
        padding: 15px; /* Reduced padding */
        text-align: center; /* Center aligns sidebar content */
    }

    .content {
        width: 100%; /* Full width for content */
        padding: 15px;
    }
    .sidebar ul li a {
        font-size: 0.9rem; /* Adjust font size for mobile */
        padding: 8px 12px; /* Reduce padding for smaller screens */
    }
    
}

/* For very small mobile devices (below 480px) */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .floating-button {
        padding: 12px;
        font-size: 1.2rem;
    }
}


/* 🌙 Dark Mode */
body.dark-theme .search-suggestions {
    background: rgba(34, 34, 34, 0.95);
    color: #fff;
}
/* 🌙 Dark Mode */
body.dark-theme .search-suggestions a {
    color: #fff;
    border-bottom: 1px solid #555;
}

/* 📌 Hover Effect */
.search-suggestions a:hover {
    background: rgba(0, 123, 255, 0.2);
}

/* 🌙 Dark Mode Hover */
body.dark-theme .search-suggestions a:hover {
    background: rgba(102, 179, 255, 0.2);
}

/* 🌍 Universal Search Container */
.search-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 🔎 Search Wrapper */
.search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 📌 Search Input */
.search-input {
    padding: 15px 25px;
    padding-left: 50px; /* Adjust for icon */
    border-radius: 50px;
    width: 320px;
    border: 2px solid;
    background: transparent;
    font-size: 1.2rem;
    transition: width 0.4s ease, padding 0.4s ease;
    outline: none;
}

/* 🎤 Search & Voice Icons */
.search-icon, .voice-search {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-left: 10px;
}
/* 📌 Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
	max-height: 250px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 10px;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    overflow: auto;
}

/* Custom Scrollbar Styling */
.search-suggestions::-webkit-scrollbar {
    width: 2px; /* Set scrollbar width */
}


/* 📌 Individual Suggestion Item */
.search-suggestions a {
    display: flex;
    padding: 10px;
    font-size: 1rem;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
/* 🔍 Search Results Section */
.search-results {
    width: 90%;
    max-width: 800px;
    margin: 0 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: none;
    max-height: 85vh;
    position: relative;
    overflow: hidden; /* Prevents header from moving */
}

/* 📌 Fixed Header (Inside search-results, does not scroll) */
.search-results-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #666;
    padding: 10px 16px;
    height: 70px;
    overflow: auto;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px solid #ddd;
    z-index: 5;
}

/* 🎯 Scrollable Search Results */
.search-results-content {
    height: 75vh;
    overflow-y: auto;
    padding: 70px 10px 10px;
}
/* Search Results Container */
#search-results {
    border: none;
    border-radius: 8px;
    width: -webkit-fill-available;
    overflow: hidden;
    overflow-y: auto;
    background-color: transparent;
    box-shadow: none;
}
#search-results::-webkit-scrollbar {
  width: 12px;
}

#search-results::-webkit-scrollbar-track {
  background: transparent;
}

#search-results::-webkit-scrollbar-thumb {
    background: #a9a9a93d;
    border-radius: 28px;
    border: 2px solid #4d6b7d75;
    transition: background 0.3s ease;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: #a9a9a93d;
    border: 2px solid #525071b5;
    border-radius: 28px;
}


body.dark-theme #search-results::-webkit-scrollbar-thumb {
    background: #2a2a2a00;
    border-radius: 28px;
    border: 2px solid #4d6b7d75;
    transition: background 0.3s ease;
}

body.dark-theme  #search-results::-webkit-scrollbar-thumb:hover {
    background: #3a404c3d;
    border: 2px solid #414c64;
    border-radius: 28px;
}

/* Individual Search Result Item */
.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px 20px; /* More padding for spaciousness */
    border-bottom: 1px solid #eff3f7; /* Very light subtle separator */
    cursor: pointer;
    text-decoration: none; /* In case it's an <a> tag */
    color: inherit; /* Ensure text color doesn't change if it's an <a> */
    /* Combined and improved transition for all interactive effects */
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none; /* No border for the last item */
}

/* Enhanced Hover and Active Effects */
.search-result-item:hover {
    background-color: #f2f7fc; /* Light blue tint on hover */
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); /* Stronger shadow on hover */
}

.search-result-item:active {
    transform: translateY(-2px); /* Slightly less lift on click */
    background-color: #e6f0f7; /* Slightly darker blue on active */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Reduced shadow on active */
}

.search-result-item img {
        width: 50px;
        height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px; /* More space to the right */
    border: 2px solid #007bff; /* Primary color border around image */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Small shadow for depth */
    flex-shrink: 0; /* Prevent image from shrinking on smaller screens */
}

.search-result-item div {
    white-space: nowrap;
    flex-grow: 1;
    text-overflow: ellipsis;
    display: flex
;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
}

.search-result-item h4 {
    margin: 0;
    font-size: 18px;
    align-items: center;
    color: #2c3e50;
    display: flex
;
    gap: 4px;
    font-weight: 600;
    line-height: 1.2;
}

.search-result-item p { /* For handle, general description */
    margin: 2px 0; /* Tighter spacing for paragraphs */
    font-size: 0.95em; /* Slightly smaller for secondary info */
    color: #6c7a89; /* Softer grey for details */
    line-height: 1.4;
}

.search-result-item .id-text {
    font-size: 0.8em;
    color: #99aab5;
    margin-top: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
}

/* Messages when no results or initial state */
#search-results > p { /* Target direct <p> children of search-results */
    padding: 20px;
    text-align: center;
    color: #7f8c8d; /* Muted grey for info messages */
    font-style: italic;
    font-size: 1.1em;
}

/* ==================================== */
/* RESPONSIVENESS */
/* ==================================== */

@media (max-width: 768px) {
    #search-results {
        height: -webkit-fill-available;
        margin: auto;
		scrollbar-width: none;
        border-radius: 6px; /* Slightly smaller border radius on smaller screens */
    }
    .search-result-item {
		
    background: transparent !important;
	border: none !important;
        padding: 12px 15px; /* Reduce padding slightly */
    }
    .search-result-item img {
        width: 50px; /* Slightly smaller image on mobile */
        height: 50px;
        margin-right: 15px;
        border-width: 2px; /* Slightly thinner border on mobile */
    }
    .search-result-item h4 {
        font-size: 1.15em; /* Adjust font sizes for mobile */
    }
    .search-result-item p,
    .search-result-item .id-text {
        font-size: 0.85em; /* Further adjust font sizes */
    text-overflow: ellipsis;
    overflow: hidden;
    }
}

@media (max-width: 480px) {
    .search-result-item {
        flex-direction: row; /* Stack image and info vertically */
        align-items: flex-start; /* Align content to the left */
        text-align: left;
        padding: 15px;
    }
    .search-result-item img {
        margin-right: 10px; /* Add bottom margin instead */
        align-self: center; /* Center the image in the stacked layout */
    }
    .search-result-item h4 {
        font-size: 17px;
    }
    .search-result-item p,
    .search-result-item .id-text {
        font-size: 14px;
    }
}

/* ==================================== */
/* DARK MODE (Optional - Requires JavaScript to toggle 'body.dark-theme') */
/* ==================================== */
body.dark-theme #search-results {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.dark-theme .search-result-item {
    background: #2a2a2a; /* Even darker background for individual items */
    color: #e0e0e0; /* Lighter text for dark mode */
    border-bottom-color: #3a3a3a; /* Darker separator */
}

body.dark-theme .search-result-item:hover {
    background-color: #383838; /* Darker hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .search-result-item:active {
    background-color: #2f2f2f; /* Darker active */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .search-result-item img {
    border-color: #63636354;
    background: #69696933;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-theme .search-result-item h4 {
    color: #f0f0f0; /* Lighter name color */
}

body.dark-theme .search-result-item p {
    color: #b0b0b0; /* Lighter grey for details */
}

body.dark-theme .search-result-item .id-text {
    color: #888; /* Slightly darker grey for least important info */
}

body.dark-theme #search-results > p {
    color: #a0a0a0; /* Lighter grey for info messages in dark mode */
}

/* Custom Scrollbar */
.search-results-content::-webkit-scrollbar {
    width: 5px;
}
.search-results-content::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}
.search-results-content::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}
.search-results-content::-webkit-scrollbar-track {
    background-color: #f1f1f1;
    border-radius: 10px;
}

/* 🌞 Light Theme */
.search-input {
    color: #222;
    border-color: #ccc;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* 🌙 Dark Theme */
body.dark-theme .search-input {
    color: #fff;
    border-color: #555;
}

body.dark-theme .search-input:focus {
    border-color: #66b3ff;
    box-shadow: 0 0 5px rgba(102, 179, 255, 0.5);
}

/* ✨ Focused Search Input */
.search-input:focus {
    width: 400px;
}

/* 🌞 Light Theme Icons */
.search-icon, 
.voice-search {
    color: #00000082;
}

/* 🌙 Dark Theme Icons */
body.dark-theme .search-icon, 
body.dark-theme .voice-search {
    color: #fff;
}

.search-icon:hover, .voice-search:hover {
    transform: scale(1.1);
}


/* 🌞 Light Mode */
.search-suggestions {
    background: rgba(255, 255, 255, 0.9);
    color: #222;
}

/* 🌙 Dark Mode */
body.dark-theme .search-suggestions {
    background: rgba(34, 34, 34, 0.95);
    color: #fff;
}
/* 🔥 Futuristic AI Chevron Animation */
.inner-chevron {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translate(-50%, -50%) rotate(270deg);
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 3px solid #00eaff; /* Neon Cyan */
    border-radius: 50%;
    animation: aiGlow 2.5s infinite ease-in-out alternate;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.9), 0 0 25px rgba(0, 234, 255, 0.6); 
    filter: drop-shadow(0 0 12px rgba(0, 234, 255, 0.9)) hue-rotate(30deg);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* 🔹 Show AI Chevron when Search Bar is Focused */
.search-input:focus + .inner-chevron {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(0deg) scale(1.2);
}

/* 🌊 AI Glow & Shape Morphing */
@keyframes aiGlow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        border-radius: 50%;
        border-color: #00eaff;
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.9), 0 0 25px rgba(0, 234, 255, 0.6);
        filter: hue-rotate(0deg);
    }
    25% {
        transform: translate(-50%, -50%) rotate(60deg) scale(1.15);
        border-radius: 40% 60% 60% 40%;
        border-color: #00ffcc;
        opacity: 0.8;
        box-shadow: 0 0 20px rgba(0, 255, 204, 0.9), 0 0 30px rgba(0, 255, 204, 0.6);
        filter: hue-rotate(60deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(120deg) scale(1);
        border-radius: 60% 40% 40% 60%;
        border-color: #00ffaa;
        opacity: 0.6;
        box-shadow: 0 0 25px rgba(0, 255, 170, 0.9), 0 0 35px rgba(0, 255, 170, 0.6);
        filter: hue-rotate(120deg);
    }
    75% {
        transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
        border-radius: 30% 70% 70% 30%;
        border-color: #00ff77;
        opacity: 0.9;
        box-shadow: 0 0 30px rgba(0, 255, 119, 0.9), 0 0 40px rgba(0, 255, 119, 0.6);
        filter: hue-rotate(180deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        border-radius: 50%;
        border-color: #00eaff;
        opacity: 1;
        box-shadow: 0 0 15px rgba(0, 234, 255, 0.9), 0 0 25px rgba(0, 234, 255, 0.6);
        filter: hue-rotate(0deg);
    }
}
/* 📱 Tablets & Smaller Screens */
@media (max-width: 768px) {
    /* 🔍 Default Search Bar (Centered Initially) */
    .search-container {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        padding: 10px;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    /* 📌 When Search Bar is Active (Moves to Top) */
    .search-container.active {
        top: 10px;
        left: 70px;
        right: 35px;
        width: auto;
        max-width: calc(100% - 70px);
        transform: none;
    }

    /* 🔍 Search Input */
    .search-input {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px 12px 15px;
        font-size: 1rem;
        border-radius: 30px;
        padding-left: 50px; /* Adjust for icon */
        transition: all 0.3s ease;
    }

    .search-input:focus {
        width: 100%;
        max-width: 360px;
    }

    /* 📜 Search Results */
    .search-results {
        width: 95%;
        border-radius: 10px;
    }

    /* 📝 Adjust Search Results Header */
    .search-results-header {
        font-size: 1em;
        padding: 10px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .search-result-item {
        padding: 12px;
        border-left:none;
        background: #f8f9fa;
        transition: transform 0.2s ease;
    }

    .search-result-item:hover {
        transform: scale(1.02);
        background: #e9ecef;
    }

    .search-results h2 {
        font-size: 1.2em;
    }

    .search-result-item h3 {
        font-size: 1em;
    }

    .search-results p {
        font-size: 0.9em;
    }
	
}

/* 📱 Mobile Screens */
@media (max-width: 480px) {
    /* 🔝 Full Width Search Bar */
    .search-container {
        width: 95%;
        max-width: 350px;
    }

    /* 📌 Moves to Top When Active */
    .search-container.active {
        top: 10px;
        left: 80px;
        right: 55px;
        width: auto;
        max-width: calc(100% - 50px);
        transform: none;
    }

    /* 🔍 Adjust Search Input */
    .search-input {
        max-width: 220px;
        font-size: 0.80rem;
        padding: 12px 45px 12px 15px;
        padding-left: 50px; /* Adjust for icon */
    }

    .search-input:focus {
        max-width: 270px;
    }

    /* 📝 Adjust Search Results */
    .search-results {
        width: 100%;
        padding: 10px;
    }

    .search-results-header {
        font-size: 0.95em;
        padding: 8px;
        color: white;
        text-align: center;
    }

    .search-result-item {
        padding: 8px;
        margin-bottom: 3px;
    }

    .search-results h2 {
        font-size: 1.1em;
    }

    .search-suggestions {
        width: 95%;
        z-index: 1001; /* Ensures it's above the header */
        border: 2px solid #ddd;
    }
}




/* Floating Button Styles */
.floating-button {
    position: fixed;
    color: black;
    border-radius: 50%;
    padding: 12px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000; /* Ensure the button is on top of other content */
    text-decoration: none; /* Remove underline */
}

/* 🌙 Dark Theme */
.floating-button {
    color: black;
}

body.dark-theme .floating-button {
    color: White;
    border: 2px solid #434343;
}

.floating-button:hover {
    transform: scale(1.1);
}

/* Home Button (Top Left) */
#home-button {
    top: 15px;
    left: 20px;
}

/* Exit Button (Bottom Left) */
#exit-button {
    bottom: 20px;
    left: 20px;
}
/* Comeback Button */
.comeback-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.comeback-button:hover {
    color: #0077b6;
    transform: scale(1.2);
}
/* =================== BASE STYLES =================== */
.notify1 {
    margin-left: 245px; /* Adjust for sidebar */
    width:calc(100% - 245px); /* Adjust dynamically based on sidebar */
    height: 100vh; /* Full height */
    padding: 50px 20px; /* Internal spacing */
    background: transparent; /* Default transparent */
    border-radius: 0px; /* Clean edges */
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    overflow-x: auto; /* Enable horizontal scrolling if needed */
    white-space: nowrap; /* Prevent text wrapping */
    transition: all 0.3s ease-in-out; /* Smooth transitions */
}

/* =================== 🖥️ DESKTOP SCREENS =================== */
@media screen and (min-width: 1200px) {
    .notify1 {
        margin-left: 245px; /* Slightly adjust for wider screens */
        width: calc(100% - 245px);
    }
}

/* =================== 📱 TABLETS (UP TO 1024px) =================== */
@media screen and (max-width: 1024px) {
    .notify1 {
        margin-left: 70px; /* Adjust based on sidebar width */
        width: calc(100% - 70px);
        font-size: 1.4rem;
    }
}

/* =================== 📱 MOBILE DEVICES (UP TO 768px) =================== */
@media screen and (max-width: 768px) {
    .notify1 {
        margin-left: 0; /* Remove sidebar offset */
        width: 100%; /* Full width */
        font-size: 1.2rem;
        padding: 40px 15px; /* Adjust padding */
        white-space: normal; /* Allow text wrapping */
    }
}

/* =================== 📲 SMALL PHONES (UP TO 480px) =================== */
@media screen and (max-width: 480px) {
    .notify1 {
        padding: 30px 12px; /* Adjust padding */
        font-size: 1rem; /* Reduce text size */
    }
}

/* =================== 📲 ULTRA SMALL PHONES (UP TO 360px) =================== */
@media screen and (max-width: 360px) {
    .notify1 {
        padding: 20px 10px;
        font-size: 0.95rem; /* Adjust font for smaller screens */
    }
}


.about-Gamthapage {
    width: 100%; /* Content occupies 80% of the screen width */
    height: 100%; /* Content occupies 80% of the screen height */
    padding: 15px; /* Internal spacing */
    background: #fff; /* Clean white background */
    border-radius: 8px; /* Smooth rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    margin: left-side; /* Centers the content */
    white-space: nowrap; /* Prevents content from wrapping, enabling horizontal scrolling */
}

.hidden {
  display: none;
}

const aboutGamthaLink = document.querySelector('.menu-item-Gamtha'); // Select the "About Gamtha" link
const sidebarElement = aboutGamthaLink.closest('.sidebar'); // Get the sidebar parent element

// Apply styles to the sidebar and the "About Gamtha" link
await setElementStyles(sidebarElement, { position: 'relative' }); // Ensure the sidebar has relative positioning
await setElementStyles(aboutGamthaLink, {
  position: 'absolute', // Position the link absolutely within the sidebar
  bottom: '15px', // Adjust the position based on design
  left: '50%', // Center horizontally
  transform: 'translateX(-50%)', // Fine-tune the centering
  width: '18%', // Set the width to match the sidebar
  background: 'transparent', // Remove background color
  color: 'black', // Ensure the text color is black
  padding: '10px 15px', // Add padding
  textDecoration: 'none', // Remove underlining
  borderRadius: '5px', // Add rounded corners
  fontSize: '16px', // Set font size
  textAlign: 'center', // Center the text inside the link
});

// Get computed styles for both the sidebar and the "About Gamtha" link
const sidebarComputedStyles = window.getComputedStyle(sidebarElement);
const aboutGamthaLinkComputedStyles = window.getComputedStyle(aboutGamthaLink);

// Gather the data
const data = {
  sidebarWidth: sidebarComputedStyles['width'], // Width of the sidebar
  aboutGamthaLinkWidth: aboutGamthaLinkComputedStyles['width'], // Width of the "About Gamtha" link
  sidebarPosition: sidebarComputedStyles['position'], // Positioning of the sidebar
  aboutGamthaLinkPosition: aboutGamthaLinkComputedStyles['position'], // Positioning of the link
};

console.log(data); // Log the computed styles for debugging purposes




/* Splash Screen Style */
#splashScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;  /* Full width of the viewport */
    height: 100vh;  /* Full height of the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;  /* Ensures both logo and name are centered horizontally */
    color: #333; /* Neutral text color */
    background: linear-gradient(to right, #e4e5e6, #f7f7f7); /* Light gradient background */
    z-index: 99990;
    opacity: 1;
    transition: opacity 1s ease-in-out, transform 0.5s ease-in-out;} 
/* 🔹 Splash Screen Fade-Out Animation */
#splashScreen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

body.dark-theme #splashScreen {
    background: linear-gradient(to bottom, #121212, #1c1c1c);
    color: #f0f0f0;
}
/* 🔹 Default Light Theme */
#lightLogo {
    display: block;
}

#darkLogo {
    display: none;
}

/* 🌙 Dark Theme */
body.dark-theme #lightLogo {
    display: none;
}

body.dark-theme #darkLogo {
    display: block;
}

/* 🔹 Center the logo and name */
#splashScreen img { 
   width: 200px !important;
    height: auto;
    align-self: center;  /* Ensures the logo is centered horizontally */
}

/* 🔹 Hide Elements */
.hidden {
    display: none;
}


 
/* 🔹 Responsive Design */
@media (max-width: 1024px) {
    #splashScreen img {
      width: 200px !important;
    }
    #splashScreen h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #splashScreen img {
    }
    #splashScreen h1 {
        font-size: 21px;
    }
}

@media (max-width: 480px) {
    #splashScreen img {
       width: 185px !important;
    }
    #splashScreen h1 {
        font-size: x-large;
    }
}

/* Main Content */
#mainContent {
    padding: 20px;
}

/* =================== USERS LIST COLUMN =================== */
.users-list {
    margin-left: 70px; /* Align with the sidebar */
    padding: 15px 0px; /* Spacing for content */
    width: 345px; /* Optimized width */
    border-right: 1px solid #ddd; /* Subtle separator */
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1); /* Depth effect */
    overflow-y: auto; /* Enable vertical scrolling */
    position: fixed; /* Keep it fixed */
    background: #eeeff0;
    left: 0%; /* Align properly */
    top: 0; /* Align to top */
    height: 100vh; /* Full viewport height */
    transition: all 0.3s ease-in-out;
}

/* =================== CUSTOM SCROLLBAR =================== */
.users-list::-webkit-scrollbar {
    width: 4px;
}

.users-list::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: rgba(100, 100, 100, 0.4);
    transition: background-color 0.3s;
}

.users-list::-webkit-scrollbar-track {
    background: transparent;
}

/* Scrollbar for LIGHT theme */
.users-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
}

 .users-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Scrollbar for DARK theme */
body.dark-theme .users-list::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .users-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Header for Users List */
.users-list h2 {
    font-family: 'Segoe UI', 'Helvetica Neue', 'Roboto', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #;
    margin-bottom: 15px;
    text-align: left; /* Fixed syntax */
    text-transform: capitalize;
    letter-spacing: 0px;
}

/* =================== USERS ITEM STYLES =================== */
.user-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

/* Hover Effects */
.user-item:hover {
    background-color: #f1f1f1;
    transform: translateX(5px);
}

/* Avatar Styling */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #3498db;
}

/* User Name Styling */
.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    text-transform: capitalize;
    transition: color 0.3s ease;
}

/* Hover Effect */
.user-item:hover .user-name {
    color: #3498db;
}

/* =================== CUSTOM SCROLLBAR =================== */
.users-list::-webkit-scrollbar {
    width: 4px;
}

.users-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}


/* =================== MAIN CONTENT AREA =================== */
.content1 {
    margin-left: 415px;
    padding: 0px;
    width: calc(100% - 415px);
    background-color: ;
    overflow-y: auto;
	z-index: 0;
    position: relative;
    height: 100vh;
    transition: all 0.3s ease-in-out;
}
body.dark-theme .content1 {
	background: #0000008c;
}



/* =================== RESPONSIVE DESIGN =================== */
/* TABLET VIEW */
@media (max-width: 1024px) {
    .users-list {
        width: 30%; /* Adjust width */
        left: 0; /* Align properly */
    }

    .content1 {
        margin-left: 70px;
        width: calc(100% - 70px);
    }
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    .users-list {
        position: relative;
        width: 100%;
        height: auto; /* Auto height for better scrolling */
        border-right: none; /* Remove border */
        box-shadow: none; /* No shadow */
    }

    .content1 {
        margin-left: 0;
        width: 100%;
    }
}

/* SMALL MOBILE VIEW */
@media (max-width: 480px) {
    .users-list h2 {
        font-size: 20px; /* Reduce header size */
        text-align: center;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
    }

    .user-name {
        font-size: 16px;
    }
}

/* =================== CHAT HEADER =================== */
.chat-header {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 415px); /* Optimized width */
    background-color: #eeeff0;
    padding: 16px 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 70px;
    border-bottom: 2px solid #ddd;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Hover Effect */
.chat-header:hover {
    background-color: ;
}

/* =================== CHAT USER AVATAR =================== */
.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3498db;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Avatar Hover Effect */
.chat-avatar:hover {
    transform: scale(1.0);
    border-color: #2980b9;
}
/* =================== CHAT HEADER DETAILS =================== */
.chat-header-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Profile Name */
.chat-header-details h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Segoe UI', 'Helvetica Neue', 'Roboto', sans-serif;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 🔥 Status Badge (Beside Name) */
.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: capitalize;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 🟢 Online Badge */
.status-badge.online {
    background: #28a745;
    color: white;
    animation: pulse 1.5s infinite alternate; /* Soft glowing effect */
}

/* ⚪ Offline Badge */
.status-badge.offline {
    background: #6c757d;
    color: #f1f1f1;
}

/* 🟡 Idle Badge */
.status-badge.idle {
    background: #ffc107;
    color: black;
}

/* 🔥 Pulsing Glow Effect for "Online" */
@keyframes pulse {
    0% {
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
    }
    100% {
        box-shadow: 0 0 12px rgba(40, 167, 69, 0.9);
    }
}

/* 🔥 Status Text (Below Name) */
.user-status-text {
    font-size: 14px;
    font-weight: 400;
    color: #777;
    font-family: 'Segoe UI', 'Helvetica Neue', 'Roboto', sans-serif;
    transition: color 0.3s ease;
}

/* Online (Green) */
.user-status-text.online {
    color: #28a745;
}

/* Offline (Gray) */
.user-status-text.offline {
    color: #6c757d;
}

/* Idle (Yellow) */
.user-status-text.idle {
    color: #ffc107;
}
/* 🌞 Light Theme - Sidebar Header */
body.dark-theme .chat-header-details h3 {
    color: #b3b3b3;
}
/* 🌞 Light Theme - Sidebar Header */
.chat-header-details h3 {
    color: rgb(46 45 45);
}
/* Profile Name Hover Effect */
.chat-header-details h3:hover {
    color: ;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Profile Name Focus Effect */
.chat-header-details h3:focus {
    outline: none;
    color: #2980b9;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Profile Name Click Effect */
.chat-header-details h3:active {
    transform: translateY(1px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* =================== CHAT HEADER ACTION BUTTONS =================== */
.chat-header-actions {
    position: relative;
    display: flex;
    gap: 10px;
    color: black;
    align-items: center;
}

/* Individual Button Style */
.header-action-btn {
    background: none;
    border: none;
    font-size: 18px;
    display: flex;
    color: black ;
	border-radius: 15px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    padding: 8px;
}

/* Button Hover Effect */
.header-action-btn:hover {
    color: #2980b9;
}

/* Button Click Effect */
.header-action-btn:active {
    transform: scale(0.98);
}


/* 🌙 Dark Theme - Chat Header */
body.dark-theme .chat-header {
    background: #111113;
    border-bottom: 2px solid #333;
}


/* 🌙 Dark Theme - Hover Effect */
body.dark-theme .chat-header:hover {
}



/* 🌙 Dark Theme - Profile Name Hover */
body.dark-theme .chat-header-details h3:hover {
    color: #acb2b9;
}

/* 🌙 Dark Theme - Action Buttons */
body.dark-theme .header-action-btn {
    color: #c8c8c8;
}

/* 🌞 Light Theme - Button Hover */
.header-action-btn:hover {
    color: #000000c9;
    background: #c8c8c84d;
}

/* 🌙 Dark Theme - Button Hover */
body.dark-theme .header-action-btn:hover {
    color: #edf6ff;
    background: #53535354;
    border-radius: 15px;
}

/* 🌞 Light Theme - Avatar Border */
.chat-avatar {
    border-color: #3498db;
}

/* 🌙 Dark Theme - Avatar Border */
body.dark-theme .chat-avatar {
    border-color: #66b2ff;
}
/* =================== RESPONSIVE DESIGN =================== */

/* TABLET VIEW */
@media (max-width: 1024px) {
    .chat-header {
        width: calc(100% - 70px);
        margin-left: 70px;
        padding: 12px 20px;
    }

    .chat-avatar {
        width: 45px;
        height: 45px;
    }

    .chat-header-details h3 {
        font-size: 20px;
    }
}
/* Back Icon - Hidden by Default */
.back-icon {
    cursor: pointer;
    display: none; /* Hidden on larger screens */
    position: relative;
	stroke: #898989;
	border-radius: 12px;
	padding: 10px;
}
.back-icon:hover {
    background: #8e8e8e3d;
    stroke: #373737;
}

body.dark-theme .back-icon:hover {
    background: #60606063;
}

body.dark-theme .back-icon svg {
    stroke: #c8c8c8; /* Lighter icons in dark mode */
}

/* MOBILE VIEW */
@media (max-width: 768px) {
    .chat-header {
        width: 100%;
        margin-left: 0;    
		height: 60px;
        border-radius: 0;
        padding: 5px 15px 5px 0px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-height: unset;
    }

    .users-list {
        display: none;
    }

    /* Move Chat Avatar Slightly to the Right */
    .chat-avatar {
        width: 45px;
        height: 45px;
        margin-left: 0px; /* Creates space for back icon */
    }


    .chat-header-details h3 {
        font-size: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
    }

    /* Show Back Icon Only on Small Screens */
    .back-icon {
        display: flex;
    }
}

/* SMALL MOBILE VIEW */
@media (max-width: 480px) {
    .chat-header {
        height: 60px;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
    }

}

/* 🌟 Move Status Text Below on Small Screens */
@media (max-width: 535px) {

    .user-status-text {
        font-size: 12px;
    }
}
@media (max-width: 535px) {
    .chat-header-details {
        gap: 0px;
        display: inline-grid;
        flex-direction: row;
    }
}
/* =================== CHAT MESSAGES =================== */

/* Outgoing Messages */
.outgoing {
    background-color: #3498db;
    color: white;
    margin-left: auto;
    align-self: flex-end;
    border-radius: 20px 20px 0 20px;
    padding: 12px 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 75%;
    word-wrap: break-word;
    font-size: 1rem;
}

/* Incoming Messages */
.incoming {
    background-color: #f1f1f1;
    color: #333;
    align-self: flex-start;
    border-radius: 20px 20px 20px 0;
    padding: 12px 24px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 75%;
    word-wrap: break-word;
    font-size: 1rem;
}

/* =================== CHAT INPUT SECTION =================== */
/* =================== CHAT MESSAGES CONTAINER =================== */
.chat-Content {
    position: fixed; /* Fixes the container to its place */
    top: 70px; /* Matches the header spacing */
    bottom: 0px; /* Matches the chat input spacing */
    width: calc(100% - 415px); /* Stretches across the full width */
    right: 0;
    overflow-y: auto; /* Allows scrolling for long messages */
    padding: 15px 15px 80px; /* Inner spacing for messages */
    display: flex;
    flex-direction: column;
}
/* =================== CUSTOM SCROLLBAR WITH BUTTONS =================== */
/* =================== CUSTOM SCROLLBAR =================== */
/* =================== CUSTOM SCROLLBAR =================== */

/* Light Theme */
.chat-Content::-webkit-scrollbar {
    width: 12px;
    background: transparent;
}

.chat-Content::-webkit-scrollbar-track {
    background: transparent;
}

.chat-Content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.chat-Content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Scrollbar Buttons (Up and Down) */
.chat-Content::-webkit-scrollbar-button:single-button {
    background-color: transparent;
    height: 24px; /* Bigger buttons */
    width: 100%;
    background-size: 20px 20px; /* Bigger icons */
    background-repeat: no-repeat;
    background-position: center;
    cursor: default; /* Show no clickable pointer */
}

/* Disable button functionality */
.chat-Content::-webkit-scrollbar-button:single-button:increment,
.chat-Content::-webkit-scrollbar-button:single-button:decrement {
    display: block;
}

/* Up Arrow */
.chat-Content::-webkit-scrollbar-button:single-button:decrement {
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 14l5-5 5 5z"/></svg>');
}

/* Down Arrow */
.chat-Content::-webkit-scrollbar-button:single-button:increment {
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}

/* Dark Theme */
body.dark-theme .chat-Content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme .chat-Content::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

body.dark-theme .chat-Content::-webkit-scrollbar-button:single-button:decrement {
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 14l5-5 5 5z"/></svg>');
}

body.dark-theme .chat-Content::-webkit-scrollbar-button:single-button:increment {
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}



/* =================== CHAT INPUT CONTAINER =================== */
.chat-input-container {
    position: relative;
    bottom: 0px;
    width: calc(100% - 415px);
    height: 55px;
    width: 550px;
    padding: 12px;
    background: rgb(240 240 240);
    border: 2px solid #ddd;	/* Fixed border color */
	border-radius: 100px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transition: height 0.2s ease-in-out;
}

/* Light Mode */
body.dark-theme .chat-input-container {
    background: #111113;
    border: 2px solid #333;
}


/* =================== MESSAGE INPUT FIELD =================== */
.chat-input-container textarea {
    width: 100%;
    min-height: 40px;
    max-height: 180px;
    padding: 12px;
    font-size: 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    outline: none;
    background: transparent;
    resize: none;
    scrollbar-width: none;
    border: none;
    transition: min-height 0.2s ease-in-out;
}

/* Auto-expanding effect */
.chat-input-container textarea:focus,
.chat-input-container textarea:valid {
    height: -webkit-fill-available;
}

/* Placeholder Text */
.chat-input-container textarea::placeholder {
	color: rgba(0, 0, 0, 0.5);
}

/* Light Mode Placeholder */
body.dark-theme .chat-input-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Light Mode Placeholder */
body.dark-theme .chat-input-container textarea {
    color: #e0e0e0;
}
/* =================== ICONS BELOW INPUT =================== */
.chat-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 8px;
    align-items: center;
}
/* =================== LEFT SIDE ICONS CONTAINER =================== */
.left-icons {
    display: flex;
    gap: 5px; /* Optimized spacing between icons */
    align-items: center;
}

/* =================== ACTION BUTTONS =================== */
.action-button {
    font-size: 20px;
    background: none;
    border: none; /* Fixed border color */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out, background 0.2s ease-in-out, border 0.2s ease-in-out;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Default Light Mode */
.action-button {
    color: #444444;
    border-color: #888888; /* Fixed Cyan Border */
}

/* Dark Mode */
body.dark-theme .action-button {
    color: #a4a4a4; /* Neon Cyan */
    border-color: #8f8f8f; /* Fixed Neon Border */
}

/* Hover Effect */
.action-button:hover {
    transform: scale(1.05);
    background: rgba(0, 255, 255, 0.1);
    border-color: white; /* Slightly brighter border on hover */
}

/* Light Mode Hover */
.action-button:hover {
    color: #004ea2;
    border-color: #004ea2;
}

/* Dark Mode Hover */
body.dark-theme .action-button:hover {
    color: white; /* High contrast in dark mode */
    border-color: white; /* Pure white border */
}

/* =================== ICON SVG THEMING =================== */
.action-button .icon {
    width: 22px;
    height: 22px;
    transition: fill 0.2s ease-in-out;
}

/* Adaptive SVG Fill */
.action-button:hover .icon {
    fill: white;
}
/* =================== SEND BUTTON =================== */
.send-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 240, 240, 0.95);
    border: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #444444;
    padding: 8px;
	height: 45px;
	Width: 45px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease-in-out;
}

/* Dark Mode */
body.dark-theme .send-button {
    background: #c8c8c8;
    color: #111113;
    border: 2px solid #c8c8c8;
}

/* Hover Effect */
.send-button:hover {
    background: #cbcbcb; /* Lighter gray tone */
    transform: scale(1.00);
}

/* Dark Mode Hover */
body.dark-theme .send-button:hover {
    background: #ffffff;
    color: black;
    border-Color: white;
}

/* =================== SEND BUTTON SVG ICON =================== */
.send-button svg {
    width: 23px;
    height: 23px;
    transition: stroke 0.2s ease-in-out;
}

/* Icon Color */
.send-button:hover svg {
    stroke: black;
}

/* Dark Mode Icon Color */
body.dark-theme .send-button:hover svg {
    stroke: #181818;
}


/* =================== RESPONSIVE DESIGN =================== */
@media (max-width: 1200px) {
    .chat-input-container textarea {
        min-height: 40px;
        max-height: 100px;
    }
}

/* Tablets & Small Laptops */
@media (max-width: 1024px) {
    .chat-input-container textarea {
        min-height: 44px;
        max-height: 100px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .chat-input-container {
        padding: 8px;
    }

    .chat-input-container textarea {
        min-height: 40px;
        max-height: 100px;
        border-radius: 14px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .chat-input-container textarea {
    }
}
/* =================== RESPONSIVE DESIGN =================== */

/* TABLETS */
@media (max-width: 1024px) {
    .chat-Content {
        left: 70px;
        margin-left: 0;
        width: calc(100% - 70px);
		margin-top:0%;
        margin-bottom: 0px; /* Leaves space for bottom-nav */
    }
	.users-list {
	display: none;
    }

    .chat-input-container {
        width: ;
		height: 55px;
        align-items: center;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .chat-Content {
        left: 0%;
        right: 5%;
        top:60px;
		width:100%;
		height:;
    }


	
    .chat-input-container {
        flex-direction: ;
        padding: 10px;
        z-index: 3000;
		width: 100%;
	    left: 0%;
		margin-right:0%;
        align-items: center;
    }

    .send-button {
        text-align: center;
        padding: 12px;
        font-size: 14px;
    }
}

/* SMALL MOBILE */
@media (max-width: 768px) {

    .chat-Content {
        left: 0%;
        right: 0%;
        top:60px;
         padding: 10px 10px 80px; /* Inner spacing for messages */
    }

    .chat-input-container {
        max-width: 100%;
        align-items: center;
    }
    .chat-input-container {
        padding: 10px;
    }
    .send-button {
        padding: 10px;
        font-size: 13px;
    }
}

/* Shadows for Depth */
.chat-Content {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05); /* Slight inset shadow for depth */
    border-radius: 0px; /* Rounded corners for a polished look */
}
/* Chat Message Box */
.chat-message {
    max-width: 70%;
    padding: 14px 18px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 15px;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0px 0px 12px !important;
    word-wrap: break-word;
    white-space: pre-wrap;
	line-height: 1.5;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/* User Messages */
.chat-message.user {
    flex-direction: column;
    align-self: flex-end;
    border-radius: 15px;
    display: flex;
    background-color: #e1f5fe;
    border: 1px solid #ddd;
}

/* Bot Messages */
.chat-message.bot {
    align-self: flex-start;
    background-color: #f0f0ff;
    color: #4141a6;
    border-radius: 15px;
    border: 1px solid #d2d2f7;
}
/* ========== GLOBAL BASE STYLES ========== */
.chat-message {
  font-size: 15.5px;
  color: #222;
  padding: 12px 16px;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* ========== HEADINGS ========== */
.chat-message h1,
.chat-message h2,
.chat-message h3,
.chat-message h4,
.chat-message h5,
.chat-message h6 {
  margin: 16px 0 8px;
  line-height: 1.3;
  font-weight: 700;
}

.chat-message h1 { font-size: 24px; color: #222; }
.chat-message h2 { font-size: 21px; color: #333; }
.chat-message h3 { font-size: 18px; color: #444; }
.chat-message h4 { font-size: 16px; color: #555; }
.chat-message h5 { font-size: 14px; color: #666; }
.chat-message h6 { font-size: 13px; color: #777; }

body.dark-theme .chat-message h1 { color: #f2f2f2; }
body.dark-theme .chat-message h2 { color: #e0e0e0; }
body.dark-theme .chat-message h3 { color: #ccc; }
body.dark-theme .chat-message h4 { color: #bbb; }
body.dark-theme .chat-message h5 { color: #aaa; }
body.dark-theme .chat-message h6 { color: #999; }

/* ========== TEXT FORMATTING ========== */
.chat-message b,
.chat-message strong {
  font-weight: 500;
  color: #111;
}
.chat-message i,
.chat-message em {
  font-style: italic;
  color: #444;
}
.chat-message u {
  text-decoration: underline;
  color: #0066cc;
}
.chat-message s {
  text-decoration: line-through;
  color: #888;
}

body.dark-theme .chat-message b,
body.dark-theme .chat-message strong { color: #fff; }
body.dark-theme .chat-message i,
body.dark-theme .chat-message em { color: #ccc; }

/* ========== BLOCKQUOTES ========== */
.chat-message blockquote {
  border-left: 4px solid #3498db;
  padding-left: 12px;
  margin: 16px 0;
  font-style: italic;
  background: #f9f9f9;
  color: #555;
}

body.dark-theme .chat-message blockquote {
  background: #1e2b33;
  border-left-color: #1abc9c;
  color: #ccc;
}

/* ========== INLINE CODE ========== */
.chat-message code {
  font-family: 'Courier New', monospace;
  background: rgba(0, 0, 0, 0.06);
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 14px;
  color: #d35400;
}
body.dark-theme .chat-message code {
  background: rgba(255, 255, 255, 0.08);
  color: #f39c12;
}

/* ========== CODE BLOCK ========== */
.chat-message pre {
  background: #f4f4f4;
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  margin: 16px 0;
}
.chat-message pre code {
  background: none;
  padding: 0;
  color: #d63384;
}

body.dark-theme .chat-message pre {
  background: #263238;
  color: #ecf0f1;
}

/* ========== LIST STYLES ========== */
.chat-message ul,
.chat-message ol {
  margin: 12px 0;
}
.chat-message ul li,
.chat-message ol li {
  margin-bottom: 6px;
}

.chat-message ul { list-style-type: disc; }
.chat-message ol { list-style-type: decimal; }

body.dark-theme .chat-message ul li,
body.dark-theme .chat-message ol li {
  color: #ddd;
}

/* ========== HORIZONTAL RULE ========== */
.chat-message hr {
  border: none;
  border-top: 1px solid #ddd;
}
body.dark-theme .chat-message hr {
  border-top: 1px solid #444;
}

/* ========== LINK STYLES ========== */
.chat-message a {
  color: #007bff;
  text-decoration: none;
  word-break: break-word;
}
.chat-message a:hover {
  text-decoration: underline;
}
body.dark-theme .chat-message a {
  color: #66d9ef;
}

/* ========== IMAGES ========== */
.chat-message img {
  max-width: 100%;
  border-radius: 6px;
  margin: 10px 0;
  display: block;
}
body.dark-theme .chat-message img {
  opacity: 0.9;
}

/* ========== RESPONSIVE FIXES ========== */
@media (max-width: 600px) {
  .chat-message {
    font-size: 14.5px;
    padding: 10px 12px;
  }
  .chat-message h1 { font-size: 20px; }
  .chat-message h2 { font-size: 18px; }
  .chat-message h3 { font-size: 16px; }
}
/* ========== Responsive Table Wrapper ========== */
.chat-message .table-wrapper {
	    display: flex;
    flex-direction: column;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #999 transparent;
}

.chat-message .table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.chat-message .table-wrapper::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 3px;
}
.chat-message .table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #888 transparent;
}

.table-wrapper::-webkit-scrollbar {
  height: 6px;
}
.table-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}
.table-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.chat-message table {
    min-width: 100%;
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14.5px;
  border: 1px solid #ccc;
}

.chat-message th,
.chat-message td {
  padding: 10px 12px;
  border: 1px solid #ccc;
  text-align: left;
    vertical-align: top;
    white-space: nowrap !important;
    word-break: break-word !important;
}

.chat-message thead {
  background-color: #f5f5f5;
  font-weight: bold;
}

.chat-message tbody tr:nth-child(even) {
  background: #ffffff52;
}

/* Dark Theme */
body.dark-theme .chat-message table {
  border-color: #444;
}
body.dark-theme .chat-message th,
body.dark-theme .chat-message td {
  color: #eee;
  border-color: #555;
}
body.dark-theme .chat-message thead {
  background-color: #2b2b2b;
}
body.dark-theme .chat-message tbody tr:nth-child(even) {
  background-color: #33333338;
}


/* Options Menu */
.message-options {
    display: flex; /* Always keep options in a row */
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    justify-content: flex-end; /* Align options from right to left */
    align-items: center;
    position: absolute;
    right: 0; /* Aligns menu from the right margin */
    bottom: -40px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    white-space: nowrap; /* Prevents wrapping */
    flex-wrap: nowrap; /* Keeps options in a row */
}

/* Options Menu - Buttons */
.message-options button {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    padding: 5px 8px;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

/* Show menu when hovering over message */
.chat-message:hover .message-options {
    opacity: 1;
    visibility: visible;
}

/* Ensure menu stays horizontal even for very short messages */
.chat-message.short .message-options {
    bottom: -35px;
    right: 0;
    display: flex;
    flex-wrap: nowrap;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .message-options {
        gap: 4px;
        padding: 4px 6px;
        bottom: -35px;
        font-size: 12px;
        flex-wrap: nowrap; /* Ensures buttons never wrap */
    }

    .message-options button {
        font-size: 12px;
        padding: 3px 5px;
    }
}

/* Dark Mode Styles */
body.dark-theme .message-options {
    background: #333;
}

body.dark-theme .message-options button {
    color: white;
}

/* Button Hover Effects */
.message-options button:hover {
    color: ;
    transform: scale(1.1);
}


/* Dark Mode Styles */
body.dark-theme .chat-message {
    color: #fff;
}

body.dark-theme .chat-message.user {
    background-color: #1e1e1ecc;
    color: #e0e0e0;
    border: 1px solid #59595926;
}

body.dark-theme .chat-message.bot {
    background-color: #1b2331cc;
    color: #f5f5f5;
    border: 1px solid #97979714;
}

body.dark-theme .message-options {
    background: #333;
}

body.dark-theme .message-options button {
    color: white;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .chat-message {
        max-width: 85%;
        font-size: 14px;
        padding: 12px 16px;
    }
    .chat-message::after {
        font-size: 11px;
        bottom: -16px;
    }
}
/* =================== CHAT SETTINGS PANEL =================== */
.chat-settings {
    position: absolute;
    top: 100%;
    right: 0%;
    width: 350px;
    max-height: 80vh; /* Prevents overflowing */
    padding: 0px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto; /* Scroll only inside settings */
    display: none; /* Initially hidden */
    z-index: 4000;
    transition: all 0.3s ease-in-out;
}

/* Dark Mode Support */
body.dark-theme .chat-settings {
    background: #1b1b1b;
    border-color: #444;
    color: white;
}

/* Scrollbar (Only inside settings panel) */
.chat-settings::-webkit-scrollbar {
    width: 8px;
}

.chat-settings::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-settings::-webkit-scrollbar-thumb:hover {
    background: #3498db;
}

/* Dark Mode Scrollbar */
body.dark-theme .chat-settings::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.settings-section h4 {
    margin-top: 0px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
    Display: Flex;
    align-items: Center;
    gap: 8px;
    padding: 4px !important;
}
body.dark-theme #change-wallpaper {
    color: #ddd;
    border-bottom: none;
}
/* Dark Mode Styling for Titles */
body.dark-theme .settings-section h4 {
    color: #ddd;
    border-bottom: none;
}
.settings-section {
	cursor: Pointer !important;
    border-radius: 12px;
	padding: 5px;
}

.settings-section:hover {
    background: #88888824;
}

/* Labels and Inputs */
.settings-section label {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 10px;
    gap: 10px;
    cursor: pointer;
}

/* Dark Mode Support for Labels */
body.dark-theme .settings-section label {
    color: #ddd;
}

/* Checkbox & Select Dropdown */
.settings-section input[type="checkbox"],
.settings-section select {
    margin-right: 8px;
    cursor: pointer;
}

/* Font Size Slider */
#font-size-slider {
    appearance: none;
    width: 100%;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    outline: none;
    margin: 10px 0;
    cursor: pointer;
}

#font-size-slider::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
}

#font-size-slider:focus::-webkit-slider-thumb {
    background: #0056b3;
}

/* Dark Mode Slider */
body.dark-theme #font-size-slider {
    background: #666;
}

body.dark-theme #font-size-slider::-webkit-slider-thumb {
    background: #1abc9c;
}

/* Font Size Value Display */
#font-size-value {
    font-weight: bold;
    margin-left: 10px;
    font-size: 14px;
}

/* Save Button */
button#save-settings {
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    font-size: 14px;
    transition: background 0.3s ease-in-out;
}

button#save-settings:hover {
    background: #0056b3;
}

/* Dark Mode Button */
body.dark-theme button#save-settings {
    background: #1abc9c;
}

body.dark-theme button#save-settings:hover {
    background: #16a085;
}

/* =================== RESPONSIVE ADJUSTMENTS =================== */
@media (max-width: 1024px) {
    .chat-settings {
        width: 350px;
        right: 5%;
        max-height: 85vh;
    }
}



/* 🌙 Dark Theme Sidebar */
body.dark-theme .sidebar-m {
    background: #111113;
    color: #f0f0f0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0px 0px 10px rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
/* Sidebar */
.sidebar-m {
    width: 5%; /* Optimized sidebar width */
    position: fixed; /* Fixed sidebar in place */
    top: 0;
    left: 0;
    height: 100vh; /* Full height for consistent design */
    padding: 15px 1px; /* Sufficient padding for content spacing */
    background: #e4e5e6; /* Minimalistic look */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Align items to the top */
    z-index: 10; /* Ensures sidebar is above content */
    overflow-y: auto; /* Enable vertical scrolling */
    align-items: center;
}



/* 🌞 Light Theme - Show Light Logo, Hide Dark */
.sidebar-m .light-logo {
    display: block;
}
.sidebar-m .dark-logo {
    display: none;
}

/* 🌙 Dark Theme - Show Dark Logo, Hide Light */
body.dark-theme .sidebar-m .light-logo {
    display: none;
}
body.dark-theme .sidebar-m .dark-logo {
    display: block;
}

/* 📌 Sidebar Logo Styling */
.sidebar-m .logo-img {
    width: auto;
    max-width: 100%;
	cursor: pointer;
    height: auto;
    margin: 0 auto 30px auto;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out; /* Smooth transition */
}

/* 🌙 Enhance Visibility on Dark Theme */
body.dark-theme .sidebar-m .dark-logo {
    filter: brightness(1) contrast(1.2);
}



/* Sidebar Links */
.sidebar-m ul {
    list-style: none; /* Remove default bullet points */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    width: 100%; /* Full width for flexibility */
}

.sidebar-m ul li {
    margin-bottom: 10px; /* Add spacing between items */
}

.sidebar-m ul li a {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center align content horizontally */
    align-items: center; /* Center align content vertically */
    width: 98%; /* Stretch links to full width */
    height: 50px; /* Consistent button height */
    text-decoration: none; /* Remove underline */
    cursor: pointer;
    font-size: 1.2rem; /* Adjust icon font size */
    color: ; /* Set text/icon color */
    border-radius: 10px; /* Rounded corners */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth hover effects */
    gap: 10px;
}

.sidebar-m ul li a:hover {
    background-color: none; /* Subtle hover effect */
    color: auto; /* Slightly darker on hover */
    transform: scale(1.00);
}

/* Sidebar Icons */
.sidebar-m ul li a svg {
    width: 24px;
    height: 24px;
    fill: ; /* Default icon color */
    transition: transform 0.2s ease, fill 0.3s ease;
}

/* Sidebar Text */
.sidebar-m ul li a span {
    display: none; /* Hide text on smaller screens */
}

/* Custom Scrollbar Styling */
.sidebar-m::-webkit-scrollbar {
    width: 1px; /* Improved width for usability */
}

.sidebar-m::-webkit-scrollbar-thumb {
    background-color: #888; /* Set scrollbar thumb color */
    border-radius: 10px; /* Rounded corners for the thumb */
}

.sidebar-m::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* Darker thumb color on hover */
}

.sidebar-m::-webkit-scrollbar-track {
    background-color: #f1f1f12b; /* Light background for the scrollbar track */
    border-radius: 10px; /* Rounded corners for the track */
}

/* Responsive Sidebar Adjustments */

/* ✅ Hide text and only show icons on medium screens (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .sidebar-m {
        width: 70px; /* Keep sidebar compact */
    }

    .sidebar-m ul li a span {
        display: none; /* Hide text */
    }

    .sidebar-m ul li a svg {
        display: inline; /* Show only icons */
    }
}

/* ✅ Fully expanded sidebar with text on larger screens (1025px and above) */
@media screen and (min-width: 1025px) {
    .sidebar-m {
        width: 70px; /* Restore full sidebar width */
    }

    .sidebar-m ul li a span {
        display: inline; /* Show text */
    }

    .sidebar-m ul li a svg {
        display: inline; /* Ensure icons are also shown */
    }
}

/* ✅ Adjustments for mobile screens (below 768px) */
@media screen and (max-width: 768px) {
    .sidebar-m {
        display: none; /* Hide sidebar completely */
    }
}

/* ✅ Adjustments for extra small screens (below 480px) */
@media screen and (max-width: 480px) {
    .sidebar-m {
        display: none; /* Hide sidebar completely */
    }
}

.bottom-nav {
	display: none;
}
/* Hide Sidebar & Show Bottom Navbar on Small Screens */
@media screen and (max-width: 768px) {
    .sidebar-m {
        display: none; /* Hide sidebar on small screens */
    }
.sidebar-m  ul li a svg {
        display: none; /* Hide sidebar on small screens */
    }
  /* 🔹 Fixed Bottom Navigation */
.bottom-nav {
    width: 100%;
    height: 50px;
    position: fixed;
    bottom: 0;
    left: 0;
    background: #f3f3f3;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #D0D0D0;
    z-index: 1500;
    box-shadow: none;
}

    .bottom-nav ul {
        list-style: none;
        display: flex;
        justify-content: space-evenly;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .bottom-nav ul li {
        margin-bottom: 0;
    }

    .bottom-nav ul li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        padding: 5px;
        color: #; /* Default text color */
        text-decoration: none;
        transition: transform 0.2s ease, opacity 0.3s ease, color 0.3s ease;
    }

    .bottom-nav ul li a svg {
        width: 26px;
        height: 26px;
        fill: #; /* Default black icon */
        transition: transform 0.2s ease, fill 0.3s ease;
    }

    .bottom-nav ul li a:hover {
        transform: none;
        opacity: 0.9;
        color: ; /* Change text color on hover */
    }

    .bottom-nav ul li a:hover svg {
        transform: none;
        fill: #; /* Change icon color to match the hover color */
    }

    .bottom-nav ul li a span {
        display: none; /* Hide text for bottom nav */
    }
}
/* 🌍 Universal Search Container Styles */
.search-container1 {
    width: 100%; /* Full width */
    text-align: center;
	padding: 0px 20px;
    position: relative; /* Required for absolute positioning */
    background: transparent;
    border-radius: 10px;
}

/* 🌍 Centered Search Container (Inside Header) */
.search-container2 {
    flex: 1; /* Allows flexible width */
    max-width: 500px; /* Prevents excessive stretching */
    display: flex;
    justify-content: center; /* Centers inside header */
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
/* 🌍 Search Container (Inside Header) */
.search-container2 {
    flex: 1; /* Allows flexible width */
    max-width: 500px; /* Prevents excessive stretching */
    position: relative;
    justify-content: center; /* Centers inside header */
    display: flex;
    align-items: center;
}

/* 🌟 Search Wrapper */
.search-wrapper1 {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers inside header */
    position: relative;
    width: 100%;
}

/* 🔍 Search Input */
.search-input1 {
    flex: 1;
    width: 100%;
    padding: 12px 50px 12px 15px;
    font-size: 18px;
    justify-content: center; /* Centers inside header */
    border: 2px solid #898989;
    border-radius: 6px;
    color: #7F7F7F;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 🎯 Input Focus Effect */
.search-input1:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}
/* 🔎 Search Icon */
.search-icon1 {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777777;
    font-weight: bold;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
}
/* Dark Mode Focus Effect */
body.dark-theme .search-icon1 {
	color: #b9b9b9;
}

/* 🎭 Hover & Active Effects */
.search-icon1:hover {
    transform: translateY(-50%) scale(1.2) rotate(10deg);
    filter: brightness(1.2);
}

.search-icon1:active {
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
    filter: brightness(1);
}

/* 🌙 Dark Mode */
@media (prefers-color-scheme: dark) {

    .search-input1:focus {
        border-color: #66b3ff;
        box-shadow: 0 0 5px rgba(102, 179, 255, 0.5);
    }

    .search-icon1 {
        color: #898989;
    }
}
/* =================== 🌍 BASE SIDEBAR =================== */
.Opportunities-list1 {
    position: fixed;
    left: 0;
    top: 0;
    width: 295px; /* Sidebar width */
    height: 100%; /* Full viewport height */
    margin-left: 70px;
    flex-direction: column;
    display: flex
;
    padding: 20px 0px 20px 5px;
    background: #e6e7e8; /* Light Mode Default */
    border-right: 1px solid #ddd; /* Separator */
    transition: all 0.3s ease;
}

/* 🌙 Dark Mode */
body.dark-theme .Opportunities-list1 {
    background: #111113;
    border-right: 1px solid #444;
}

/* =================== 🏆 SIDEBAR TITLE =================== */
.Opportunities-list1 h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

/* 🌙 Dark Mode Title */
body.dark-theme .Opportunities-list1 h3 {
    color: #f1f1f1;
}

/* =================== 🔥 FEATURE LIST =================== */
.feature-list1 {
    list-style: none;
    padding: 0;
    width: 100%;
    margin-top: 10%;
    height: 100%;
    overflow-y: auto;
}

/* 🖥️ Custom Scrollbar */
.feature-list1::-webkit-scrollbar {
    width: 5px;
}

.feature-list1::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.feature-list1::-webkit-scrollbar-thumb:hover {
    background-color: gray;
}

/* 🌙 Dark Mode Scrollbar */
body.dark-theme .feature-list1::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .feature-list1::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 🏆 Feature List Items */
.feature-list1 li {
    display: flex;
    align-items: center;
    width: 96%;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: #2c3e50;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out, color 0.3s ease;
}

/* 🌙 Dark Mode List Items */
body.dark-theme .feature-list1 li {
    color: #f1f1f1;
}

/* Hover Effects */
.feature-list1 li:hover {
    background-color: #f1f1f1;
    color: #3498db;
    transform: translateX(5px);
}

/* 🌙 Dark Mode Hover */
body.dark-theme .feature-list1 li:hover {
    background-color: #333;
    color: #00aaff;
}



/* =================== 📱 TABLETS (UP TO 1024px) =================== */
@media screen and (max-width: 1024px) {
    .Opportunities-list1 {
    }

    .feature-list1 {
    }
}

/* =================== 📱 MOBILE DEVICES (UP TO 768px) =================== */
@media screen and (max-width: 768px) {
    .Opportunities-list1 {
        width: 100%;
        height: calc(100vh - 70px);
        position: relative;
        margin-left: 0;
        border: none;
        padding: 12px 0px 0px;
        border-right: none !important;
        background: transparent;
        box-shadow: none;
    }

    .feature-list1 {
        margin-top: 10px;
        margin-bottom: 0px;
        padding-bottom: 100px;
        overflow-y: auto;
    }
}

/* =================== 📲 SMALL PHONES (UP TO 480px) =================== */
@media screen and (max-width: 480px) {
    .Opportunities-list1 {
        padding: 10px;
        width: 100%;
    }

    .feature-list1 li {
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* =================== 📲 ULTRA SMALL PHONES (UP TO 360px) =================== */
@media screen and (max-width: 360px) {
    .Opportunities-list1 {
        padding: 8px;
    }

    .feature-list1 li {
        font-size: 0.85rem;
        padding: 8px;
    }
}

/* Hide Scrollbar for a Cleaner Look */
.feature-list1::-webkit-scrollbar {
    width: 3px;
}

.feature-list1::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.feature-list1::-webkit-scrollbar-thumb:hover {
    background-color: gray;
}

/* 🌙 Dark Mode Scrollbar */
body.dark-theme .feature-list1::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .feature-list1::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* =================== 📌 FEATURE LIST =================== */
.opportunity-details {
    list-style: none; /* Remove default list styles */
    padding: 0;
    padding-top: 5px;
    width: 100%;
    margin-top: 5%; /* Reduced margin for better spacing */
    z-index: 100; /* Ensures it appears above other elements */
    overflow-y: auto; /* Scroll for long content */
    background: #e6e7e8; /* Light mode default */
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* 🌙 Dark Mode */
body.dark-theme .opportunity-details {
    background: #1e1e1e;
}

/* 🖥️ Custom Scrollbar */
.opportunity-details::-webkit-scrollbar {
    width: 3px; /* Thin scrollbar */
}

.opportunity-details::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.opportunity-details::-webkit-scrollbar-thumb:hover {
    background-color: gray;
}

/* 🌙 Dark Mode Scrollbar */
body.dark-theme .opportunity-details::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .opportunity-details::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* 🏆 Feature List Items */
.opportunity-details li {
    display: flex;
    align-items: center;
    width: 95%;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    font-size: 1rem;
    color: #34495e;
    transition: background-color 0.3s ease, transform 0.2s ease-in-out, color 0.3s ease;
}

/* 🌙 Dark Mode List Items */
body.dark-theme .opportunity-details li {
    color: #f1f1f1;
}

/* Hover Effects */
.opportunity-details li:hover {
    background-color: #f1f1f1;
    color: #3498db;
    transform: translateX(5px);
}

/* 🌙 Dark Mode Hover */
body.dark-theme .opportunity-details li:hover {
    background-color: #333;
    color: #00aaff;
}

/* =================== 🔍 SEARCH CONTAINER =================== */
.search-container3 {
    background: transparent;
    text-align: center;
    margin: 0 auto; /* Center align */
    border-radius: 10px;
    position: unset;
    transition: all 0.3s ease-in-out;
}

/* 🌙 Dark Mode */
body.dark-theme .search-container3 {
    background: #222;
}

/* =================== 🖥️ DESKTOPS (LARGE SCREENS) =================== */
@media screen and (min-width: 1200px) {
    .search-container3 {
        width: 40%;
    }
}

/* =================== 📱 TABLETS (UP TO 1024px) =================== */
@media screen and (max-width: 1024px) {
    .opportunity-details {
    }

    .search-container3 {
    }
}

/* =================== 📱 MOBILE DEVICES (UP TO 768px) =================== */
@media screen and (max-width: 768px) {
    .opportunity-details {
        height: auto;
        border-radius: 20px 20px 0px 0px;
        padding-top: 5px;
        padding-bottom: 100px;
        background: transparent;
        max-height: -webkit-fill-available;
    }

    .search-container3 {
        width: 80%;
    }
}

/* =================== 📲 SMALL PHONES (UP TO 480px) =================== */
@media screen and (max-width: 480px) {
    .opportunity-details {
        height: auto;
    }

    .search-container3 {
        width: ;
    }

    .opportunity-details li {
        width: 95%;
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* =================== 📲 ULTRA SMALL PHONES (UP TO 360px) =================== */
@media screen and (max-width: 360px) {
    .search-container3 {
        width: 95%;
    }

    .opportunity-details li {
        font-size: 0.85rem;
        padding: 8px;
    }
}



/* Wrapper for the Input and Icon */
.search-wrapper2 {
    display: flex; /* Arrange input and icon horizontally */
    align-items: ;
    position: relative; /* Required for the icon to be positioned relative to this wrapper */
}

/* Input Field Styling */
.search-input2 {
    flex: 1; /* Input takes up remaining space */
    padding: 12px 50px 12px 15px; /* Adjust padding for the icon space */
    font-size: 18px; /* Increase font size */
    border: 2px solid #ddd; /* Gray border for the input */
    border-radius: 6px; /* Rounded edges */
    outline: none; /* Remove default outline */
	color: #383838;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for focus effect */
    width: 100%; /* Ensure the input takes up full width */
    background: transparent; /* Transparent background */
}

/* 🌙 Dark Mode */
body.dark-theme .search-input2 {
    color: #d8d8d8;
}


/* Input Focus Effect */
.search-input2:focus {
    border-color: #3498db; /* Blue border on focus */
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5); /* Subtle glow */
}
/* Search Icon Styling */
.search-icon2 {
    position: absolute; /* Position the icon relative to the wrapper */
    right: 10px; /* Adjust distance from the right edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Correct vertical alignment */
    width: 48px; /* Increased width */
    height: 48px; /* Adjusted height for better proportion */
    cursor: pointer; /* Pointer cursor on hover */
    display: flex; /* Ensure the icon is centered */
    justify-content: center;
    align-items: center;
    color: black; /* Icon color set to black */
    font-weight: bold; /* Ensure text inside SVG is bold if it's a text-based icon */
    border-radius: 50%; /* Circle shape for a polished look */
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, background-color 0.3s ease; /* Smooth transitions */
}

/* Hover Effects */
.search-icon2:hover {
    transform: translateY(-50%) scale(1.2) rotate(10deg); /* Enlarges and rotates on hover */
    filter: brightness(1.2); /* Slightly increases brightness */
}

/* Active State (Click Effect) */
.search-icon2:active {
    transform: translateY(-50%) scale(1.1) rotate(-5deg); /* Subtle press-down effect */
    filter: brightness(5.1); /* Reduces brightness slightly */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-icon2 {
        width: 36px; /* Slightly smaller on smaller screens */
        height: 36px;
    }
}
/* =================== 📊 GRAPHS SECTION =================== */
.interactive-graphs {
    margin: 0 auto 40px; /* Center the section */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    max-width: 60%; /* Ensure responsiveness */
    text-align: center; /* Center align content */
}

/* =================== 📌 SECTION HEADING =================== */
.interactive-graphs h3 {
    font-size: 1.8rem; /* Prominent heading */
    color: ; /* Dark text for visibility */
    margin-bottom: 20px;
    font-weight: bold; /* Emphasize section title */
}

/* =================== 📈 GRAPH CONTAINER =================== */
.graph-container {
    width: 100%;
    max-width: 910px; /* Restrict max-width for large screens */
    min-height: 380px; /* Ensure sufficient height */
    background: #f9f9f9; /* Light background */
    padding: 15px; /* Adjust padding */
    box-sizing: border-box;
    display: flex;
    justify-content: center; /* Center the graph */
    align-items: center; /* Center vertically */
    margin: 0 auto; /* Center the container */
    border: 1px solid #ddd; /* Subtle border */
    border-radius: 10px; /* Smooth edges */
}

/* =================== 📉 GRAPH CANVAS =================== */
#performanceGraph {
    width: 100%; /* Make the graph fill the container */
    height: auto; /* Maintain aspect ratio */
}

/* =================== 📱 RESPONSIVE DESIGN =================== */
/* 💻 Tablets (Up to 1024px) */
@media (max-width: 1024px) {
    .interactive-graphs {
        max-width: 75%; /* Increase width for tablets */
    }

    .interactive-graphs h3 {
        font-size: 1.6rem; /* Adjust heading size */
    }

    .graph-container {
        min-height: 360px; /* Adjust height */
        padding: 12px;
    }
}

/* 📱 Mobile Devices (Up to 768px) */
@media (max-width: 768px) {
    .interactive-graphs {
        max-width: 90%; /* Full width */
        padding: 15px;
    }

    .interactive-graphs h3 {
        font-size: 1.4rem; /* Adjust heading size */
    }

    .graph-container {
        min-height: 320px; /* Reduce height */
        padding: 10px;
    }
}

/* 📲 Small Phones (Up to 480px) */
@media (max-width: 480px) {
    .interactive-graphs {
        max-width: 95%; /* Maximize width */
        padding: 12px;
    }

    .interactive-graphs h3 {
        font-size: 1.2rem; /* Smaller heading */
    }

    .graph-container {
        min-height: 280px; /* Reduce height */
        padding: 8px;
    }
}

/* 📲 Ultra Small Phones (Up to 360px) */
@media (max-width: 360px) {
    .interactive-graphs {
        padding: 10px;
    }

    .interactive-graphs h3 {
        font-size: 1rem; /* Adjust heading */
    }

    .graph-container {
        min-height: 250px; /* Adjust for ultra small screens */
        padding: 6px;
    }
}


.hidden {
    display: none;
}
/* Styles for sent messages */
.sent-message {
    width: 300px; /* Slightly wider for better readability */
    height: auto;
    max-height: 350px; /* Restricts excessive height */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns text properly */
    border: 1px solid #ccc;
    border-radius: 10px;
    background: linear-gradient(to right, #f8f9fa, #e9ecef); /* Subtle gradient */
    margin: 10px 0 10px auto;
    padding: 1px; /* Slightly increased padding for comfort */
    text-align: right;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow effect */
    font-size: 14px; /* Optimal text size */
    line-height: 1.5; /* Improves readability */
    transition: all 0.3s ease-in-out; /* Smooth transitions */
}

/* Button for clearing files */
button#clear-files {
    background: red;
    color: white;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease; /* Smooth transition effect */
}

button#clear-files:hover {
    background: darkred; /* Slightly darker shade on hover */
}

/* 🎯 Personalized Recommendations Section */
.personalized-recommendations {
    text-align: center;
    margin-top: 50px;
    background: #d7d7d7;
    padding: 40px 5%;
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 🌞 Light Theme - Sidebar Header */
.personalized-recommendations {
    background: #d7d7d7;
}

/* 🌙 Dark Theme - Sidebar Header */
body.dark-theme .personalized-recommendations {
       background: #272727;
}

/* 🌞 Light Theme - recommendation-card-home */
.recommendation-card-home {
    background: #b6b6b6;
}

/* 🌙 Dark Theme - recommendation-card-home  */
body.dark-theme .recommendation-card-home {
    background: #4c4c4c;
		color: #cbcbcb;
}


/* ✨ Section Title */
.personalized-recommendations h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* 🔥 Description */
.recommendation-description {
    font-size: 1rem;
    margin-bottom: 25px;
}

/* 📌 Horizontal Scrollable Carousel */
.recommendation-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 15px;
    gap: 15px;
    scrollbar-width: none;
}

/* Hide scrollbar for Webkit browsers */
.recommendation-carousel::-webkit-scrollbar {
    display: none;
}

/* 📌 Recommendation Track */
.recommendation-track {
    display: flex;
    gap: 15px;
}

/* 📌 Individual Recommendation Card */
.recommendation-card-home {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    min-width: 240px;
    background: #b8b8b8;
    scroll-snap-align: start;
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
}

/* 3D Hover Effect */
.recommendation-card-home:hover {
    transform: scale(1.07) rotateX(6deg);
    box-shadow: var(--card-hover-shadow);
}

/* 📌 Card Image */
.recommendation-card-home img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 📌 Card Content */
.card-content {
    padding: 15px;
    text-align: center;
}

.card-content h3 {
    font-size: 1.3rem;
    margin: 10px 0;
    font-weight: bold;
}

/* 📌 Interactive Read More Button */
.read-more {
    padding: 10px 18px;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.read-more:hover {
    background: var(--btn-hover);
    transform: scale(1.05);
}
/* 📌 Load More Button */
.load-more {
    margin-top: 40px;
    padding: 14px 18px;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
	width:160px;
    align-items: center;
    justify-content: center; /* Center horizontally */
    gap: 4px;
    font-size: 1.1rem;
    font-weight: bold;
	margin: auto;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
}

.load-more:hover {
    background: var(--btn-hover);
    transform: scale(1.05);
}
/* 🎨 Light & Dark Mode Variables */
:root {
    --bg-color: #f9f9f9;
    --text-color: #222;
    --desc-color: #666;
    --card-bg: #fff;
    --card-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
    --btn-gradient: linear-gradient(135deg, #ff416c, #ff4b2b);
    --btn-hover: linear-gradient(135deg, #ff4b2b, #ff416c);
}

/* 🌙 Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #fff;
        --desc-color: #bbb;
        --card-bg: #1e1e1e;
        --card-shadow: 0px 6px 18px rgba(255, 255, 255, 0.1);
        --card-hover-shadow: 0px 10px 22px rgba(255, 255, 255, 0.15);
        --btn-gradient: linear-gradient(135deg, #ff416c, #ff4b2b);
        --btn-hover: linear-gradient(135deg, #ff4b2b, #ff416c);
    }
}


/* 📌 Responsive Grid for Small Screens */
@media (max-width: 1024px) {
    .recommendation-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .personalized-recommendations {
        margin-bottom: 50px;
    }
}

@media (max-width: 768px) {
    .recommendation-carousel {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }
    .personalized-recommendations {
        margin-bottom: 50px;
        padding: 30px 5%;
		margin-top: 0px;
    }
.highlights-carousel {
		margin-top: 0px;
        margin-bottom: 50px;
}
    .recommendation-card {
        min-width: 160px;
    }
    .card-content h3 {
        font-size: 1.1rem;
    }
    .card-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .recommendation-carousel {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    .personalized-recommendations {
        margin-bottom: 40px;
        padding: 25px 4%;
    }
    .recommendation-card {
        min-width: 140px;
    }
    .card-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .recommendation-carousel {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
    }
    .personalized-recommendations {
        margin-bottom: 30px;
        padding: 20px 3%;
    }
    .recommendation-card {
        min-width: 130px;
    }
    .card-content h3 {
        font-size: 0.9rem;
    }
}


/* 🌟 Highlights Carousel */
.highlights-carousel {
    text-align: center;
    margin-top: 50px;
    padding: 40px 5%;
    background: #dce3f4;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 🌞 Light Theme - Sidebar Header */
.highlights-carousel {
    background: #dce3f4;
}

/* 🌙 Dark Theme - Sidebar Header */
body.dark-theme .highlights-carousel {
       background: #272727;
}

/* 🎯 Section Title */
.highlights-carousel h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* 📌 Description */
.carousel-description {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
}

/* 🔄 Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

/* 📌 Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* 🎥 Individual Slide */
.carousel-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* 🖼️ Slide Image */
.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* 📝 Slide Text */
.slide-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    width: 80%;
}

.slide-text h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.slide-text p {
    font-size: 1rem;
}

/* ⏩ Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
}

.carousel-btn:hover {
    background: rgb(93 93 93 / 80%);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 🌙 Dark Mode */
@media (prefers-color-scheme: dark) {
    .slide-text {
        background: rgb(97 92 92 / 66%);
    }
    .carousel-btn {
        background: rgba(255, 255, 255, 0.3);
    }
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    .carousel-slide img {
        height: auto;
    }
.highlights-carousel {
	margin-bottom: 60px;
		margin-top: 0px;
}
.explore-categories {
		margin-top: 0px;
}
    .carousel-btn {
        font-size: 1.2rem;
        padding: 12px 12px;
    }

    .slide-text {
        width: 90%;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .carousel-slide img {
        height: auto;
    }
.highlights-carousel {
	margin-bottom: 60px;
}
    .slide-text {
        width: 95%;
        font-size: 0.85rem;
    }

    .carousel-btn {
        font-size: 1rem;
        padding: 9px 9px;
    }
}


/* 🌟 Explore Categories Section */
.explore-categories {
    padding: 40px 5%;
    background: #dadada;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

/* 🌞 Light Theme - Sidebar Header */
.explore-categories {
    background: #dadada;
}

/* 🌙 Dark Theme - Sidebar Header */
body.dark-theme .explore-categories {
       background: #272727;
}

/* 🔥 Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
}

/* 🌟 Title */
.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ➕ Show More Button */
.show-more {
    font-size: 1rem;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.show-more:hover {
    color: #0056b3;
}

/* 📌 Categories Container */
.categories-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    scrollbar-width: none;
}

/* Hide scrollbar for Webkit browsers */
.categories-container::-webkit-scrollbar {
    display: none;
}

/* 📌 Individual Category Card */
.category-card {
    background: #959595;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 220px;
    scroll-snap-align: start;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
}

body.dark-theme .category-card {
    background: #494949;
}

/* Hover Effect */
.category-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}

/* 📌 Card Image */
.category-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
}

/* 📌 Category Info */
.category-info {
    padding: 15px;
    text-align: center;
}

.category-info h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.category-info p {
    font-size: 1rem;
    color: #dddddd;
}

body.dark-theme .category-info p {
    color: #c8c7c7;
}


/* ⏳ Fallback Loading Animation */
@keyframes loading-placeholder {
    0% { background: #ddd; }
    50% { background: #ccc; }
    100% { background: #ddd; }
}

.category-img.loading {
    animation: loading-placeholder 1.5s infinite;
}

/* 🌙 Dark Mode */
body.dark-theme 
    .explore-categories {
        background: #222;
    }

    .category-card {
        box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.1);
    }

    .category-info h3 {
        color: #fff;
    }


/* 📱 Tablet & Medium Screens (768px and below) */
@media (max-width: 768px) {
    .categories-container {
    }

    .category-card {
    }

    .category-info h3 {
        font-size: 1.1rem;
    }

}


/* 📱 Responsive Adjustments */
@media (max-width: 768px) {
    .search-suggestions-home {
        max-height: unset;
        border-radius: 0px;
    }

    .suggestion-item-home {
        font-size: 15px;
        padding: 10px 12px;
    }
}

/* 📌 Small Tablets & Mobile (Up to 768px) */
@media (min-width: 769px) {
	.search-suggestions-home {
        max-height: 280px;
	}
	.explore-categories {
    margin-top: 50px;
}
}
	
	
@media (max-width: 480px) {

    .suggestion-item-home {
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* 🌟 Smooth Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



.sidebar-more-btn {
    position: sticky;
    bottom: 0px;
  left: 16px;
  width: calc(240px - 32px); /* match sidebar width minus padding */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #9ab4ff; /* Light theme background */
  color: #111827cc; /* Light theme text color */
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 14px;
  z-index: 1000;
}

.sidebar-more-btn:hover {
  background-color: #b2c6ff;
}

/* Dark Theme Styles */
body.dark-theme .sidebar-more-btn {
  background: #1f2937;
  color: #ffffffcc;
}

body.dark-theme .sidebar-more-btn:hover {
  background-color: #374151;
}

.sidebar-more-btn .icon {
    font-size: medium;
    display: flex;
    gap: 10px;
    align-items: center;
}
@media screen and (max-width: 1024px) {
    .sidebar-more-txt {
        display: none;
    }
.sidebar-more-btn {
    left: 10px;
    width: unset;
}
	
}
.gamtha-more-wrapper {
  position: relative;
  width: 100%;
}

.gamtha-more-dropdown {
  position: fixed;
  bottom: 20px;
  left: 20px;
    width: 300px;
    max-width: 90vw;
    max-height: max-Content;
    height: 540px;
  overflow-y: auto;   /* ✅ Enable vertical scrolling */
  background: #f2f2f2;
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 12px;
  z-index: 1001;

  /* Smooth entrance/exit */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;

  /* ✅ Hide scrollbar (works in most modern browsers) */
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE/Edge */
}
.gamtha-more-dropdown::-webkit-scrollbar {
  display: none;                 /* Chrome, Safari */
}

/* Dark Theme Support */
body.dark-theme .gamtha-more-dropdown {
  background-color: #1f2937; /* Tailwind Gray-800 */
  color: #ffffffcc;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Dropdown List */
.gamtha-more-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gamtha-more-dropdown ul li {
  padding: 11px 16pxs;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  font-size: 15px;
    margin: 0px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Link Styling */
.gamtha-more-dropdown ul li a {
  color: inherit;
  text-decoration: none;
  width: 100%;
    justify-content: flex-start;
  display: flex;
}

/* Hover Effect - Light */
.gamtha-more-dropdown ul li:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Hover Effect - Dark */
body.dark-theme .gamtha-more-dropdown ul li:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Active Show State */
.gamtha-more-dropdown.show-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 480px) {
  .gamtha-more-dropdown {
    bottom: 60px;
    left: 20px;
  }
}
