/* Base styles */
body {
  background: #f8f9fa;
  color: #212529;
  font-family: 'Inter', sans-serif;
  transition: background 0.3s, color 0.3s;
  line-height: 1.4;
  font-size: 0.9rem;
  padding-top: 80px; /* Account for fixed navbar */
}

body.dark-mode {
  background: #1a1a1a;
  color: #ffffff;
}

/* Navbar styles */
.navbar {
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.8rem 0;
  border-bottom: 1px solid #e9ecef;
  transition: background 0.3s, border-color 0.3s;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body.dark-mode .navbar {
  background: #2d2d2d;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  border-bottom: 1px solid #404040;
}

.navbar-brand.shiny-text {
  background: linear-gradient(90deg, #3b82f6 20%, #8b5cf6 40%, #ef4444 80%, #3b82f6 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

@keyframes shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Card styles */
.card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e9ecef;
  background: #ffffff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

body.dark-mode .card {
  background: #2d2d2d;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 1px solid #404040;
}

body.dark-mode .card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.card-header {
  font-weight: 700;
  font-size: 1rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  transition: all 0.3s ease;
  position: relative;
  padding: 1rem 1.25rem;
  letter-spacing: 0.01em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #495057;
}

body.dark-mode .card-header {
  background: #404040;
  border-bottom: 1px solid #555555;
  color: #ffffff;
}

.card-header .heading-animated {
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ef4444);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heading-shine 3s linear infinite;
  display: inline-block;
}

@keyframes heading-shine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.card-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ef4444);
  border-radius: 2px;
  margin: 0.5rem auto 0 auto;
  animation: underline-move 2s linear infinite;
}

@keyframes underline-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.card-footer {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  padding: 1rem 1.5rem;
}

body.dark-mode .card-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-top: 1px solid #475569;
}

/* Button group styles */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.nav-button, .theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  color: #495057;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  min-height: 38px;
  white-space: nowrap;
}

.nav-button:hover, .theme-toggle:hover {
  background: #e9ecef;
  color: #212529;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-color: #adb5bd;
}

@media (max-width: 768px) {
  .button-group {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
  
  .nav-button, .theme-toggle {
    width: calc(50% - 0.25rem);
    justify-content: center;
    font-size: 0.9rem;
    padding: 0.875rem 0.75rem;
    border-radius: 12px;
    margin: 0;
    min-height: 48px;
  }
}

.button-group .nav-button:focus, .button-group .nav-button:active {
  text-decoration: none;
  outline: none;
}

body.dark-mode .button-group .nav-button, 
body.dark-mode .theme-toggle, 
body.dark-mode .refresh-button {
  background: #404040;
  color: #ffffff;
  border: 1px solid #555555;
}

body.dark-mode .button-group .nav-button:hover, 
body.dark-mode .theme-toggle:hover, 
body.dark-mode .refresh-button:hover {
  background: #555555;
  color: #ffffff;
  transform: translateY(-1px);
  border-color: #666666;
}

.button-group .nav-button.active, 
.refresh-button:active, 
.refresh-button:focus {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  outline: none;
}

.refresh-button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.refresh-button i.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Market status styles */
.market-status-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem auto 1rem auto;
  max-width: 800px;
  width: 100%;
  border: 1px solid #e9ecef;
  color: #495057;
  transition: all 0.3s ease;
}

