:root {
    --primary-color: #0f172a;
    --secondary-color: #333333;
    --side-color: #ffffff;
    --accent-color: #1d4ed8;
    --light-gray: #f3f4f6;
    --dark-navy: #0f172a; 
    --dark-color:#0f172a; 
    --light-color:#ffffff;
    --font-primary: "Inter", sans-serif;
    --font-secondary: "DM Sans", sans-serif;
    --logo-green: #00ff9d;  /* Add this for the bright green color */
    --z-sidebar: 1000;
    --z-navbar: 1001;
    --z-footer: 999;
}

/* :target {
    scroll-margin-top: 70px;
} */

.gm-slider-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.gm-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #ff4b4b, #ffeb3b, #4caf50); /* Red to yellow to green */
    outline: none;
    opacity: 0.9;
    transition: opacity .15s ease-in-out;
    border-radius: 6px;
    pointer-events: none !important; /* Prevent interaction */
}

.gm-slider:hover {
    opacity: 1;
}

.gm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    pointer-events: none !important; /* Prevent interaction */
}

.gm-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    pointer-events: none !important; /* Prevent interaction */
}

.gm-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

.gm-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
}

.current-gm {
    font-size: 18px;
    margin-top: 10px;
}


.current-gm.red {
    color: #F44336; /* Red */
}

.slider-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #4caf50, #ffeb3b, #ff4b4b); /* Green to yellow to red */
    outline: none;
    opacity: 0.9;
    transition: opacity .15s ease-in-out;
    border-radius: 6px;
    pointer-events: none !important; /* Prevent interaction */
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    pointer-events: none !important; /* Prevent interaction */}

.slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    pointer-events: none !important; /* Prevent interaction */
}

.typing-animation {
    display: inline-flex;
}
.typing-animation span {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    margin: 0 2px;
    animation: bounce 1.4s infinite ease-in-out both;
}
.typing-animation span:nth-child(1) { animation-delay: -0.32s; }
.typing-animation span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.pe-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

.pe-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
}

.current-pe {
    font-size: 18px;
    margin-top: 10px;
}

.current-pe.green {
    color: #15803d; /* Green */
}

.current-pe.red {
    color: #F44336; /* Red */
}

.median-pe {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    text-align: center;
    color: #333;
}

/* FCF Slider Styles - Add these to your existing CSS file */

.fcf-slider-container {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

.fcf-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #ff4b4b, #ffeb3b, #4caf50); /* Red to yellow to green */
    outline: none;
    opacity: 0.9;
    transition: opacity .15s ease-in-out;
    border-radius: 6px;
    pointer-events: none !important; /* Prevent interaction */
}

.fcf-slider:hover {
    opacity: 1;
}

.fcf-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    pointer-events: none !important; /* Prevent interaction */
}

.fcf-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    pointer-events: none !important; /* Prevent interaction */
}

.fcf-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

.fcf-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
}

.current-fcf {
    font-size: 18px;
    margin-top: 10px;
}

.current-fcf.green {
    color: #15803d!important;
}

.current-fcf.red {
    color: #F44336; /* Red */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Decreased from 60px */
    height: 28px; /* Decreased from 34px */
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 28px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px; /* Decreased from 26px */
    width: 20px; /* Decreased from 26px */
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .toggle-slider {
    background-color: #2196F3;
}
input:checked + .toggle-slider:before {
    transform: translateX(22px); /* Adjusted from 26px to match new size */
}
.toggle-label {
    margin-right: 10px;
    font-size: 14px;
    color: #4a5568;
}
.toggle-slider, .toggle-slider:before {
    transition: all 0.4s ease;
}
.toggle-button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.toggle-button:hover {
    background-color: #45a049;
}
.chart-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.chart-toggle-label {
    margin-right: 10px;
    font-size: 14px;
    color: #4a5568;
}
/* .side-panel ul li {
    margin: 20px 0; /* Increased from 15px to 20px 
}
.side-panel ul li a {
    position: relative; /* Ensures that the icon's position is relative to the link 
    padding-left: 30px; /* Adjust this value based on the size of your icons 
}
.side-panel ul li a i {
    color: var(--logo-green);
    position: absolute;
    left: 0; /* Aligns the icon to the left edge of the link 
    top: 0; /* Aligns the icon to the top, adjust as needed 
    margin-right: 10px; /* Remove any margin if previously set 
} */
.bg-blue {
    background-color: var(--dark-navy); /* Same as the sidebar background */
    color: var(--side-color)  !important; /* Optional: Adjust text color for readability */
    border: 2px solid #b5b0d9 !important; /* Add a white border */
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Optional: Subtle shadow */
}

.bg-white {
    background-color: var(--dark-navy); /* Same as the sidebar background */
    color: var(--side-color); /* Optional: Adjust text color for readability */
    border: 2px solid #ffffff !important; /* Add a white border */
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Optional: Subtle shadow */
}
.p-4 {
    border: 1px solid #d3d3d3; 
}
body {
    font-family: var(--font-primary);
    background-color: var(--dark-navy);  /* Base dark navy color */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px; /* Size of each grid cell */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    scroll-behavior: smooth;
    /* scroll-padding-top: 80px; */
    color: #ffffff;
}

.header {
    top: 0;
    /* position: relative; */
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0;
    margin: 0;

}
.hidden {
    display: none;
}
.container {
    padding-top: 60px;
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}
.chart-container {
    position: relative;
    /* top: 0; */
    height: 40vh;
    width: 100vw;
    margin: 20px 0;
}
.infographic-container {
    margin: 20px 0;
}
.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 15px 40px 12px 40px; /* Adjusted padding to make space for the icon */
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: var(--font-secondary);
    transition: border-color 0.3s;
}

