body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: 'Special Elite', monospace;
  background: url('/images/mainBackground.png') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}
 
.container {
  width: 100%;
  max-width: 1200px;
  margin-top: 10px;
  padding: 20px;
  margin-top: 60px;
  box-sizing: border-box;
}

.title-section {
  color: #fbfbfb;
  text-align: center;
  font-size: 24px;
}

.title-section-free {
  color: #fbfbfb;
  background: #00d018d8;
  text-align: center;
  font-size: 24px;
}

.title-section-premium {
  color: #fbfbfb;
  background: #006effd8;
  text-align: center;
  font-size: 24px;
}

.title-section-data {
  color: #fbfbfb;
  background: #ffae00d8;
  text-align: center;
  font-size: 24px;
}

.title-section h2 {
  text-align: center;
  font-size: 20px;
}
 
.topcontent {
  display: grid;
  grid-template-columns: 300px 1fr; /* Fixed width for fear/greed, flexible for calendar */
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}

.middlecontent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}
 
.bottomcontent {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}
 /* Fear and Greed Card */
 .fear-greed-card {
  width: 100%;
  background-color: rgb(255, 255, 255);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 200px; /* Fixed height */
}

.fear-greed-card h2 {
  margin: 0;
  font-size: 1.2rem;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
 
.fear-greed-value p {
  margin: 5px 0;
  font-size: 14px;
}


 /* Market Data Section Styles */
.market-data-section {
  grid-column: 1 / -1;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-sizing: border-box;
}


.market-data-section h2 {
  color: #fbfbfb;
  margin-bottom: 20px;
  text-align: center;
  font-size: 24px;
}

.market-data-container {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  margin-bottom: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.market-data-container h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
  border-bottom: 2px solid #4CAF50;
  padding-bottom: 5px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.market-data-container table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 600px;
}

.market-data-container th {
  background-color: #4CAF50;
  color: black;
  font-weight: bold;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.market-data-container td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  white-space: nowrap;
}


.market-data-container tr:nth-child(even) {
  background-color: rgba(242, 242, 242, 0.8);
}

.market-data-container tr:hover {
  background-color: rgba(221, 221, 221, 0.8);
}

/* Market Data Specific Styling */
.market-data-container td.positive {
  color: #00C851;
  font-weight: bold;
}

.market-data-container td.negative {
  color: #ff4444;
  font-weight: bold;
}

/* Scrollbar Styling for Market Data */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

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

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.toggle-btn {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.toggle-btn:hover {
  background-color: #45a049;
}

.hidden {
  display: none;
}

/* Responsive Design for Market Data */
@media (max-width: 1200px) {
  .market-data-section {
      padding: 15px;
  }
  
  .market-data-container {
      padding: 15px;
  }
}

@media (max-width: 768px) {

  .market-data-section {
      padding: 10px;
  }
  
  .market-data-container {
      padding: 10px;
  }

  .title-section-free {
    color: #fbfbfb;
    background: #00d018d8;
    text-align: center;
    font-size: 20px;
    max-width: 400px;
  }
  
  .title-section-premium {
    color: #fbfbfb;
    background: #006effd8;
    text-align: center;
    font-size: 20px;
    max-width: 400px;
  }

  .title-section-data {
    color: #fbfbfb;
    background: #ffae00d8;
    text-align: center;
    font-size: 20px;
    max-width: 400px;
  }

  .market-data-section{
    max-width: 400px;
    margin-bottom: 100px;
  }

  .market-data-container th,
  .market-data-container td {
      padding: 8px;
      font-size: 14px;
  }
  
  .market-data-section h2 {
      font-size: 20px;
  }
  
  .market-data-container h3 {
      font-size: 16px;
  }
}

@media (max-width: 480px) {
  .market-data-container th,
  .market-data-container td {
      padding: 6px;
      font-size: 12px;
  }
  
  .market-data-section h2 {
      font-size: 18px;
  }
  
  .market-data-container h3 {
      font-size: 14px;
  }
}
 
 /* Market Section Cards */
 .market-section {
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-sizing: border-box;
 }
 
 .market-cards {
  display: flex;
  flex-wrap: nowrap;
  background-color: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
  padding: 10px 0;
  -webkit-overflow-scrolling: touch;
 }
 
 .market-card {
  flex: 0 0 auto;
  width: 160px;
  height: auto;
  min-height: 150px;
  margin: 0 8px;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  white-space: normal;
  transition: transform 0.3s ease;
  box-sizing: border-box;
  
 }

 .newsletter-container {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
  
}

.newsletter-card {
  background-color: rgba(233, 233, 233, 0.9);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  
}

.newsletter-card.free {
  border-left: 5px solid #28a745;
}

.newsletter-card.premium {
  border-left: 5px solid #007bff;
}

/* Only style tables that need horizontal scroll */
.newsletter-card table {
  width: 100%;
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
}

/* Maintain the prompt's table styles but add scrolling */
.newsletter-card table td, 
.newsletter-card table th {
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .newsletter-card {
      padding: 15px;
      
  }

  .newsletter-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0px 0;
    max-width: 400px;
    }

    .newsletter-card h1 {
      font-size: 18px;
    }

    .newsletter-card h2 {
      font-size: 16px;
    }

    

    .newsletter-card p {
      font-size: 14px;
    }
}
 
 /* Calendar Event Card Styles */
 .market-card.high {
  border-left: 3px solid #ff4444;
 }
 
 .market-card.medium {
  border-left: 3px solid #ffbb33;
 }
 
 .market-card.low {
  border-left: 3px solid #00C851;
 }
 
 /* Trading Setup Card Styles */
 .market-card.bullish {
  border-left: 3px solid #00C851;
 }
 
 .market-card.bearish {
  border-left: 3px solid #ff4444;
 }
 
 .market-card.neutral {
  border-left: 3px solid #33b5e5;
 }
 
 .market-card h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 16px;
  font-weight: bold;
 }
 
 .market-card p {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.3;
 }
 
 .importance-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
 }
 
 /* Table Container Styles */
 .table-container {
  width: 100%;
  overflow-x: auto;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 60px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  grid-column: 1 / -1;
 }
 
 table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
 }
 
 th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
  white-space: nowrap;
 }
 
 th {
  background-color: #4CAF50;
  color: rgb(0, 0, 0);
  position: sticky;
  top: 0;
  z-index: 10;
 }
 
 tr:nth-child(even) {
  background-color: rgba(242, 242, 242, 0.8);
 }
 
 tr:hover {
  background-color: rgba(221, 221, 221, 0.8);
 }
 
 /* Sentiment Colors */
 td.positive {
  color: #00C851;
 }
 
 td.negative {
  color: #ff4444;
 }
 
 /* Scrollbar Styles */
 .market-cards::-webkit-scrollbar {
  height: 8px;
 }
 
 .market-cards::-webkit-scrollbar-track {
  background: #f1f1f1;
 }
 
 .market-cards::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
 }
 
 .market-cards::-webkit-scrollbar-thumb:hover {
  background: #555;
 }
 
 /* Risk Assessment Content */
 .risk-content {
  padding: 10px;
  line-height: 1.6;
 }
 
 .risk-content p {
  margin: 8px 0;
 }

 .headline-item, .action-item {
  padding: 12px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  border-left: 3px solid #4CAF50;
}