body.dark-mode .market-status-card {
  background: #2d2d2d;
  color: #ffffff;
  border: 1px solid #404040;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Desktop market status card */
@media (min-width: 769px) {
  .market-status-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.2rem 1.5rem;
    margin: 1.5rem auto 1rem auto;
    max-width: 800px;
    width: 100%;
    border: 1px solid #e9ecef;
    color: #495057;
    transition: all 0.3s ease;
  }
  
  .market-indices {
    gap: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

/* Responsive market status card */
@media (max-width: 768px) {
  .market-status-card {
    padding: 1rem 1.2rem;
    margin: 1.2rem auto 0.8rem auto;
    max-width: 85%;
  }
  
  .market-indices {
  gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.index-item {
  min-width: 100px !important;
  padding: 8px !important;
  flex: 1;
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: rgba(0,0,0,0.02);
  margin: 0 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.index-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

body.dark-mode .index-item {
  background-color: rgba(255,255,255,0.05);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

body.dark-mode .index-item:hover {
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}
}

.market-status-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  opacity: 1;
  color: #495057;
  animation: fadeInStatus 1.2s 0.2s forwards;
}

body.dark-mode .market-status-row {
  color: #ffffff;
}

.market-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: none;
}

@keyframes dot-pulse {
  0% { box-shadow: 0 0 8px #ef4444, 0 0 0 0 #ef4444; }
  100% { box-shadow: 0 0 16px #ef4444, 0 0 0 6px rgba(239,68,68,0.2); }
}

.market-dot.open {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: dot-pulse-open 1.2s infinite alternate;
}

@keyframes dot-pulse-open {
  0% { box-shadow: 0 0 8px #10b981, 0 0 0 0 #10b981; }
  100% { box-shadow: 0 0 16px #10b981, 0 0 0 6px rgba(16,185,129,0.2); }
}

.market-status-time {
  font-size: 0.85rem;
  font-weight: 400;
  color: #6c757d;
  margin-top: 0.2rem;
  text-align: center;
}

body.dark-mode .market-status-time {
  color: #cccccc;
}

/* Stock item styles */
.stock-item {
  border-bottom: 1px solid #e9ecef;
  padding: 1.2rem 1rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent;
  font-size: 0.85rem;
  color: #495057;
}

.stock-item:nth-child(even) {
  background: #f8f9fa;
}

body.dark-mode .stock-item:nth-child(even) {
  background: #333333;
}

body.dark-mode .stock-item {
  border-bottom: 1px solid #404040;
  color: #ffffff;
}

.stock-item:hover {
  background: #e9ecef;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transform: translateX(4px);
}

body.dark-mode .stock-item:hover {
  background: #404040;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.stock-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.stock-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #212529;
  margin-left: 0;
}

body.dark-mode .stock-name {
  color: #ffffff;
}

.stock-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.8rem;
  margin-left: 0;
  margin-top: 0.2rem;
  justify-content: flex-start;
  text-align: left;
  color: #6c757d;
}

.stock-details span b {
  font-weight: 600;
  color: #495057;
}

body.dark-mode .stock-details span b {
  color: #ffffff;
}

/* Badge styles */
.badge-profit {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.75rem;
  margin-bottom: 0.25rem;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(16,185,129,0.25);
}

.badge-exit {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  margin-right: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}

/* Loading spinner */
.spinner {
  display: block;
  margin: 2rem auto;
  width: 3rem;
  height: 3rem;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

body.dark-mode .spinner {
  border: 4px solid #475569;
  border-top: 4px solid #60a5fa;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
}

.toast {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-bottom: 0.75rem;
  font-weight: 500;
  opacity: 0.95;
  animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translateY(-20px); }
  10% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* Exit status icons */
.exit-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border-radius: 0;
  padding: 0;
  margin-left: 0.5rem;
}

body.dark-mode .exit-status-icons {
  background: none;
}

.exit-status-icons span {
  font-size: 1.2rem;
  margin-right: 0.25rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Market status dots */
.dot-about { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.dot-pre { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.dot-open { background: #10b981; box-shadow: 0 0 16px #10b981, 0 0 0 6px rgba(16,185,129,0.2); }
.dot-post { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.dot-closed { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* View all link */
.view-all-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: #eff6ff;
  display: inline-block;
  margin-top: 1rem;
}

.view-all-link:hover {
  color: #1d4ed8;
  text-decoration: none;
  background: #dbeafe;
  transform: translateY(-1px);
}

body.dark-mode .view-all-link {
  color: #60a5fa;
  background: #1e293b;
}

body.dark-mode .view-all-link:hover {
  color: #93c5fd;
  background: #334155;
}

/* Professional Footer */
.footer {
  background: #f8f9fa;
  color: #495057;
  padding: 3rem 0 1rem 0;
  margin-top: 4rem;
  border-top: 1px solid #dee2e6;
}

body.dark-mode .footer {
  background: #1a1a1a;
  color: #ffffff;
  border-top: 1px solid #333333;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-section h3 {
  color: #495057;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.footer-section p {
  color: #6c757d;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  font-size: 0.85rem;
  text-align: left;
}

.footer-section a {
  color: #6c757d;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-align: left;
}

.footer-section a:hover {
  color: #212529;
}

body.dark-mode .footer-section h3 {
  color: #ffffff;
}

body.dark-mode .footer-section p {
  color: #999999;
}

body.dark-mode .footer-section a {
  color: #cccccc;
}

body.dark-mode .footer-section a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #dee2e6;
  padding: 1rem 1rem 0 1rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6c757d;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
}

body.dark-mode .footer-bottom {
  border-top: 1px solid #333333;
  color: #999999;
}

/* Newsletter subscription styles */
.newsletter-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  width: 100%;
}

.newsletter-input {
  background: #ffffff;
  border: 1px solid #dee2e6;
  color: #495057;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  flex: 1;
  min-width: 150px;
}

.newsletter-input::placeholder {
  color: #adb5bd;
}

body.dark-mode .newsletter-input {
  background: #333333;
  border: 1px solid #444444;
  color: #ffffff;
}

body.dark-mode .newsletter-input::placeholder {
  color: #999999;
}

.newsletter-button {
  background: #8b5cf6;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-button:hover {
  background: #7c3aed;
}

/* Social media icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  color: #6c757d;
  font-size: 1.2rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
}

.social-icons a:hover {
  color: #495057;
}

body.dark-mode .social-icons a {
  color: #ffffff;
}

body.dark-mode .social-icons a:hover {
  color: #8b5cf6;
}

/* Responsive design */
@media (max-width: 768px) {
  html, body {
    font-size: 14px;
  }
  
  body {
    padding-top: 60px; /* Reduced padding for mobile navbar */
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .card-header {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  
  .stock-name {
    font-size: 0.9rem;
  }
  
  .stock-details {
    font-size: 0.85rem;
    gap: 0.8rem;
  }
  
  .container {
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  
  /* Market status card improvements for mobile */
  .market-status-card {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .market-indices {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  
  .index-item {
    padding: 0.5rem;
    min-width: 120px;
  }
  
  /* Table improvements for mobile */
  table.table {
    font-size: 0.9rem;
  }
  
  /* Hide button group on mobile - will be in mobile menu */
  .button-group {
    display: none;
  }
  
  /* Mobile menu button */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.4rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.3s;
    margin-left: auto;
  }
  
  .mobile-menu-btn:hover {
    color: #007bff;
  }
  
  body.dark-mode .mobile-menu-btn:hover {
    color: #4dabf7;
  }
  
  /* Mobile menu overlay improvements */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 1050;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .mobile-menu-overlay.active {
    right: 0;
  }
  
  body.dark-mode .mobile-menu-overlay {
    background: #1a1a1a;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
  }
  
  .mobile-menu-backdrop.active {
    display: block;
  }
  
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  body.dark-mode .mobile-menu-header {
    border-bottom-color: #333333;
  }
  
  .mobile-menu-title {
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: inherit;
    cursor: pointer;
  }
  
  .mobile-menu-items {
    padding: 0.5rem 0;
  }
  
  .mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s;
  }
  
  .mobile-menu-item:hover {
    background-color: #f8f9fa;
    text-decoration: none;
  }
  
  body.dark-mode .mobile-menu-item {
    border-bottom-color: #333333;
  }
  
  body.dark-mode .mobile-menu-item:hover {
    background-color: #2c2c2c;
  }
  
  .mobile-menu-item i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
  }
  
  .mobile-menu-item.active {
    background-color: #e9f5ff;
    color: #007bff;
    font-weight: 500;
  }
  
  body.dark-mode .mobile-menu-item.active {
    background-color: #0d2137;
    color: #4dabf7;
  }
  
  .mobile-theme-toggle {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e9ecef;
    margin-top: 0.5rem;
  }
  
  body.dark-mode .mobile-theme-toggle {
    border-top-color: #333333;
  }
  
  /* Mobile stock search styles */
  .mobile-search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  
  .mobile-search-container.active {
    transform: translateY(0);
  }
  
  body.dark-mode .mobile-search-container {
    background-color: #1a1a1a;
    color: #e6e6e6;
  }
  
  .mobile-search-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  body.dark-mode .mobile-search-header {
    border-bottom-color: #333333;
  }
  
  .mobile-search-back {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .mobile-search-title {
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .mobile-search-input-container {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  body.dark-mode .mobile-search-input-container {
    border-bottom-color: #333333;
  }
  
  .mobile-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f8f9fa;
  }
  
  body.dark-mode .mobile-search-input {
    background-color: #23272b;
    border-color: #333333;
    color: #e6e6e6;
  }
  
  .mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
  }
  
  .mobile-search-results .search-result-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
  }
  
  body.dark-mode .mobile-search-results .search-result-row {
    border-bottom-color: #333333;
  }
  
  .mobile-search-results .search-result-row:hover {
    background-color: #f8f9fa;
  }
  
  body.dark-mode .mobile-search-results .search-result-row:hover {
    background-color: #23272b;
  }
  
  .mobile-search-results .search-symbol {
    font-weight: 600;
    margin-right: 0.5rem;
    min-width: 60px;
  }
  
  .mobile-search-results .search-company {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
  }
  
  .mobile-search-results .search-price {
    font-weight: 600;
    margin-right: 0.5rem;
  }
  
  .mobile-search-results .search-change {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    min-width: 60px;
    text-align: right;
  }
  
  .mobile-search-results .search-change.positive {
    background-color: #e6f9ed;
    color: #22c55e;
  }
  
  .mobile-search-results .search-change.negative {
    background-color: #ffeaea;
    color: #ef4444;
  }
  
 .mobile-search-results .stock-link {
    color: inherit;
    text-decoration: none;
  }
  
  body.dark-mode .mobile-search-results .stock-link {
    color: #e6e6e6;
  }
  
  body.dark-mode .mobile-search-results .search-result-row:hover .stock-link {
    color: #60a5fa;
  }
  
  /* Hide mobile menu button on desktop */
@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

/* Additional desktop hide rule for higher specificity */
@media (min-width: 769px) {
  .navbar .mobile-menu-btn {
    display: none !important;
  }
}
  
  /* Mobile menu overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }
  
  body.dark-mode .mobile-menu-overlay {
    background: #2d2d2d;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
  }
  
  .mobile-menu-overlay.active {
    right: 0;
  }
  
  /* Mobile menu header */
  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  body.dark-mode .mobile-menu-header {
    border-bottom: 1px solid #404040;
  }
  
  .mobile-menu-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
  }
  
  body.dark-mode .mobile-menu-title {
    color: #ffffff;
  }
  
  .mobile-menu-close {
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
  }
  
  .mobile-menu-close:hover {
    color: #212529;
  }
  
  body.dark-mode .mobile-menu-close:hover {
    color: #ffffff;
  }
  
  /* Mobile menu items */
  .mobile-menu-items {
    padding: 1rem 0;
  }
  
  .mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #212529;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    border-bottom: 1px solid #f8f9fa;
  }
  
  body.dark-mode .mobile-menu-item {
    color: #ffffff;
    border-bottom: 1px solid #404040;
  }
  
  .mobile-menu-item:hover {
    background: #f8f9fa;
    color: #007bff;
  }
  
  body.dark-mode .mobile-menu-item:hover {
    background: #404040;
    color: #4dabf7;
  }
  
  .mobile-menu-item i {
    margin-right: 1rem;
    width: 1.2rem;
    text-align: center;
  }
  
  /* Mobile menu theme toggle */
  .mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
  }
  
  body.dark-mode .mobile-theme-toggle {
    border-top: 1px solid #404040;
  }
  
  .mobile-theme-toggle span {
    color: #212529;
    font-weight: 500;
  }
  
  body.dark-mode .mobile-theme-toggle span {
    color: #ffffff;
  }
  
  /* Backdrop overlay */
  .mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }
  
  .mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
  }
  
  .view-all-link {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  
  .toast {
    font-size: 0.8rem;
  }
  
  .market-status-card {
    margin: 1.2rem auto 0.8rem auto;
    padding: 1rem 1.2rem;
    max-width: 85%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 100%;
  }
  
  .footer {
    padding: 2rem 0 1.5rem 0;
    margin-top: 3rem;
  }
}

/* Tablet responsive design for footer */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Animation keyframes */
@keyframes fadeInStatus {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInBlast {
  0% {
    opacity: 0;
    transform: translateX(100vw) scale(1);
  }
  80% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.market-status-card.animate-blast {
  animation: slideInBlast 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Confetti overlay */
.confetti-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.7s;
  opacity: 1;
}

.confetti-overlay.fade-out {
  opacity: 0;
  transition: opacity 1.2s;
} 

/* Dark mode table overrides */
body.dark-mode table.table {
  background-color: #1e293b;
  color: #e2e8f0;
}

body.dark-mode table.table thead {
  background-color: #1e293b;
  color: #e2e8f0;
}

body.dark-mode table.table th,
body.dark-mode table.table td {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

body.dark-mode table.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #334155;
}

body.dark-mode table.table-striped > tbody > tr:nth-of-type(even) {
  background-color: #1e293b;
}

body.dark-mode table.table-hover > tbody > tr:hover {
  background-color: #475569;
  color: #ffffff;
}

body.dark-mode .table-responsive {
  background: none;
} 

/* Search dropdown styles */
.search-dropdown {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 0.75rem;
  min-width: 400px;
  width: 420px;
  border: 1px solid #e2e8f0;
}

.search-results-list {
  max-height: 320px;
  overflow-y: auto;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
  margin-bottom: 0.25rem;
}

.search-result-row:hover {
  background: #f8f9fa;
  transform: translateX(4px);
}

.search-symbol {
  font-weight: 700;
  color: #3b82f6;
  font-size: 0.95rem;
  min-width: 70px;
  letter-spacing: 0.02em;
}

.search-company {
  color: #495057;
  font-size: 0.9rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  display: block;
}

.search-price {
  color: #374151;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.search-change {
  min-width: 60px;
  text-align: right;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
}

.search-change.positive {
  color: #10b981;
  background: rgba(16,185,129,0.1);
}

.search-change.negative {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
} 

/* Dark mode search styles */
body.dark-mode .search-dropdown {
  background: #1e293b;
  border: 1px solid #475569;
}

body.dark-mode .search-result-row {
  background: #1e293b;
}

body.dark-mode .search-result-row:hover {
  background: #334155;
}

body.dark-mode .search-symbol {
  color: #60a5fa;
}

body.dark-mode .search-company {
  color: #e2e8f0;
}

body.dark-mode .search-price {
  color: #d1d5db;
}

body.dark-mode .search-change.positive {
  color: #34d399;
  background: rgba(52,211,153,0.1);
}

body.dark-mode .search-change.negative {
  color: #f87171;
  background: rgba(248,113,113,0.1);
} 

/* Gainers/Losers Table Enhancements */
.gain {
  color: #10b981 !important;
  font-weight: 700;
}

.loss {
  color: #ef4444 !important;
  font-weight: 700;
}

.number-mono {
  font-family: 'JetBrains Mono', 'Fira Mono', 'Menlo', 'Consolas', monospace;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.top-row {
  background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, rgba(239,68,68,0.1) 100%);
}

.table-hover > tbody > tr:hover {
  background: #eff6ff !important;
  transition: background 0.3s ease;
}

body.dark-mode .table-hover > tbody > tr:hover {
  background: #334155 !important;
}

.top-row td, .top-row th {
  border-top: 2px solid #3b82f6;
} 

/* Stock links look like normal text but are clickable */
.stock-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.3s ease;
}

.stock-link:hover, .stock-link:focus {
  color: #3b82f6;
  text-decoration: underline;
} 

/* Profits Table UI Improvements */
:root {
  --profits-table-bg: #ffffff;
  --profits-table-header-bg: #f8fafc;
  --profits-table-header-color: #1e293b;
  --profits-table-row-bg: #ffffff;
  --profits-table-row-hover: #f8fafc;
  --profits-table-text: #1e293b;
  --profits-table-divider: #e2e8f0;
}

.dark-mode {
  --profits-table-bg: #1e293b;
  --profits-table-header-bg: #334155;
  --profits-table-header-color: #e2e8f0;
  --profits-table-row-bg: #1e293b;
  --profits-table-row-hover: #334155;
  --profits-table-text: #e2e8f0;
  --profits-table-divider: #475569;
}

.profits-table {
  font-size: 0.85rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--profits-table-bg);
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
}

.profits-table thead th {
  background: var(--profits-table-header-bg);
  color: var(--profits-table-header-color);
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 2px solid var(--profits-table-divider);
  padding: 0.8rem 1rem;
}

.profits-table tbody td {
  color: var(--profits-table-text);
  background: var(--profits-table-row-bg);
  padding: 0.7rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--profits-table-divider);
}

.profits-table tbody tr:hover {
  background: var(--profits-table-row-hover);
  transition: background 0.3s ease;
}

.profits-table thead tr {
  border-bottom: 2px solid var(--profits-table-divider);
}

@media (max-width: 900px) {
  .profits-table {
    font-size: 0.8rem;
  }
  
  .profits-table thead th, .profits-table tbody td {
    padding: 0.6rem 0.8rem;
  }
}

/* Target pill styles */
.target-pill {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  border: 1px solid #d1d5db;
}

.target-pill-green {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

body.dark-mode .target-pill {
  background: #374151;
  color: #d1d5db;
  border-color: #6b7280;
}

body.dark-mode .target-pill-green {
  background: #064e3b;
  color: #34d399;
  border-color: #10b981;
}

/* Price color classes */
.price-green {
  color: #10b981 !important;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.price-red {
  color: #ef4444 !important;
  font-weight: 700;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Highlight styles */
.highlight {
  color: #ffffff;
  background: #3b82f6;
  font-weight: bold;
  border-radius: 4px;
  padding: 0 3px;
}

body.dark-mode .highlight {
  color: #1e293b;
  background: #8b5cf6;
}

/* Search input styles */
.search-input-nav {
  color: #1e293b !important;
  background: #ffffff !important;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.search-input-nav::placeholder {
  color: #6b7280 !important;
  opacity: 1;
}

.search-input-nav:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

body.dark-mode .search-input-nav {
  color: #e2e8f0 !important;
  background: #1e293b !important;
  border: 2px solid #3b82f6;
}

body.dark-mode .search-input-nav::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

@media (max-width: 768px) {
  .search-input-nav {
    font-size: 0.9rem;
    padding: 0.875rem 0.75rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    width: 100%;
  }
}

/* Status badge styles */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.status-profit {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.status-exit {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.status-hold {
  background: #dbeafe;
  color: #1e40af;
}

body.dark-mode .status-badge.status-profit {
  background: #064e3b;
  color: #34d399;
}

body.dark-mode .status-badge.status-exit {
  background: #7f1d1d;
  color: #fca5a5;
}

body.dark-mode .status-badge.status-hold {
  background: #1e3a8a;
  color: #93c5fd;
}

/* Stats badge styles */
.stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.stats-badge-total {
  background: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

.stats-badge-buy {
  background: #d1fae5;
  color: #065f46;
  border-color: #10b981;
}

.stats-badge-sell {
  background: #fee2e2;
  color: #991b1b;
  border-color: #ef4444;
}

.stats-badge-hold {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

body.dark-mode .stats-badge {
  background: #374151;
  color: #d1d5db;
  border-color: #6b7280;
}

body.dark-mode .stats-badge-total {
  background: #1e3a8a;
  color: #93c5fd;
  border-color: #3b82f6;
}

body.dark-mode .stats-badge-buy {
  background: #064e3b;
  color: #34d399;
  border-color: #10b981;
}

body.dark-mode .stats-badge-sell {
  background: #7f1d1d;
  color: #fca5a5;
  border-color: #ef4444;
}

body.dark-mode .stats-badge-hold {
  background: #78350f;
  color: #fbbf24;
  border-color: #f59e0b;
}

/* Utility classes */
.text-muted {
  color: #6b7280 !important;
}

body.dark-mode .text-muted {
  color: #9ca3af !important;
}

.text-danger {
  color: #ef4444 !important;
}

body.dark-mode .text-danger {
  color: #f87171 !important;
}

.text-center {
  text-align: center !important;
}

.p-3 {
  padding: 1rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-md-0 {
  margin-bottom: 0 !important;
}

@media (min-width: 768px) {
  .mb-md-0 {
    margin-bottom: 0 !important;
  }
}

.h-100 {
  height: 100% !important;
}

.p-0 {
  padding: 0 !important;
}

.d-flex {
  display: flex !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-center {
  align-items: center !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -1rem;
  margin-left: -1rem;
  width: 100%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 1rem;
  padding-left: 1rem;
}

@media (max-width: 767.98px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.container {
    width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 85%;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 88%;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 92%;
  }
}

/* Table responsive styles */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  vertical-align: top;
  border-color: #dee2e6;
}

.table > :not(caption) > * > * {
  padding: 0.5rem 0.5rem;
  background-color: transparent;
  border-bottom-width: 1px;
  box-shadow: inset 0 0 0 9999px transparent;
}

.table > tbody {
  vertical-align: inherit;
}

.table > thead {
  vertical-align: bottom;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(0, 0, 0, 0.05);
  color: var(--bs-table-striped-color);
}

.table-hover > tbody > tr:hover > * {
  --bs-table-hover-bg: rgba(0, 0, 0, 0.075);
  color: var(--bs-table-hover-color);
}

.table > :not(:first-child) {
  border-top: 2px solid currentColor;
}

.align-middle {
  vertical-align: middle !important;
}

/* Form control styles */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

body.dark-mode .form-control {
  color: #ffffff;
  background-color: #333333;
  border: 1px solid #404040;
}

body.dark-mode .form-control:focus {
  color: #ffffff;
  background-color: #333333;
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.25);
}

/* Button styles */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-link {
  font-weight: 400;
  color: #0d6efd;
  text-decoration: underline;
}

.btn-link:hover {
  color: #0a58ca;
}

.p-0 {
  padding: 0 !important;
}

/* Bootstrap utilities */
.mb-2 {
  margin-bottom: 0.5rem !important;
}

/* Additional utility classes */
.text-muted {
  color: #6c757d !important;
}

.text-danger {
  color: #dc3545 !important;
}

.text-center {
  text-align: center !important;
}

.p-3 {
  padding: 1rem !important;
}

/* Responsive utilities */
@media (max-width: 767.98px) {
  .d-md-none {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .d-md-block {
  display: block !important;
  }
} 

/* Feature cards for about page */
.feature-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.dark-mode .feature-card {
  background: #2d2d2d;
  border: 1px solid #404040;
}

body.dark-mode .feature-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
} 

/* Usage cards for privacy page */
.usage-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
}

.usage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.dark-mode .usage-card {
  background: #2d2d2d;
  border: 1px solid #404040;
}

body.dark-mode .usage-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
} 

/* Active theme toggle animation */
.active-theme-toggle {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

body.dark-mode .active-theme-toggle {
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.3);
}

/* Force hide mobile menu button on desktop - highest specificity */
@media (min-width: 769px) {
  html body .navbar .container .mobile-menu-btn,
  html body .navbar .container button.mobile-menu-btn,
  html body .navbar .container #mobileMenuBtn,
  html body .navbar .container button#mobileMenuBtn,
  .navbar .mobile-menu-btn,
  .mobile-menu-btn,
  button.mobile-menu-btn,
  .navbar button.mobile-menu-btn,
  #mobileMenuBtn,
  .navbar #mobileMenuBtn,
  button#mobileMenuBtn,
  .navbar button#mobileMenuBtn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    transform: scale(0) !important;
    max-width: 0 !important;
    max-height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
  
  /* Hide mobile menu overlay and all its contents on desktop */
  .mobile-menu-overlay,
  .mobile-menu-backdrop,
  .mobile-menu-header,
  .mobile-menu-items,
  .mobile-menu-item,
  .mobile-theme-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
    transform: scale(0) !important;
    max-width: 0 !important;
    max-height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
  }
}

/* Additional desktop hide rules with different breakpoints */
@media (min-width: 768px) {
  .mobile-menu-btn,
  #mobileMenuBtn {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .mobile-menu-btn,
  #mobileMenuBtn {
    display: none !important;
  }
}

@media (min-width: 1200px) {
  .mobile-menu-btn,
  #mobileMenuBtn {
    display: none !important;
  }
}

/* Market Overview */
.dashboard-overview {
  margin-top: 50px;
}

.dashboard-overview h2 {
  margin-bottom: 20px;
  color: #333;
  font-weight: 600;
}

body.dark-mode .dashboard-overview h2 {
  color: #e9ecef;
}

@media (max-width: 768px) {
  .dashboard-overview {
    margin-top: 20px;
  }
  
  .dashboard-overview h2 {
    font-size: 1.5rem !important;
    margin-bottom: 15px;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  table.table th, 
  table.table td {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }
}