 /* General Content Styling */
main {
    padding: 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.body-gradient {
    background: linear-gradient(to bottom, #0F172A, #1E293B);
    min-height: 100vh; /* ensures the gradient fills the screen */
}

/* Headings */
h1 {
    font-size: 2rem;
    color: #333;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.6rem;
    color: #333;
    text-align: left;
    margin-top: 0px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.3rem;
    color: #333;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 20px;
}

h4 {
    font-size: 1.3rem;
    color: #333;
    text-align: left;
    margin-top: 15px;
    margin-bottom: 15px;
}

h5 {
    font-size: 1.6rem;
    color: #333;
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Keyframes */
@keyframes flash {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* Flash classes */
.flash {
  animation: flash 1s linear infinite;
}

.flash-fast {
  animation: flash 0.45s linear infinite; /* noticeably faster */
}

/* Optional: ensure flashing affects visibility even if parent has transforms */
#currentTradingWindow {
  transition: color 0.2s ease;
}

/* Base trend label style */
  .trend-label {
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 3px;
    color: white;
    display: inline-block;
  }

  /* Trend direction colour */
  .trend-label.bullish { background-color: #21B26D; }   /* Green */
  .trend-label.bearish { background-color: #EF454A; }   /* Red */
  .trend-label.neutral { background-color: #9CA3AF; }   /* Grey */

  /* Optional glow based on strength */
  .trend-label.high { box-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
  .trend-label.medium { opacity: 0.9; }
  .trend-label.low { opacity: 0.7; }

  /* Subtle text colouring for interpretation blocks */
  .muted {
    color: #A1A1AA;
    font-size: 0.95em;
  }

  details {
    margin-top: 5px;
    font-size: 0.9em;
  }

  .trend-link {
    text-decoration: none;
  }

  .trend-link:hover .trend-label {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.2s ease;
  }

/* Centering all text and making it responsive */
.centered {
  text-align: center;
  margin: 0 auto;
  max-width: 900px;
  line-height: 1.6;
}

h1.centered {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.subheading.centered {
  font-size: 1.25rem;
  font-weight: 500;
  font-style: none;
  color: #fff;
  margin-bottom: 45px;
}

.description.centered {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ddd;
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta.centered {
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  margin-top: 20px;
}

.cta .cta-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 600;
}

.cta .cta-link:hover {
  text-decoration: underline;
}

/* Paragraphs */
p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    text-align: left;
    margin: 0 auto 20px auto;
}

.checklist {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.checklist li {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

.tick {
  color: #28a745; /* Green color */
  font-weight: bold;
  font-size: 20px;
  margin-right: 10px;
}



/* Premium Scanners List Styling */
.featured-list {
    list-style-type: none;  /* Removes default bullets */
    padding: 0;
    margin: 20px 0;
}

.featured-list li {
    background: #f8f9fa; /* Light grey background */
    padding: 12px 16px;
    margin-bottom: 8px;
    border-left: 5px solid #007bff; /* Adds a left color accent */
    border-radius: 5px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    color: #333; /* Darker text for readability */
    transition: all 0.3s ease-in-out;
}

.featured-list li:hover {
    background: #e9ecef; /* Slightly darker on hover */
    border-left-color: #0056b3; /* Darker blue on hover */
}

/* Remove underline from links inside .featured-list */
.featured-list li a {
    text-decoration: none;
}

strong {
    color: #333;
}

/* Styling for the scanner description div */
.scanner-description {
    margin-top: 60px; /* Space around the content */

}

/* Market Summary Card */
.market-summary-card {
    background: linear-gradient(135deg, #0F172A, #2D3A54); /* Soft navy blue for a more professional feel */
    border-radius: 8px; /* Subtle radius */
    padding: 15px 20px;
    width: 100%; /* Ensures it adapts */
    max-width: 480px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15); /* Softer shadow */
    font-family: 'Roboto', sans-serif; /* Professional font */
}

/* Align the card to the left */
.msc-container {
    display: flex; /* Enable Flexbox */
    gap: 20px; /* Add spacing between cards */
    justify-content: space-between; /* Space them evenly */
    flex-wrap: wrap; /* Ensure responsiveness */
    padding-top: 20px;
}

/* Ensure responsiveness */
@media (max-width: 768px) {
    .msc-container {
        flex-direction: column; /* Stack on smaller screens */
        align-items: center; /* Center align */
    }

    .market-summary-card {
        width: 90%; /* Adjust width for smaller screens */
    }
}

.market-summary-card h2 {
    font-size: 1.25rem; /* Slightly smaller for better balance */
    font-weight: 600; /* Lighter weight for better hierarchy */
    text-align: left;
    color: #E2E8F0; /* Subtle light text color */
    margin-bottom: 10px;
}

.market-summary-card h4 {
    font-size: 1.25rem; /* Balanced size */
    font-weight: 600;
    color: #E2E8F0; /* Subtle light text color */
    margin-bottom: 8px;
}

.market-summary-card p {
    font-size: 1rem;
    color: #CBD5E0; /* Soft, professional color */
    line-height: 1.6;
    margin: 8px 0;
}

/* Improve Bullish & Bearish Color Contrast */
.market-summary-card p strong[style*="color: #21B26D"] {
    color: #4CAF50 !important; /* Softer, deeper green */
}

.market-summary-card p strong[style*="color: #EF454A"] {
    color: #F44336 !important; /* Softer, deeper red */
}

/* Force center alignment for all DataTable columns */
.dt-center {
    text-align: center !important;
    vertical-align: middle !important;
}

 /* Basic table styling */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border-radius: 0px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    color: #F8FAFC; /* Light text */
    padding-top: 10px;
    padding-bottom: 0px;
    line-height: 1.15; /* Ensures no space between table cells */
}

/* Table Header */
thead th {
    background-color: #0F172A; /* Dark navy */
    color: #38BDF8; /* Light cyan for a high-tech feel */
    font-weight: bold;
    padding: 12px; /* Ensure even padding */
    text-align: center; /* Centers text horizontally */
    vertical-align: middle; /* Centers text vertically */
    border-bottom: 2px solid #64748B;
    position: sticky;
    top: 0;
    z-index: 2;
    box-sizing: border-box; /* Includes padding in the width/height calculation */
}

/* Table Body */
td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #334155; /* Slightly lighter than background */
}

/* Alternating Row Colors */
tbody tr:nth-child(odd) {
    background-color: #1E293B !important;
}

tbody tr:nth-child(even) {
    background-color: #2E3A59 !important;
}

/* Hover Effect */
tbody tr:hover {
    background-color: #374151 !important;
    transition: background 0.3s ease-in-out;
}

/* Highlight Positive and Negative Values */
.positive { color: #21B26D; font-weight: bold; } /* Green for bullish values */
.negative { color: #EF454A; font-weight: bold; } /* Red for bearish values */

/* Wrapper to enable sticky header and scrolling */
.table-wrapper {
    overflow-x: auto;
    overflow-y: hidden; /* Prevents unnecessary vertical scrolling */
    max-width: 100%;
}

/* Ensures scrollbar is visible */
.table-wrapper::-webkit-scrollbar {
    height: 10px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-track {

}

/* Sticky first column styling */
tbody td:first-child {
    position: sticky;
    left: 0;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #0F172A; /* Slate gray */
    color: #fff; /* Light text */
}

/* Sticky second column (Symbol) for MIM Algo + Scalpers Dream tables */
#scanner-mimalgo_long_momentum_backed_lite tbody td:nth-child(2),
#scanner-mimalgo_short_momentum_backed_lite tbody td:nth-child(2),
#scanner-mimalgo_long_momentum_backed tbody td:nth-child(2),
#scanner-mimalgo_short_momentum_backed tbody td:nth-child(2),
#scanner-mimalgo_short_liquidations tbody td:nth-child(2),
#scanner-four_hour_top_movers tbody td:nth-child(2),
#scanner-daily_pullback_long tbody td:nth-child(2),
#scanner-daily_pullback_short tbody td:nth-child(2),
#scanner-scalpers_dream_long_t1 tbody td:nth-child(2),
#scanner-scalpers_dream_short_t1 tbody td:nth-child(2),
#scanner-scalpers_dream_long_t2 tbody td:nth-child(2),
#scanner-scalpers_dream_short_t2 tbody td:nth-child(2),
#scanner-scalpers_dream_other tbody td:nth-child(2),
#scanner-scalpers_dream_t4 tbody td:nth-child(2),
#scanner-scalpers_dream_all tbody td:nth-child(2),
#scanner-daily_volatility2 tbody td:nth-child(2) {
    position: sticky;
    left: 0;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
    background-color: #0F172A; /* match MIM Algo theme */
    color: #fff;
}

/* Corresponding sticky header */
#scanner-mimalgo_long_momentum_backed_lite thead th:nth-child(2),
#scanner-mimalgo_short_momentum_backed_lite thead th:nth-child(2),
#scanner-mimalgo_long_momentum_backed thead th:nth-child(2),
#scanner-mimalgo_short_momentum_backed thead th:nth-child(2),
#scanner-mimalgo_short_liquidations thead th:nth-child(2),
#scanner-four_hour_top_movers thead th:nth-child(2),
#scanner-daily_pullback_long thead th:nth-child(2),
#scanner-daily_pullback_short thead th:nth-child(2),
#scanner-scalpers_dream_long_t1 thead th:nth-child(2),
#scanner-scalpers_dream_short_t1 thead th:nth-child(2),
#scanner-scalpers_dream_long_t2 thead th:nth-child(2),
#scanner-scalpers_dream_short_t2 thead th:nth-child(2),
#scanner-scalpers_dream_other thead th:nth-child(2),
#scanner-scalpers_dream_t4 thead th:nth-child(2),
#scanner-scalpers_dream_all thead th:nth-child(2),
#scanner-daily_volatility2 thead th:nth-child(2) {
    position: sticky;
    left: 0;
    background-color: #0F172A;
    color: #38BDF8;
    z-index: 3;
}

/* Mobile optimization */
@media (max-width: 1200px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    tbody td:first-child, thead th:first-child {
        white-space: normal;
        word-break: break-word;
        min-width: 120px;
        max-width: 40%;
    }
}

@media (max-width: 1200px) {
    #scanner-mimalgo_long_momentum_backed_lite,
    #scanner-mimalgo_short_momentum_backed_lite,
    #scanner-mimalgo_long_momentum_backed,
    #scanner-mimalgo_short_momentum_backed,
    #scanner-mimalgo_short_liquidations,
    #scanner-four_hour_top_movers,
    #scanner-daily_pullback_long,
    #scanner-daily_pullback_short,
    #scanner-scalpers_dream_long_t1,
    #scanner-scalpers_dream_short_t1,
    #scanner-scalpers_dream_long_t2,
    #scanner-scalpers_dream_short_t2,
    #scanner-scalpers_dream_other,
    #scanner-scalpers_dream_t4,
    #scanner-scalpers_dream_all,
    #scanner-daily_volatility2 {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    #scanner-mimalgo_long_momentum_backed_lite tbody td:nth-child(2),
    #scanner-mimalgo_short_momentum_backed_lite tbody td:nth-child(2),
    #scanner-mimalgo_long_momentum_backed tbody td:nth-child(2),
    #scanner-mimalgo_short_momentum_backed tbody td:nth-child(2),
    #scanner-mimalgo_short_liquidations tbody td:nth-child(2),
    #scanner-four_hour_top_movers tbody td:nth-child(2),
    #scanner-daily_pullback_long tbody td:nth-child(2),
    #scanner-daily_pullback_short tbody td:nth-child(2),
    #scanner-scalpers_dream_long_t1 tbody td:nth-child(2),
    #scanner-scalpers_dream_short_t1 tbody td:nth-child(2),
    #scanner-scalpers_dream_long_t2 tbody td:nth-child(2),
    #scanner-scalpers_dream_short_t2 tbody td:nth-child(2),
    #scanner-scalpers_dream_other tbody td:nth-child(2),
    #scanner-scalpers_dream_t4 tbody td:nth-child(2),
    #scanner-scalpers_dream_all tbody td:nth-child(2),
    #scanner-daily_volatility2 tbody td:nth-child(2),
    #scanner-mimalgo_long_momentum_backed_lite thead th:nth-child(2),
    #scanner-mimalgo_short_momentum_backed_lite thead th:nth-child(2),
    #scanner-mimalgo_long_momentum_backed thead th:nth-child(2),
    #scanner-mimalgo_short_momentum_backed thead th:nth-child(2),
    #scanner-mimalgo_short_liquidations thead th:nth-child(2),
    #scanner-four_hour_top_movers thead th:nth-child(2),
    #scanner-daily_pullback_long thead th:nth-child(2),
    #scanner-daily_pullback_short thead th:nth-child(2),
    #scanner-scalpers_dream_long_t1 thead th:nth-child(2),
    #scanner-scalpers_dream_short_t1 thead th:nth-child(2),
    #scanner-scalpers_dream_long_t2 thead th:nth-child(2),
    #scanner-scalpers_dream_short_t2 thead th:nth-child(2),
    #scanner-scalpers_dream_other thead th:nth-child(2),
    #scanner-scalpers_dream_t4 thead th:nth-child(2),
    #scanner-scalpers_dream_all thead th:nth-child(2),
    #scanner-daily_volatility2 thead th:nth-child(2) {
        white-space: normal;
        word-break: break-word;
        min-width: 120px;
        max-width: 40%;
    }
}



/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #101014;
    padding: 15px 20px;
    color: white;
}

/* Logo */
.logo img {
    height: 70px;
    padding-right: 100px;
}

/* Nav Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 50px;
    margin-right: 20px;
    justify-content: center; /* Centers the nav links horizontally */
    align-items: center; /* Aligns items vertically (if needed) */
}

.nav-links li {
    display: inline;
    text-align: center; /* Ensures text inside the list items is centered */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: normal;
    text-align: center; /* Centers text inside links */
}

.nav-links a:hover {
    text-decoration: underline;
}


.container {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.table-wrapper {
    font-family: Arial, sans-serif;
    margin-bottom: 10px;
}

/* Hamburger Menu (Hidden by Default) */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
  h1.centered {
    font-size: 2rem;
  }

  .subheading.centered {
    font-size: 1.1rem;
  }

  .description.centered {
    font-size: 1rem;
  }

  .cta.centered {
    font-size: 1.1rem;
  }
}

/* Mobile Responsive Design */
@media screen and (max-width: 1400px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        gap: 20px;
        margin-right: 0px;
        top: 60px;
        right: 20px;
        background: #101014;
        width: 200px;
        text-align: center;
        border-radius: 8px;
        padding: 10px 0;
        z-index: 1200;
    }

    .nav-links.active {
        display: flex;
        background: #101014;
    }

    .nav-links li {
        padding: 10px 0;
        background: #101014;
    }

    .hamburger {
        display: block;

    }
}

/* Footer Styles */
footer {
    background: #101014;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Footer Styles */
footer {
    background: #101014;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    display: flex;
    justify-content: center; /* Horizontally centers the child */
    align-items: center; /* Vertically centers the child */
    height: 100%; /* Ensure it takes full height of the parent */
}

/* Footer Links */
.footer-links {
    max-width: 85%;
    margin: 0;
    list-style: none;
    padding: 0;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap; /* Allow wrapping */
}

.footer-links li {
    display: inline;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #fff;
}

.copywrite {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 20px;
    display: block;
}

@media screen and (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}


.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px; /* Adjusts underline position */
  width: 100%;
  height: 12px; /* Thickness of underline */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.underline.red::after {
  background-image: url("/static/images/underline-red.svg");
}

.underline.green::after {
  background-image: url("/static/images/underline-green.svg");
}

.highlight {
        background: url(https://s2.svgbox.net/pen-brushes.svg?ic=brush-9&color=f3ec18);
        margin: -2px -6px;
        padding:  2px  6px;
    }

.container-home {
  color: #e0e0e0;
  padding: 20px;
}

.section-break {
  width: 60%;
  height: 1px;
  background: linear-gradient(to right, #C0C0C0, #4A4A4A);
  margin: 50px auto;
  margin-bottom: 0px;
}

/* Universal Button Style */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
    font-weight: none;
    border-radius: 5px;
    background-color: #007bff; /* Blue color for trust and professionalism */
    color: white;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, color 0.3s ease;
    vertical-align: middle; /* Ensures the button is vertically centered */
}

/* Hover effect */
.btn:hover {
    text-decoration: underline;
    background-color: #0056b3; /* Darker blue on hover */
}

/* Active effect */
.btn:active {
    background-color: #004085; /* Darkest blue when clicked */
}

/* Focus effect for accessibility */
.btn:focus {
    outline: none;
    box-shadow: 0 0 5px 2px rgba(0, 123, 255, 0.5); /* Soft blue shadow on focus */
}


.resources-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #28a745;
  padding-bottom: 5px;
  margin-top: 15px;
  margin-bottom: 15px;
  padding-top: 20px;
}

.resources-container {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.resources-container p {
  font-size: 16px;
  color: #333;
  margin-top: 10px;
  line-height: 1;
}

.resource-link {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.resource-link:hover {
  text-decoration: underline;
}

.trading-times {
   list-style-type: disc;
   padding-left: 40px;
   margin-bottom: 20px;
}

.trading-times li {
   font-family: Arial, sans-serif;
   margin-bottom: 10px;
   font-size: 16px;
   line-height: 1.6;
   color: #333;
}

.session-title {
  font-weight: bold;
  color: #333;
}

.guide-container {
    margin: 0 auto;
    padding: 10px 10px;
    width: 100%;
}

.guide-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: #212529;
    margin-bottom: 30px;
}

.guide-steps {
    display: flex;
    padding-bottom: 20px;
    padding-top: 20px;
    gap: 20px;
    width: 100%;
}

.step {
    background: #f0f9ff; /* Light blue background */
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 100%; /* Keeps the card at a maximum width of 95% of the parent container */
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1); /* Slightly stronger shadow for a modern look */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease; /* Smooth transition on hover */
    margin: 0 auto; /* Centers the card horizontally */
    display: block; /* Ensures the element is a block-level element to apply margin auto */
}

/* Hover effect for interactivity */
.step:hover {
    transform: translateY(-5px); /* Slight lift effect */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Focus effect (for accessibility or keyboard navigation) */
.step:focus {
    outline: 2px solid #4c89f0; /* Blue outline for focus */
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1); /* Retain default shadow on focus */
}


.step-number {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    background: #007bff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

.step h2 {
    font-size: 1.2rem;
    color: #333;
    text-align: left;
}

.step p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    text-align: left;
    margin: 0 auto 20px auto;
}

.responsive-chart-container {
  width: 100%;
  max-width: 1200px; /* Adjust this for your preferred maximum width */
  background: #000000;
  aspect-ratio: 16 / 9; /* Maintains the 16:9 ratio */
  margin: 0 auto; /* Centers the container horizontally */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Optional: Adds a nice shadow for better aesthetics */
  border-radius: 12px; /* Optional: Rounds the corners for a cleaner look */
  overflow: hidden; /* Ensures the widget doesn't overflow rounded corners */
}

.responsive-widgets-container {
  display: flex;
  justify-content: center; /* Centers the columns */
  width: 100%;
  height: 600px;
  max-width: 1200px; /* Adjust max-width as needed */
  max-height: 850px;
  min-height: 450px;
  margin: 0 auto; /* Centers the entire container */
  gap: 60px; /* Adds spacing between the widgets */
  flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
  background: #000000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Optional: Adds a nice shadow for better aesthetics */
  border-radius: 12px; /* Optional: Rounds the corners for a cleaner look */
  overflow: hidden; /* Ensures the widget doesn't overflow rounded corners */
  padding: 20px
}

.widget {
  display: flex;            /* Enables flex properties */
  align-items: center;      /* Centers the widget vertically (if needed) */
  flex: 1 1 45%; /* Reduces each widget's width to improve fit */
  max-width: 500px; /* Ensures consistent sizing */
  text-align: center;       /* Ensures text elements inside the widget are centered */
}

/* Mobile View - Stack Widgets Vertically */
@media (max-width: 768px) {
  .responsive-widgets-container {
    flex-direction: column;  /* Stack widgets vertically on small screens */
    gap: 40px;               /* Slightly reduce gap for better fit */
    min-height: 850px;
  }

  .widget {
    max-width: 100%;         /* Use full width on mobile */
    flex: 1 1 auto;          /* Flexible height to avoid cut-off */
  }
}


   /* Additional styles for the chart */
  .tradingview-widget-container__widget {
    width: 100% !important;
    height: 100% !important;
  }

    .tradingview-widget-container {
    width: 100%;
    height: 100% !important; /* Ensure the widget fills its parent container */
    position: relative;
  }

  /* Add this CSS to style the button */
.trade-button {
  background-color: #FF6A00; /* Bybit's orange/gold color */
  width: 100%;
  color: white;
  font-size: 20px;
  margin-top: 10px;
  padding: 15px 30px; /* Increase the padding for a bigger button */
  border: none;
  border-radius: 8px; /* Rounded corners */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s ease-in-out; /* Smooth hover effect */
  text-align: center;
  display: inline-block;
  margin-left: auto;  /* Centers the button horizontally */
  margin-right: auto; /* Centers the button horizontally */
}

.trade-button:hover {
  background-color: #FF4C00; /* Darker shade of orange/gold for hover effect */
  transform: scale(1.01); /* Slightly increase the size on hover */
}

.trade-button:focus {
  outline: none; /* Remove the outline on focus */
}

.trade-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}


.symbol-select-container {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px auto; /* Centers the dropdown */
  width: 100%;        /* Full width for responsiveness */
  max-width: 500px;   /* Limits width on larger screens */
}

.symbol-select-container label {
  margin-right: 10px; /* Adjust the spacing between text and select box */
}

.symbol-select-container select {
  width: 100%; /* Adjust the width of the select box as needed */
}

#symbol-select {
  width: 150px;        /* Ensures dropdown expands for better tap experience */
  padding: 10px 15px; /* Comfortable padding for mobile use */
  font-size: 16px;    /* Larger text for better readability */
  border: 0px solid #0F0F0F; /* Adds a subtle border for visual clarity */
  border-radius: 8px; /* Rounded corners for a modern look */
  background-color: #000; /* Matches your dark theme */
  color: #fff;        /* Text color */
  cursor: pointer;
  outline: none;      /* Removes default focus border */
}

@media (max-width: 768px) {
  .symbol-select-container {
    width: 90%;       /* Use most of the screen width on small devices */
  }

  #symbol-select {
    font-size: 14px;  /* Slightly smaller text for tight spaces */
    padding: 8px 12px; /* Adjust padding for smaller screens */
  }
}

#checklistPopup {
    display: none;
    position: fixed;
    top: 10%;
    right: 15px;
    width: 420px;
    max-width: 90%;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: move;
    transition: transform 0.3s ease-out;
}

#checklistPopup .checklist-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

#checklistPopup .checklist-footer {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

#checklistPopup a.close {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-weight: bold;
}