.input-container input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.input-container .icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--secondary-color);
}
button {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    border-radius: 4px; /* Slightly sharper edges */
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color;
    display: flex;
    align-items: center;
    justify-content: center;
}
button:hover {
    background-color: darken(var(--accent-color), 10%);
}
button .icon {
    margin-right: 8px;
    font-size: 18px;
}

#results {
    position: relative;
    margin-top: 1.5rem;
    /* top: 20px; */
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 0;
    margin: 30px;
}

/* #header {
    position: relative;
    z-index: 1;
} */

/* .side-panel {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100% - 60px);
    width: 250px;
    background-color: var(--dark-navy); /* Changed from #fff to dark navy 
    background-size: 20px 20px; /* Match the main background grid size 
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Add subtle white border 
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05); /* Add inner glow 
    z-index: var(--z-sidebar);
    transition: transform 0.3s ease;
    padding: 20px;
    overflow-y: auto;
    padding-bottom: 80px; /* Add padding to prevent overlap with footer 
} */

/* Add a subtle background to the side panel to make it stand out */
/* .side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle white overlay 
    pointer-events: none; /* Ensures clicks pass through to the links 
}


.side-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-panel ul li {
    margin: 15px 0; /* Decreased from 20px to 15px 
}
.side-panel ul li a {
    position: relative; /* Keep links above the overlay 
    text-decoration: none;
    color: var(--side-color);
    font-size: 14px; /* Decreased from 18px to 14px 
    font-family: var(--font-secondary);
    transition: color 0.3s;
    white-space: nowrap; /* Prevent text from wrapping 
    overflow: hidden; /* Hide any overflow 
    text-overflow: ellipsis; /* Add ellipsis for overflowing text 
} */


/* Remove additional spacing from the dashboard section */
#dashboard {
    margin-top: 0 !important;
    background-color: var(--dark-navy) !important; /* Match sidebar background */
    color: var(--side-color) !important; /* Adjust text color for readability */
    border: 2px solid #ffffff !important; /* Add white border */
    border-radius: 8px; /* Optional */
    /* position: relative; */
}

#dashboard h1 {
    color: var(--side-color) !important; /* Ensure the heading is readable */
}

#dashboard input,
#dashboard button {
    background-color: var(--side-color) !important; /* Adjust inputs/buttons for contrast */
    color: var(--dark-navy) !important; /* Ensure text inside inputs/buttons is visible */
}

/* 
.side-panel ul li a:hover {
    color: var(--logo-green); /* Changed from var(--accent-color) to match the brand green 
} */

.content {
    margin-left: 110px;
    padding: 80px 20px 100px;
    width: calc(100% - 200px);
    min-height: calc(100vh - 60px); /* Account for top-bar height */
    margin-bottom: 60px; /* Add margin to prevent footer overlap */
}
/* Override any conflicting color settings */
/* .content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    color: #ffffff !important;
} */

/* Modify the decorative line under headings */
h1::after, h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--logo-green); /* Use the brand green color */
    margin-top: 8px;
    transition: width 0.3s ease-in-out;
}

/* Update hover effect for the line only */
h1:hover::after, h2:hover::after {
    width: 100px;
}
.bg-gray-50{
    background-color: #adadb2 !important; /* Set a light gray shade */
    color: var(--dark-navy) !important; /* Ensure text contrast */
    border: 1px solid #d1d5db; /* Optional: Add a subtle border for definition */
    border-radius: 8px; /* Keep the rounded corners */
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

/* Special override for headings inside light backgrounds */
.bg-white h1,
.bg-white h2,
.bg-white h3,
.bg-gray-50 h1,
.bg-gray-50 h2 {
    color: var(--side-color) !important;
}


.bg-gray-50 p {
    color: var(--dark-color) !important; /* Darker text for better readability */
}

.content.container {
    margin-top: 0 !important;  /* Remove top margin */
    padding-top: 0;  /* Remove top padding */
}

.company-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background-color: #f3f4f6;
}
/* Loading Spinner */
.spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    z-index: 1001;
}
.spinner.active {
    display: block;
}
.ai-formatted-content {
    font-family: var(--font-secondary);
    line-height: 1.6;
    margin-top: 1em;
}
.ai-formatted-content h1, .ai-formatted-content h2, .ai-formatted-content h3 {
    margin-top: 1em;
}
.ai-formatted-content p {
    margin-bottom: 1em;
}
.ai-formatted-content ul, .ai-formatted-content ol {
    margin: 1em 0;
    padding-left: 1.5em;
}
/* Heading Styles */

/* Reset heading colors and visibility */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important; /* Force white text for all headings */
    padding: 0;
    margin: 1em 0 0.5em 0;
    visibility: visible !important;
}

