:root {
  --bg-color: #0d1117;
  --text-color: #f0f0f0;
  --accent-color: #00bcd4;
  --card-bg: #161b22;
  --btn-bg: #00bcd4;
  --btn-text: #000000;
  --nav-bg: rgba(13, 17, 23, 0.95);
  --nav-border: #00bcd4;
  --accent-color-rgb: 0, 188, 212;
  --nav-height: 68px;
  --ticker-height: 44px;
}

.light-mode {
  --bg-color: #f5f5f5;
  --text-color: #111111;
  --accent-color: #0077b6;
  --card-bg: #ffffff;
  --btn-bg: #0077b6;
  --btn-text: #ffffff;
  --nav-bg: rgba(245, 245, 245, 0.95);
  --nav-border: #0077b6;
  --accent-color-rgb: 0, 119, 182;
}

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

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  padding-top: calc(var(--nav-height) + var(--ticker-height) - 5px); /* tighter spacing */
}

/* Navigation Styles */
nav {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 2000;
  height: var(--nav-height);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#home {
  padding-top: 1rem; /* reduce top space */
}

.logo {
  min-width: 180px;
}

.logo h1 {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  font-weight: 700;
  margin: 0;
}

.logo p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin: 0;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  padding: 0.4rem;
  position: relative;
  color: var(--text-color);
  transition: all 0.25s ease;
}

.nav-links a:hover {
  background: var(--accent-color);
  color: var(--btn-text);
  text-decoration: none !important;
  border-radius: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 180px;
  justify-content: flex-end;
}

/* Remove all underlines */
a,
.btn {
  text-decoration: none !important;
}

/* Buttons */
.btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.12s ease;
  font-size: 0.95rem;
}

.btn:hover { transform: translateY(-2px); opacity: 0.95; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.45rem 0.9rem;
}

/* Theme toggle */
.theme-toggle {
  cursor: pointer;
  padding: 0.45rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(var(--accent-color-rgb), 0.07);
}

/* Social */
.social a {
  display: flex;
  align-items: center;
  padding: 0.3rem;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.social i {
  font-size: 1.1rem;
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
  display: none;
  z-index: 1001;
}

/* Ticker wrapper - fixed just under nav */
#tickerWrap {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: var(--ticker-height);
  background: linear-gradient(90deg, rgba(0,0,0,0.05), rgba(0,0,0,0.02));
  z-index: 1900;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  backdrop-filter: blur(8px);
}

/* Ensure TradingView widget fits */
#ticker-tape {
  width: 100%;
}

/* Home Section */
#home {
  padding: 2.5rem 1.25rem 2rem;
  background: linear-gradient(to bottom right, var(--card-bg), var(--bg-color));
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 2.1rem;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.tagline {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.performance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.metric-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.metric-card i {
  font-size: 1.6rem;
  color: var(--accent-color);
}

/* Chart Container */
.chart-container {
  height: 420px;
  padding-top: 20px;
}

/* Section Common Styles */
.section {
  padding: 2.25rem 1.25rem;
  max-width: 1200px;
  margin: auto;
}

/* Grid containers */
.trade-grid,
.blog-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.trade-card,
.blog-card,
.service-card {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 10px;
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.trade-card:hover,
.blog-card:hover,
.service-card:hover {
  transform: translateY(-6px);
}

.trade-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trade-date {
  font-size: 0.85rem;
  opacity: 0.7;
}

.trade-outcome {
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
  width: fit-content;
}

.trade-outcome.win {
  background: rgba(0, 200, 0, 0.12);
  color: #00c800;
}

.trade-outcome.loss {
  background: rgba(200, 0, 0, 0.12);
  color: #c80000;
}

.trade-outcome.running {
  background: rgba(255, 190, 0, 0.12);
  color: #ffbf00;
}

/* About Section */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.about-content img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--card-bg);
  padding: 1.25rem;
  border-radius: 10px;
  max-width: 600px;
  margin: auto;
}

form input,
form select,
form textarea {
  padding: 0.7rem;
  border: none;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  background: rgba(255,255,255,0.02);
  color: var(--text-color);
}

/* Footer */
footer {
  background: var(--card-bg);
  text-align: center;
  padding: 0.9rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* === Trade History Filter Styles === */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}

.filters .btn {
  flex-shrink: 0;
}

.date-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
}

.date-group label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.date-group input[type="date"] {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 4px;
  font-size: 0.9rem;
}

.date-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(var(--invert, 0));
  cursor: pointer;
}

/* Light/Dark tweak for date icons */
body.light .date-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0);
}
body.dark .date-group input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}


/* Responsive behavior */
@media (max-width: 1200px) {
  .nav-links { gap: 0.9rem; }
}

@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .chart-container { order: -1; min-height: 300px; }
  .mobile-menu-toggle { display: block; }
  .nav-links { display: none; position: fixed; top: calc(var(--nav-height)); left: 0; right: 0; background: var(--nav-bg); padding: 1rem; text-align: center; flex-direction: column; }
  .nav-links.show { display: flex; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  #tickerWrap { height: 40px; }
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 15px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  background: #16a34a; /* green */
}
.toast.error {
  background: #dc2626; /* red */
}
.hidden {
  display: none;
}

/* Add this to your CSS file */
.trade-outcome.breakeven {
  background: rgba(180, 180, 0, 0.12);
  color: #b4b400;
}

/* Force ticker full width on mobile */
#ticker-tape iframe {
  width: 100% !important;
  min-height: 40px !important;
}