#checklistPopup a.close:hover {
    color: #d9534f;
}


.oichart {
    padding-top: 60px;
}

.economic-calendar {
  width: 100%;
  max-width: 1200px; /* Adjust this for your preferred maximum width */
  margin: 0 auto; /* Centers the container horizontally */
  padding-top: 60px;
}

/* Container for the checklist */
.checklist-container {
    width: 90vw;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', sans-serif;
    position: fixed;
    top: 10vh;
    right: 15px;
    z-index: 9999;
    display: none; /* Hidden by default */
}

/* Sticky close button wrapper */
.checklist-close-btn {
    position: sticky;
    top: 0;
    text-align: right;
    border-bottom: none;
    z-index: 1;
}

/* Close button itself */
.checklist-close-btn .close {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
}

.checklist-close-btn .close:hover {
    color: #000;
}

/* Checklist content */
.checklist-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 25px;
    margin-top: -25px;
}

.checklist-section {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 5px;
}

.checklist-item {
    margin: 8px 0;
    display: flex;
    align-items: flex-start;
}

.checklist-item input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.checklist-item label {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
    cursor: pointer;
}

/* Floating button to toggle checklist */
#toggleChecklistBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e88e5;
    color: #fff;
    border: none;
    border-radius: 8px; /* Less rounded for a text button */
    padding: 12px 18px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
}