h1::after, h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color); /* Line Separator */
    margin-top: 10px;
    transition: width 0.3s ease-in-out;
}

h1:hover::after, h2:hover::after {
    width: 100px; /* Animated Line Extension on Hover */
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-navy);
    z-index: var(--z-navbar);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 60px;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Add a border to separate the top bar from the content */
}

.navbar {
    background-color: var(--dark-navy) !important;  /* Override Bootstrap's bg-light */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-navbar .navbar-brand {
    margin-left: 1rem;
}

/* .navbar-spacer {
    height: 10px;
} */

.navbar-light .nav-link {
    color: #ffffff !important;  /* Make nav links white */
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

/* .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    color: #ffffff !important; /* Make nav links white 
    margin-left: auto; /* Ensures the login and language preference is aligned to the right 
} */


.navbar-nav-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* .navbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
} */

.language-form {
    margin-left: auto;
    padding: 0;
}

.btn-login, .btn-link {
    font-size: 14px;
    padding: 5px 10px;
    white-space: nowrap;
}

.form-select {
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
}

/* Add this with other navbar styles */
.navbar-toggler {
    display: none;  /* Hidden by default on desktop */
    border: none;
    background: transparent;
    color: var(--logo-green);
    padding: 10px;
    transition: color 0.3s ease;
}

.navbar-toggler:hover {
    color: var(--logo-green);
}

@media (max-width: 768px) {
    .top-bar {
        position: fixed;
        padding: 5px 10px;
        height: 50px;
    }

    .navbar-brand img {
        height: 30px;
    }

    .navbar-nav-container {
        gap: 0.5rem;
    }

    .btn-login, .btn-link, .form-select {
        font-size: 12px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        position: fixed;
        padding: 5px;
        height: 45px;
    }

    .navbar-brand img {
        font-size: 25px;
    }

    .navbar-nav-container {
        gap: 0.3 rem;
        flex-wrap: nowrap;
    }

    .btn-login, .btn-link, .form-select {
        font-size: 10px;
        padding: 2px 6px;
    }

    .language-form {
        margin-left: auto;
    }

    .navbar-brand {
        margin-left: 2rem;
    }
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.language-form {
    margin-left: 0.5rem;
}

.form-select {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.form-select option {
    background-color: var(--dark-navy);
    color: #ffffff;
}

.response {
    padding: 10px;
    background-color: #e8dede;
    color: var(--dark-color) !important;
    border-radius: 8px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}


.response p {
    color: var(--dark-navy) !important;
    line-height: 1.6;
    margin-bottom: 12px;
}

.response strong {
    color: var(--dark-navy) !important;
    font-weight: bold;
}

.response h1,
.response h2,
.response h3 {
    color: var(--dark-navy) !important;
    font-weight: bold;
}


.response ul {
    color: var(--dark-navy) !important;
    line-height: 1.6;
    list-style-type: disc;
    margin-left: 20px;
}


.response li {
    margin-bottom: 6px;
    color: var(--dark-navy) !important;
    line-height: 1.6;
}

#chatMessages div  p {
    color: var(--dark-navy) !important;
    line-height: 1.6;
    margin-bottom: 12px;
}

.common-width {
    width: 125%; /* Set your desired width */
    max-width: 2200px; /* Optionally, set a maximum width */
    margin: 0 auto 20px auto; /* Center the container */
    padding-bottom: 20px; /* Add some space at the bottom */
}

.btn-login {
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    color: var(--logo-green) !important;
    border-color: var(--logo-green);
    background: rgba(0, 255, 157, 0.1);
}

.btn-login i {
    color: var(--logo-green);
}

.btn-login:hover i {
    color: var(--logo-green);
}

.btn-get-started {
    background-color: #00ff9d;
    color: var(--dark-navy);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
}

/* For the signup form specifically */
.row.justify-content-center.mt-5 {
    margin-bottom: 100px; /* Add extra margin at the bottom of the form */
    padding-bottom: 20px;
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #4a5568;
}

.or-divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
    background-color: #0f172a; /* Dark background color matching your theme */
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a !important;
    padding: 10px 12px; 
    z-index: var(--z-footer);
    border-top: 1px solid #334155;
    transition: all 0.3s ease;
}

.footer-toggle-container {
    display: flex;
    justify-content: flex-start;
    padding-left: 12px;
    padding-top: 6px;
}

.footer-toggle {
    font-size: 12px;
    padding: 2px 6px;
    border: 1px solid rgba(0, 255, 157, 0.2);
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent;
    border-radius: 4px;
    cursor: pointer;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    /* width: 100%; */
    padding: 4px 8px;
}

.footer-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent;
    border: 1px solid rgba(0, 255, 157, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
}

.footer-toggle-icon {
    display: flex;
    align-items: center;
    padding: 4px;
}

.footer-toggle-icon span {
    transition: transform 0.3s ease;
}

.footer-content {
    display: block;
}

.footer-links {
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    overflow-x: auto;
}

.footer-links a, .footer-links span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-decoration: none;
}

.footer-container .footer-content > div {
    flex-wrap: wrap;
    row-gap: 6px;
}

.footer-links a:hover {
    color: #00ff9d !important;
}