.headline-item strong, .action-item strong {
  color: #333;
  display: inline-block;
  margin-right: 8px;
}

tr.bullish {
  background-color: rgba(0, 200, 81, 0.1);
}

tr.bearish {
  background-color: rgba(255, 68, 68, 0.1);
}

tr.neutral {
  background-color: rgba(51, 181, 229, 0.1);
}

.table-container table td {
  vertical-align: top;
}

.table-container table td p {
  margin: 4px 0;
}

.prompt-container {
display: flex;
flex-direction: column;
gap: 20px;
margin: 20px 0;
}

.disocrd-container {
display: flex;
flex-direction: column;
gap: 20px;
margin: 20px 0;
}


.newsletter-container {
display: flex;
flex-direction: column;
gap: 20px;
margin: 20px 0;
}

/* Styling for individual prompt cards */
.prompt-card {
background-color: #f9f9f9; /* Light background for visibility */
border: 1px solid #ddd; /* Subtle border */
border-radius: 8px; /* Rounded corners */
padding: 15px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Slight shadow */
}

/* Premium card differentiation */
.prompt-card.premium {
border-left: 5px solid #007bff; /* Highlight for premium */
}

/* Free card differentiation */
.prompt-card.free {
border-left: 5px solid #28a745; /* Highlight for free */
}

/* Prompt response text styling */
.prompt-response {
color: #333; /* Dark text for readability */
font-size: 1rem;
line-height: 1.5;
margin-top: 10px;
}

.discord-container {
grid-column: 1 / -1;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 8px;
padding: 20px;
border-left: 5px solid #7289DA; /* Discord brand color */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.discord-container h2 {
color: #7289DA;
margin-bottom: 20px;
}

.discord-messages {
display: flex;
flex-direction: column;
gap: 10px;
max-height: 600px;
overflow-y: auto;
}