#toggleChecklistBtn:hover {
    background: #1565c0;
}

/* Responsive tweaks for small screens */
@media screen and (max-width: 480px) {
    .checklist-container {
        width: 95vw;
        right: 10px;
        padding: 16px;
    }

    .checklist-close-btn .close {
        font-size: 24px;
    }

    #toggleChecklistBtn {
        font-size: 14px;
        padding: 10px 14px;
        bottom: 15px;
        right: 15px;
    }
}


 .session-timing {
  font-size: 16px;
  line-height: 1.7;
  color: #1c1c1e;
  margin-top: 40px;
}

.session-block {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9fafb;
  border-left: 4px solid #6366f1;
  border-radius: 10px;
}

.session-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111827;
}

.session-content p {
  margin-bottom: 10px;
}

.session-content ul {
  margin: 0 0 10px 20px;
  list-style-type: disc;
}

.clockblock {
  font-family: Arial, sans-serif;
  background: #0f172b;
  line-height: 1.5;
  color: #38BDF8;
  text-align: center;
  padding: 20px;
  padding-left: 30px;
  padding-right: 30px;
  margin-bottom: 20px;
}

.separator {
  font-size: 0.7em; /* smaller, subtle */
  color: rgba(56, 189, 248, 0.5); /* blend with text */
  display: flex;
  justify-content: center; /* horizontal align */
  align-items: center;     /* vertical align */
  text-align: center;      /* makes text centred inside too */
}