.footer-container .feedback-link {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    white-space: nowrap;
}

.footer-disclaimer {
    font-size: 10px;
    line-height: 1.4;
    color: #00ff9d;
    margin-top: 4px;
    text-align: center;
}

@media (min-width: 992px) {
    .footer-toggle {
        margin: 0 0 8px 0;
        align-self: self-start;
        /* margin-right: 250px; */
    }
}

/* Tablet view improvements */
@media (min-width: 768px) {
    .footer-links {
        gap: 100px;
    }
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    footer.footer {
        display: none !important;
    }
}

/* @media (max-width: 468px) {
    .footer {
        padding: 2px 4px;
    }

    .footer-toggle {
        font-size: 6px;
        padding: 1px 2px;
        align-items: center;
    }

    .footer-links a, .footer-links span {
        font-size: 7px;
    }

    .footer-disclaimer {
        font-size: 5.5px;
        margin-top: 1px;
    }
} */

.footer.collapsed .footer-content {
    display: none !important;
}

.footer.collapsed {
    padding: 0;
}

.footer .footer-toggle {
    font-size: 12px;
}

/* @media (min-width: 468px) {
    .footer-links {
        gap:300px;
    }
} */

body.with-sidebar .footer {
    width: calc(100% - 250px);
    margin-left: 250px;
}
/* 
html {
    scroll-padding-top: 180px;
} */

/* Home page styles */
/* .main-content {
    padding-top: 70px;
} */