.discord-message {
background: rgba(255, 255, 255, 0.8);
border-radius: 6px;
padding: 12px;
border: 1px solid #e1e1e1;
}

.message-header {
display: flex;
gap: 10px;
align-items: center;
margin-bottom: 8px;
font-size: 0.9rem;
}

.author {
font-weight: bold;
color: #7289DA;
}

.channel {
color: #666;
}

.timestamp {
color: #999;
font-size: 0.8rem;
margin-left: auto;
}

.message-content {
line-height: 1.4;
margin: 8px 0;
}

.message-footer {
display: flex;
justify-content: flex-end;
font-size: 0.8rem;
}

.sentiment-score {
padding: 2px 6px;
border-radius: 4px;
background: #f5f5f5;
}

/* Sentiment colors */
.discord-message.positive {
border-left: 3px solid #28a745;
}

.discord-message.negative {
border-left: 3px solid #dc3545;
}

.discord-message.neutral {
border-left: 3px solid #6c757d;
}

/* Scrollbar styling */
.discord-messages::-webkit-scrollbar {
width: 8px;
}

.discord-messages::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 4px;
}

.discord-messages::-webkit-scrollbar-thumb {
background: #7289DA;
border-radius: 4px;
}

.discord-messages::-webkit-scrollbar-thumb:hover {
background: #677bc4;
}
 
 /* Media Queries */
 @media (max-width: 1200px) {
  .container {
    padding: 0 15px;
  }
  
  .content {
    grid-template-columns: 1fr;
  }
 }
 
 @media (max-width: 768px) {
  .content {
    margin-top: 40px;
  }

 
  .market-card {
    width: 150px;
    min-height: 140px;
    padding: 10px;
  }
  
  .market-card h3 {
    font-size: 15px;
  }
  
  .market-card p {
    font-size: 12px;
  }
 
  th, td {
    padding: 8px;
    font-size: 14px;
  }
 }
 
 @media (max-width: 480px) {
  .content {
    margin-top: 30px;
  }
 
  .container {
    padding: 0 10px;
  }
 
  .market-section,
  .fear-greed-card,
  .table-container {
    padding: 15px;
  }
 
  .market-card {
    width: 140px;
    min-height: 130px;
    padding: 8px;
    margin: 0 4px;
  }
 
  .market-card h3 {
    font-size: 13px;
  }
 
  .market-card p {
    font-size: 11px;
  }
 
  th, td {
    padding: 6px;
    font-size: 12px;
  }
 }

 .calendar-events {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 200px; /* Match fear-greed-card height */
}

.calendar-events h2 {
  margin: 0;
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.calendar-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  margin-top: 10px;
}

.calendar-event {
  background: white;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 4px solid #ddd;
}

.calendar-event:hover {
  transform: translateX(4px);
}

.calendar-event.high {
  border-left-color: #ff4444;
}

.calendar-event.medium {
  border-left-color: #ffbb33;
}

.calendar-event.low {
  border-left-color: #00C851;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.event-time {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.event-importance {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

.event-importance.high {
  background-color: rgba(255, 68, 68, 0.1);
  color: #ff4444;
}

.event-importance.medium {
  background-color: rgba(255, 187, 51, 0.1);
  color: #ffbb33;
}

.event-importance.low {
  background-color: rgba(0, 200, 81, 0.1);
  color: #00C851;
}

.event-content h3 {
  font-size: 0.8rem;
  margin: 0 0 8px 0;
  color: #333;
}

.event-content p {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.2;
}

.no-events {
  text-align: center;
  color: #666;
  padding: 20px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

@media (max-width: 1024px) {
  .topcontent {
      grid-template-columns: 250px 1fr;
  }

  .fear-greed-card,
  .calendar-events {
      height: 220px; /* Slightly taller on smaller screens */
  }
}

@media (max-width: 768px) {
  .topcontent {
      grid-template-columns: 1fr;
  }
  
  .fear-greed-card {
      height: auto;
      min-height: 100px;
      width: 400px;
      margin-top: 20px;
  }

  .event-metrics{

    font-size: 12px;
    
  }

  .event-impact{
    font-size: 10;
    font-weight: 400;
  }
  
  .calendar-events {
      height: 200px;
      max-width: 400px;
  }

  .calendar-events h2 {
   
    font-size: 20px;
}
}

/* Update scrollbar styling */
.calendar-list::-webkit-scrollbar {
  width: 6px;
}

.calendar-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

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

.calendar-list::-webkit-scrollbar-thumb:hover {
  background: #555;
} 