/* First line: date, time, week of month */
.clock {
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center; /* horizontal align */
  align-items: center;     /* vertical align */
  text-align: center;      /* makes text centred inside too */
}

/* Second line: overlap and countdowns */
.overlaps, .countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.9em;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Boxes for sessions, overlaps, and countdowns */
.session, .overlap, .countdown-box {
  padding: 15px 20px;
  border-radius: 10px;
  background: #1e1e1e;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  min-width: 220px;
  display: inline-block;
}

/* Active styling */
.active {
 color: #21B26D;
}

.overlap.active {
  background: #f59e0b;
  color: #21B26D;
}

/* Ensure hidden countdown does not break layout */
.countdown-box[style*="display: none"] {
  display: none !important;
}

.toggle-btn {
  margin-top: 15px;
  background: none;
  border: none;
  color: #FFF;
  cursor: pointer;
  font-size: 0.8em;
}

.toggle-btn:hover {
  text-decoration: underline;
}

/* Hidden by default with smooth transition */
.clock-details {
  max-height: 0;
  font-size: 0.9em;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
}

.clock-details.show {
  opacity: 1;
}

.section-header {
      font-weight: bold;
      color: #ffffff;
      font-size: 1.1em;
      margin-bottom: 5px;
      display: block;
    }
    .tooltip {
      position: relative;
      display: inline-block;
      cursor: pointer;
      color: #FFD700;
    }
    .tooltip .tooltiptext {
      visibility: hidden;
      width: 220px;
      background-color: #333;
      color: #fff;
      text-align: left;
      padding: 5px;
      border-radius: 5px;
      position: absolute;
      z-index: 1;
      bottom: 125%;
      left: 50%;
      transform: translateX(-50%);
      opacity: 0;
      transition: opacity 0.3s;
    }
    .tooltip:hover .tooltiptext {
      visibility: visible;
      opacity: 1;
    }
    .region-block {
      margin-bottom: 12px;
    }
    em {
      font-style: normal;
      font-weight: bold;
      margin-bottom: 10px;
      color: #ffffff;
      display: block;
    }