.container {
    max-width: 2000px;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-xl {
    font-size: 1.25rem;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.5rem;
}

.card-text {
    font-size: 1rem;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .text-4xl {
        font-size: 1.875rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    .card {
        padding: 15px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-text {
        font-size: 0.875rem;
    }

    .btn-lg {
        padding: 8px 16px;
        font-size: 0.875rem;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .text-4xl {
        font-size: 1.0rem;
    }

    .text-xl {
        font-size: 0.75rem;
    }

    .card {
        padding: 10px;
    }

    .card-title {
        font-size: 0.875rem;
    }

    .card-text {
        font-size: 0.625rem;
    }

    .btn-lg {
        padding: 4px 8px;
        font-size: 0.625rem;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

body.with-sidebar .main-content {
    width: calc(100% - 200px);
    margin-left: 150px;
}

@media (max-width: 767px) {
    .main-content {
        width: 100% !important;
        margin-left: 0 !important;
    }
}

.telegram-link {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.telegram-link i {
    margin-right: 5px;
}

input[type="text"]#stock-symbol {
    color: var(--dark-navy);
    background-color: #ffffff;
    padding-left: 35px;
    width: 100%;
}

/* Or alternatively */
.mb-3 input[type="text"] {
    color: var(--dark-navy);
    background-color: #ffffff;
    padding-left: 35px;
    width: 100%;
}

/* Rest of the styles remain the same */
.icon.fas.fa-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    z-index: 1;
}

.mb-3 {
    position: relative;
    width: 100%;
}


.autocomplete-items {
    color: var(--dark-navy);
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

.autocomplete-item {
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.relative {
    position: relative;
}


input[type="text"],
.flex-grow {
    color: var(--dark-navy) !important;
    background-color: #ffffff;
}

input::placeholder {
    color: #9ca3af !important;
    opacity: 1;
}

.bg-white h3.text-gray-800 {
    color: #0f172a !important; 
 }

.bg-white p{
color: var(--side-color) !important;
}

.bg-gray-50 p,
.bg-green-100 p,
.bg-yellow-100 p,
.bg-red-100 p {
    color: var(--dark-color) !important;
}

/* Specific colors for the percentages */
.bg-green-100 .text-green-800,
.bg-green-100 .font-bold {
    color: #166534 !important;  /* Dark green */
}

.bg-yellow-100 .text-yellow-800,
.bg-yellow-100 .font-bold {
    color: #854d0e !important;  /* Dark yellow */
}

.bg-red-100 .text-red-800,
.bg-red-100 .font-bold {
    color: #991b1b !important;  /* Dark red */
}

/* For the labels (Buy, Hold, Sell) */
.bg-green-100 .text-gray-600,
.bg-yellow-100 .text-gray-600,
.bg-red-100 .text-gray-600 {
    color: #4b5563 !important;  /* Gray text */
}

.bg-gray-50 h3,
.bg-green-100 h3,
.bg-red-100 h3 {
    color: var(--dark-color) !important;
}


.text-term-800 {
    color: #ffffff !important;
}


.text-gray-700 {
    color: var(--dark-color) !important;
}

.pe-value span[id],
#currentPE {
    color: var(--dark-color) !important;
}




.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-green-600,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-green-600,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-green-800,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-green-800,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-green-700,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-green-700 {
    color: #15803d !important;  /* Tailwind green-500 */
}

.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-gray-800,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-gray-800,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-gray-700,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-gray-700,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-gray-600,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-gray-600  {
    color:  #0f172a !important;  /* Tailwind gray-500 */
}

.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-red-600,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-red-600,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-red-800,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-red-800,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 p.text-red-700 ,
.bg-white.shadow.rounded-lg.p-6 .bg-green-50 span.text-red-700  {
    color: #dc2626 !important;  /* Tailwind red-500 */
}

.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-green-600,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-green-600,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-green-800,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-green-800,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-green-700,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-green-700 {
    color: #15803d !important;  /* Tailwind green-500 */
}
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-gray-800,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-gray-800,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-gray-700,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-gray-700,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-gray-600,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-gray-600  {
    color:  #0f172a !important;  /* Tailwind gray-500 */
}
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-red-600,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-red-600,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-red-800,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-red-800,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 p.text-red-700 ,
.bg-white.shadow.rounded-lg.p-6 .bg-gray-50 span.text-red-700  {
    color: #dc2626 !important;  /* Tailwind red-500 */
}

.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-green-600,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-green-600,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-green-800,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-green-800,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-green-700,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-green-700 {
    color: #15803d !important;  /* Tailwind green-500 */
}
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-gray-800,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-gray-800,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-gray-700,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-gray-700,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-gray-600,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-gray-600  {
    color:  #0f172a !important;  /* Tailwind gray-500 */
}

.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-red-600,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-red-600,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-red-800,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-red-800,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 p.text-red-700 ,
.bg-white.shadow.rounded-lg.p-6 .bg-red-50 span.text-red-700  {
    color: #dc2626 !important;  /* Tailwind red-500 */
}


/* Specific colors for text labels */
.text-green-500 {
    color: #15803d !important;  /* Tailwind green-500 */
}

.text-gray-500 {
    color: #6B7280 !important;  /* Tailwind gray-500 */
}

.text-chat {
    color: var(--dark-color) !important;  /* Tailwind gray-500 */
}


.text-red-500 {
    color: #dc2626 !important;  /* Tailwind red-500 */
}

/* For the current PE value */
.current-pe {
    color: var(--dark-color) !important;
}

.current-pe.red {
    color: #dc2626 !important;
}

.current-pe.green {
    color: #15803d!important;
}

/* For the numerical values in spans */
.gm-value span[id],
#currentGM {
    color: var(--dark-color) !important;
}

/* Label colors */
.gm-value .text-green-500 {
    color: #15803d !important;  /* Tailwind green-500 */
}

.gm-value .text-gray-500 {
    color: #6B7280 !important;  /* Tailwind gray-500 */
}

.gm-value .text-red-500 {
    color: #dc2626 !important;  /* Tailwind red-500 */
}

/* For the current GM value */
.current-gm {
    color: var(--dark-color) !important;
}

.current-gm.green {
    color: #15803d !important;
}

.current-gm.red {
    color: #dc2626 !important;
}

select#chartPeriod {
    background-color: white;
    color: #1f2937; /* Dark text color */
    padding: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.25rem;
    outline: none;
}

.text-yellow-600 {
    color: #d58d39 !important;
}

.text-red-600 {
    color: #e55015 !important;
}

.text-green-600 {
    color: #059669 !important;
}

.text-er-600 {
    color: #00ff9d !important;
}

/* Override text colors in .bg-white cards */
.bg-white .text-yellow-600,
.bg-gray-50 .text-yellow-600 {
    color: #d58d39 !important;
}

.bg-white .text-red-600,
.bg-gray-50 .text-red-600 {
    color: #e55015 !important;
}

.bg-white .text-green-600,
.bg-gray-50 .text-green-600 {
    color: #059669 !important;
}
.bg-white .text-er-600,
.bg-gray-50 .text-er-600 {
    color: #00ff9d !important;
}   

/* Target the specific element with classes `bg-white` and `shadow` */
.bg-white.shadow.rounded-lg.p-6 {
    background-color: var(--dark-navy) !important; /* Match sidebar background */
    color: var(--side-color) !important; /* Adjust text for readability */
    border: 2px solid #ffffff !important; /* Add a white border */
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Optional: Subtle shadow */
}

/* Adjust text colors for readability */
.bg-white.shadow.rounded-lg.p-6 h1 {
    color: var(--side-color) !important; /* Heading text color */
}

.bg-white.shadow.rounded-lg.p-6 p {
    color: var(--side-color); /* Paragraph text color */
}

/* Adjust image (if needed) to fit with dark background */
.bg-white.shadow.rounded-lg.p-6 img {
    filter: brightness(1.2) contrast(1.1); /* Optional: Improve image visibility */
}


select#chartPeriod:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

#currentGM, #currentPE {
    color: inherit;
}

#currentGM.green, #currentPE.green {
    color: #15803d !important;
    
}

#currentGM.red, #currentPE.red {
    color: #dc2626 !important;
}

/* Terms and Privacy icon colors */
.fas.fa-file-contract {
    color: #9333EA;  /* Purple shade for Terms */
}

.fas.fa-shield-alt {
    color: hsl(356, 83%, 53%);  /* Red shade for Privacy */
}

/* Social Login Button Styles */
.social-login .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    margin-bottom: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    color: #ffffff;
}

/* Google Button - Solid Style */
.social-login .btn-outline-danger {
    background-color: #EA4335;
    border: 1px solid #EA4335;
    color: #ffffff;
}

.social-login .btn-outline-danger:hover {
    background-color: #ffffff;
    color: #EA4335;
    border-color: #EA4335;
}