@media (max-width: 480px) {
  #tickerWrap {
    height: auto; 
    min-height: 40px;
    overflow: hidden;
  }
}
/* Trade history responsiveness */
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .date-group {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
  }

  .date-group label {
    flex: 1 1 100%;
    text-align: left;
  }

  .date-group input[type="date"] {
    flex: 1 1 calc(50% - 10px);
    margin-bottom: 8px;
  }

  #historyTable {
    grid-template-columns: 1fr; /* single column on small screens */
  }
}

/* Ensure ticker fully visible on tablets */
@media (min-width: 600px) and (max-width: 1024px) {
  #tickerWrap {
    height: 48px !important;
  }

  #tickerWrap iframe {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
  }

  body {
    padding-top: calc(var(--nav-height) + 48px) !important;
  }
}


/* Fix big gap between ticker and hero section on mobile
@media (max-width: 768px) {
  #home {
    margin-top: 0 !important;
    padding-top: 0.5rem !important; reduce space
  }

  .hero-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: calc(var(--nav-height) + var(--ticker-height) - 15px) !important;
  }
}

Reduce gap between ticker and hero section on mobile screens
@media (max-width: 768px) {
  body {
    Slightly reduce total padding to bring content up
    padding-top: calc(var(--nav-height) + var(--ticker-height) - 10px) !important;
  }

  #home {
    Remove extra top padding
    padding-top: 0.5rem !important;
  }

  .hero-container {
    Reset any margins to eliminate hidden gap
    margin-top: 0 !important;
  }
} */

/* Styles for the new "Market History" page */
.page-content {
    padding-top: calc(var(--nav-height) + var(--ticker-height) + 1.5rem);
}

.search-bar-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-bar-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
}

#searchInput {
    padding: 12px 12px 12px 45px;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--accent-color);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-controls label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.filter-controls select {
    padding: 8px;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;
}

/* New button style for "View All Analysis" */
.view-all-btn {
    margin-top: 1.5rem;
    text-align: center;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#noResults {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 2rem;
}

.hidden {
    display: none;
}

/* Additional mobile responsiveness for the market history page */
@media (max-width: 480px) {
  /* Make the filters stack vertically */
  .filters {
    flex-direction: column;
    align-items: stretch; /* Stretch items to fill the container */
  }

  /* Make the search bar and select menu full-width */
  .search-bar-container,
  .filter-controls {
    width: 100%;
  }

  /* Adjust padding for search input to fit better on small screens */
  #searchInput {
    padding-left: 15px; /* Remove the extra space for the icon, which we'll hide */
    font-size: 0.9rem;
  }
  
  /* Hide the search icon on very small screens to save space */
  .search-bar-container i {
    display: none;
  }
}

/* --- Partnership Page Styles --- */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.partner-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-6px);
}

.partner-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.partner-card h3 {
    margin-bottom: 0.5rem;
}

.partner-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.partner-card .btn {
    margin-top: auto; /* Pushes the button to the bottom */
}

/* Make sure this is in your css file if it's not already */
.page-content {
    padding-top: calc(var(--nav-height) + var(--ticker-height) + 1.5rem);
}

/* Add to your existing style.css file */

.hidden { display: none; }

.report-header {
    text-align: center;
    margin-bottom: 2rem;
}

.report-header p {
    opacity: 0.8;
}

.report-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.report-card h3 {
    color: var(--accent-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(var(--accent-color-rgb), 0.2);
    padding-bottom: 0.5rem;
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.metric-item {
    background: rgba(var(--accent-color-rgb), 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.metric-item strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}

/* Make sure to use the correct classes from your existing CSS for text and buttons */

/* Add to your existing style.css file */

.section-title {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.section-description {
    text-align: center;
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.report-grid {
    display: grid;
    gap: 1.5rem;
}

.report-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.report-card h3 {
    color: var(--accent-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

.summary-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.metric-item {
    background: rgba(var(--accent-color-rgb), 0.07);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-color-rgb), 0.15);
    font-size: 0.9rem;
    text-align: center;
}

.metric-item strong {
    display: block;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
}

.report-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.report-toggle-btn.active {
    transform: rotate(180deg);
}

.report-content {
    display: none;
    margin-top: 1rem;
}

/* For the dropdown functionality using a button */
.report-toggle-button {
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
}

.report-toggle-button:hover {
    background: rgba(var(--accent-color-rgb), 0.2);
}

/* Add to your existing style.css file */

.report-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

#reportSearch {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    transition: border-color 0.2s ease;
}

#reportSearch:focus {
    outline: none;
    border-color: var(--accent-color);
}

.report-card.selected {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.5);
}

/* Watermark styles for PDF export */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: rgba(128, 128, 128, 0.2);
    font-size: 4rem;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

/* Add this to your styles.css */
.report-actions {
    margin-top: 1.5rem; /* Provides space between conclusion and button */
    text-align: right; /* Aligns the button to the right */
}

.download-report-btn {
    /* Existing btn-outline styles should apply, but you can add more specific ones here if needed */
    display: inline-flex; /* Allows icon and text to align */
    align-items: center; /* Vertically aligns icon and text */
    gap: 0.5rem; /* Space between icon and text */
    padding: 0.75rem 1.25rem; /* Adjust padding for a better button size */
    font-size: 0.95rem; /* Adjust font size */
    font-weight: 600; /* Make it a bit bolder */
    border-radius: 8px; /* Slightly more rounded corners */
}

.report-actions {
    margin-top: 1.5rem;
    display: flex; /* Use flexbox to align buttons */
    justify-content: flex-end; /* Align buttons to the right */
    gap: 1rem; /* Add a gap between the buttons */
}
/* 
#report-container .page-content {
    padding-top: 130px;
} */