/* Facebook Button - Solid Style */
.social-login .btn-outline-primary {
    background-color: #1877F2;
    border: 1px solid #1877F2;
    color: #ffffff;
}

.social-login .btn-outline-primary:hover {
    background-color: #ffffff;
    color: #1877F2;
    border-color: #1877F2;
}

/* Icons in social buttons */
.social-login .btn i {
    margin-right: 8px;
    font-size: 18px;
}
/* Social media icons */
.fab.fa-whatsapp {
    color: #33ffa8;
}

.fab.fa-telegram {
    color: #0088cc;  /* Telegram blue */
}

/* Hover effects for all icons */
.footer-link:hover .fas.fa-file-contract {
    color: #A855F7;  /* Lighter purple on hover */
}

.footer-link:hover .fas.fa-shield-alt {
    color: #3B82F6;  /* Lighter blue on hover */
}

.footer-link:hover .fab.fa-telegram,
.footer-link:hover .fab.fa-whatsapp {
    color: var(--logo-green);
    
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1200;
}

.modal-content {
    background-color: var(--dark-navy);
    color: var(--side-color);
    margin: 15% auto;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.modal-header h2 {
    color: var(--side-color);
    margin: 0;
}

.close-btn {
    color: var(--side-color);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--logo-green);
}

#feedbackForm .form-group {
    margin-bottom: 20px;
}

#feedbackForm label {
    display: block;
    margin-bottom: 8px;
    color: var(--side-color);
}

#feedbackForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--side-color);
    min-height: 120px;
    resize: vertical;
}

#feedbackForm textarea:focus {
    outline: none;
    border-color: var(--logo-green);
}

#feedbackForm button {
    background-color: var(--logo-green);
    color: var(--dark-navy);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#feedbackForm button:hover {
    background-color: #00cc7d;
    transform: translateY(-1px);
}

.ai-analysis-heading {
    margin-bottom: 1em;
}
.bg-white .ai-analysis-paragraph{
    color:#b3b3e4   !important;;
    margin-bottom: 1em;
}

.ai-analysis-paragraph{
    color:#b3b3e4  !important;;
    margin-bottom: 1em;
}

.ai-analysis-list-item{
    color:#b3b3e4;
    margin-bottom: 1em;
}

.ai-analysis-strong {
    color: white;
    display: block;
    margin-bottom: 0.5em;   /* Add some space before the next content */
}

#exchange-guide {
    background-color: #031236;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

#exchange-guide .hover\:bg-gray-800:hover {
    background-color: rgba(5, 57, 25, 0.391);
    transition: background-color 0.2s;
}

#exchange-guide::-webkit-scrollbar {
    width: 8px;
}

#exchange-guide::-webkit-scrollbar-track {
    background: rgba(1, 30, 7, 0.097);
    border-radius: 4px;
}

#exchange-guide::-webkit-scrollbar-thumb {
    background-color: rgba(4, 62, 17, 0.2);
    border-radius: 4px;
}

#exchange-guide button:hover {
    opacity: 0.8;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Add these styles to your styles.css file */

/* Social share buttons styling */
#socialShareButtons button {
    transition: all 0.2s ease;
}

#socialShareButtons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Shareable content styling */
.shareable-content {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.shareable-content img {
    object-fit: contain;
}

/* Animation for loading */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.6;
    }
}

.loading-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .fas.fa-file-contract,
    .fas.fa-shield-alt,
    .fab.fa-telegram,
    .fab.fa-whatsapp {
        font-size: 1.5em;  /* Larger icons on mobile */
    }

    /* Sidebar adjustments */
    /* .side-panel {
        position: fixed;
        left: -250px;
        transition: left 0.3s ease;
        width: 250px;
        background-color: var(--dark-navy);
        z-index: 1000;
    } */

    /* .side-panel.active {
        left: 0;
    } */

    /* Main content adjustments */
    .content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 60px 15px 80px;
    }

    /* Footer adjustments */
    .footer {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 15px;
    }

    .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-container > div {
        width: 100%;
    }

    .footer-disclaimer {
        font-size: 11px;
        margin-top: 10px;
    }

    .footer-container a {
        display: block;
        margin: 5px 0;
    }

    .footer-link {
        padding: 8px;  /* Better touch area */
    }
    /* Form and input adjustments */
    .row.justify-content-center.mt-5 {
        margin: 1rem;
        padding-bottom: 80px;
    }

    .col-md-6 {
        width: 100%;
        padding: 15px;
    }

    .form-control {
        font-size: 16px;
        padding: 10px;
        height: 44px;
    }

    /* Button adjustments */
    .btn {
        padding: 12px;
        font-size: 16px;
    }

    /* Navigation adjustments */
    .nav-link {
        padding: 12px 15px;
    }

    /* Typography adjustments */
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }

    /* Container spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .mb-3 {
        margin-bottom: 1rem !important;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar-nav-container {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-right: 1rem;
    }
    .navbar-brand {
        margin-right: 1rem;
    }
    .navbar .container-fluid {
        flex-wrap: nowrap;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    /* Adjust the language selector for mobile */
    .form-inline {
        justify-content: center;
        margin-top: 10px;
    }

    .auth-buttons {
        display: flex;
        gap: 0.25rem;
    }

    .btn-login {
        padding: 4px 8px;
        font-size: 13px;
    }

    .btn-login i {
        font-size: 16px;
    }

    .btn-login:hover {
        transform: translateY(-1px);
    }

    /* Language selector styling */
    .language-form {
        padding: 2px;
        font-size: 13px;
        height: 28px;
        min-width: 60px;
    }

    .form-select {
        padding: 2px 20px 2px 8px;
        font-size: 14px;
        height: 28px;
        background-position: right 4px center;
        min-width: 70px;
    }

    /* Welcome message */
    .nav-item.nav-link {
        padding: 4px 8px;
        font-size: 14px;
    }

    /* Logout button */
    .btn-link.nav-link {
        padding: 4px 8px;
        font-size: 14px;
    }

    select[name="language"] {
        width: auto;
        margin: 5px 0;
    }
    .navbar-toggler {
        margin-right: 0.5rem;
    }

    .common-width {
        width: 100%; /* Override the 125% width on mobile */
    }

    /* Chart container fix for mobile */
    .chart-container {
        width: 100%;
        height: 300px;
        margin: 10px 0;
    }
    /* Ensure dropdowns and modals appear above fixed elements */
    .modal-backdrop {
        z-index: 1100;
    }
    
    .modal {
        z-index: 1110;
    }

    .modal-content {
        margin: 10% auto;
        width: 90%;
        padding: 15px;
    }

    .dropdown-menu {
        z-index: 1050;
    }
    /* Hide text, show only icons */
    .d-none.d-md-inline {
        display: none !important;
    }

}

@media (max-width: 480px) {
    .fas.fa-file-contract,
    .fas.fa-shield-alt,
    .fab.fa-telegram,
    .fab.fa-whatsapp {
        font-size: 1.25rem;
    }
/* 
    .side-panel {
        width: 200px;
    } */

    .content {
        padding: 50px 10px 70px;
    }

    .footer {
        padding: 10px;
    }

    .footer-container {
        gap: 5px;
    }

    .footer-disclaimer {
        font-size: 9px;
        margin-top: 5px;
    }

    .footer-container a {
        margin: 3px 0;
    }

    .footer-link {
        padding: 6px;
    }

    .row.row.justify-content-center.mt-5 {
        margin: 0.5rem;
        padding-bottom: 70px;
    }

    .col-md-6 {
        padding: 10px;
    }

    .form-control {
        font-size: 14px;
        padding: 8px;
        height: 38px;
    }

    .btn {
        padding: 10px;
        font-size: 14px;
        margin-left: 5px;
    }

    .nav-link {
        padding: 10px 12px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size:  18px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mb-3 {
        margin-bottom: 0.75rem !important;
    }

    .navbar {
        padding: 0.25rem;
    }

    .navbar-nav-container {
        gap: 0.25rem;
        margin-right: 0.5rem;
    }

    .navbar-brand {
        margin-right: 0.5rem;
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .navbar-nav .nav-item {
        margin: 3px 0;
    }

    .form-inline {
        margin-top: 5px;
    }

    .auth-buttons {
        gap: 0.20rem;
    }

    .btn-login {
        padding: 3px 6px;
        margin-top: 6px;
        font-size: 12px;
        margin-left: 2px;
    }

    .btn-login i {
        font-size: 14px;
    }

    .language-form {
        /* padding: 1px; */
        font-size: 6px;
        height: 24px;
        min-width: 5px;
    }

    .form-select {
        padding: 1px 15px 1px 6px;
        font-size: 12px;
        height: 24px;
        background-position: right 2px center;
        min-width: 60px;
    }

    .nav-item.nav-link {
        padding: 3px 6px;
        font-size: 12px;
    }

    .btn-link.nav-link {
        padding: 3px 6px;
        font-size: 12px;
    }

    select[name="language"] {
        margin: 3px 0;
    }

    .navbar-toggler {
        margin-right: 0.25rem;
    }

    .chart-container {
        height: 250px;
        margin: 5px 0;
    }

    .modal-content {
        margin: 15% auto;
        padding: 10px;
    }

    .navbar-nav-container.authenticated {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        white-space: nowrap;
    }

    .nav-item.nav-link.authenticated {
        padding: 2px 3px;
        font-size: 9px;
    }

    .btn-login.authenticated {
        padding: 1px 3px;
        font-size: 9px;
        margin-top: 3px;
        margin-left: 1px;
    }

    .btn-login.authenticated i {
        font-size: 10px;
    }

    .language-form.authenticated {
        font-size: 9px;
        height: 18px;
        min-width: 35px;
    }

    .form-select.authenticated {
        padding: 1px 6px 1px 3px;
        font-size: 9px;
        height: 18px;
        min-width: 35px;
    }
/* 
    .navbar-nav-container:not(.authenticated) .btn-login, */
    .navbar-nav-container:not(.authenticated) .language-form,
    .navbar-nav-container:not(.authenticated) .form-select {
        padding: 4px 6px;
        font-size: 10px;
        margin-bottom: 4px;
        height: 20px;
        min-width: 40px;
    }

    /*.navbar-nav-container:not(.authenticated) .btn-login i {
        font-size: 12px;
    } */

}

.side-panel-container .sidebar-toggle{
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    position: fixed;
    top: 0.7rem;
    margin-right: 6rem;
    z-index: 1001;
}

.side-panel-container .side-panel {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100% - 60px);
    width: 250px;
    background-color: var(--dark-navy); /* Changed from #fff to dark navy */
    background-size: 20px 20px; /* Match the main background grid size */
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Add subtle white border */
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05); /* Add inner glow */
    z-index: var(--z-sidebar);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    padding-bottom: 20px; /* Add padding to prevent overlap with footer */
}

.side-panel-container .side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle white overlay */
    pointer-events: none; /* Ensures clicks pass through to the links */
}

/* .side-panel-container #sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding-top: 1rem;
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
} */

.side-panel-container #sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-panel-container #sidebar ul li {
    padding: 0.5rem 1rem;
}

.side-panel-container #sidebar ul li a {
   position: relative; /* Ensures that the icon's position is relative to the link */
   padding-left: 30px;
}

.side-panel-container #sidebar ul li a:hover {
    color: var(--logo-green);
}

.side-panel-container #sidebar ul li a i {
    color: var(--logo-green);
    position: absolute;
    left: 0; /* Aligns the icon to the left edge of the link */
    top: 4; /* Aligns the icon to the top, adjust as needed */
    margin-right: 10px; /* Remove any margin if previously set */
}

/* #sidebar ul li .feedback-link {
   color: white;
   text-decoration: none;
   display: flex;
   align-items: center;
   padding: 0.5rem;
} */

/* #sidebar ul li .nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
} */

/* #sidebar ul li .feedback-link {
    font-size: 2rem !important;
} */

/* .side-panel .feedback-link {
     font-size: 14px !important; 
}

#sidebar .feedback-link:hover {
    color: var(--logo-green);
} */

/* .content {
    margin-left: 250px;
    padding: 20px;
    flex: 1;
} */

@media (max-width: 768px) {
    .side-panel-container .sidebar-toggle {
        display: block !important;
    }

    .side-panel-container #sidebar {
        padding: 0.2rem;
        transform: translateX(-100%);
        box-shadow: 2x 0 5px rgba(0, 0, 0, 0.1);
    }

    .side-panel-container #sidebar.active {
        transform: translateX(0);
        width: 250px;
    }

    .side-panel-container .side-panel ul li {
        padding: 0.1rem 0.1rem;
    }

    .side-panel-container .side-panel ul li a {
        font-size: 0.75rem;
        /* padding: 0.1rem 0.2rem; */
    }
/* 
    #sidebar ul li a .feedback-link {
        padding: 0.1rem 0.1rem;
        font-size: 0.75rem;
    } */

    .side-panel-container .side-panel ul li a i {
        font-size: 1rem;
        /* top: 1px; */
        /* margin-right: 10px; */
    }

    /* #sidebar ul li a .feedback-link i span {
        color: white;
        font-size: 1.25rem;
        /* top: 1px; 
    } */

    .side-panel-container #sidebar.active {
        transform: translateX(0);
    }
}

/* @media (min-width: 769px) {
    .side-panel-container #sidebar {
        transform: translateX(0);
    }
} */

/* Profile Button Style */
.btn-profile-toggle {
    background-color: transparent;
    border: none;
    margin-top: 5px;
    color: #f2f2f2;
    cursor: pointer;
}

.btn-profile-toggle:hover {
    color: #007bff;
}

.custom-mobile-dropdown {
    background-color: #0f172a;
    color: #f2f2f2;
    border-radius: 0.5rem;
    min-width: 200px;
    max-width: 90vw;
    right: 0;
    left: auto !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    padding: 0.5rem 0;
}

.custom-mobile-dropdown .dropdown-item {
    color: #f2f2f2;
    background-color: transparent;
    white-space: normal;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.custom-mobile-dropdown .dropdown-item:hover {
    color: #00ff9d !important;
}

.custom-mobile-dropdown .dropdown-item.text-muted {
    color: #f2f2f2 !important;
    font-weight: 500;
}

/* .custom-mobile-dropdown .dropdown-item:hover {
    background-color: #1f71e3;
} */

.custom-mobile-dropdown .form-label {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.custom-mobile-dropdown .form-select-sm {
    background-color: #1e293b;
    color: #f2f2f2;
    background: none;
    border: 1px solid #475569;
    font-size: 0.85rem;
}

.custom-mobile-dropdown .form-select-sm option {
    background-color: #1e293b;
    color: #f2f2f2;
}

.custom-mobile-dropdown .btn-link {
    color: #f2f2f2 !important;
    text-decoration: none;
    font-size: 0.9rem;
    padding-left: 1rem;
}

.custom-mobile-dropdown .btn-link:hover {
    color: #38bdf8 !important;
    background-color: #334155;
}

/* .btn-profile-toggle:hover {
    color: #007bff;
}

/* .dropdown-menu {
    min-width: 200px;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
} 

.dropdown-item form button {
    font-size: 0.9rem;
    color: #212529;
    text-decoration: none;
}

.dropdown-item form button:hover {
    color: #0d6efd;
    background-color: #f8f9fa;
}
/* 
.dropdown-menu .form-select {
    margin-top: 0.5rem;
    font-size: 0.9rem;
} */

/* #scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
} */