/**
 * Gov Capital Forecast Plugin - Single Asset Template Styles
 * 
 * This file contains styles for all single asset forecast pages:
 * - single-crypto.php (Cryptocurrency forecasts)
 * - single-stock.php (Stock forecasts)
 * - single-forex.php (Forex forecasts)
 * - single-commodity.php (Commodity forecasts)
 * - single-bse_stock.php, single-asx_stock.php, etc.
 */

/* ===================================
   Single Asset Page Styles
   =================================== */

/* 1) Panel-body */
.panel-body {
  max-width: 1230px;
  padding: 10px 0;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .panel-body {
    padding: 10px 10px;
  }
}

/* 2) Breadcrumb + search wrapper */
.breadcrumb-search-wrapper {
  background: #f5f5f5;
  padding: 5px 15px;
  margin-bottom: 0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Remove bottom margin from breadcrumb */
.breadcrumb {
  margin-bottom: 0;
}

/* 3) Secondary menu container: matching currency-history interval selector */
.secondary-menu {
  background: #f5f5f5;
  border-top: 1px solid #e1e1e1;
  border-bottom: 1px solid #e1e1e1;
  border-radius: 4px;
  margin: 20px 0;
  padding: 10px 0;
}

@media (min-width: 992px) {
  .secondary-menu ul,
  .secondary-menu .nav-tabs {
    flex-wrap: nowrap;
  }
}

/* 4) Secondary menu list: matching currency-history interval buttons */
.secondary-menu ul,
.secondary-menu .nav-tabs {
  list-style: none;
  margin: 0;
  padding: 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

/* 5) Secondary menu list items */
.secondary-menu li {
  margin: 0;
}

/* 6) Secondary menu links: matching currency-history interval selector */
.secondary-menu a,
.secondary-menu .nav li a,
.secondary-menu .nav-tabs li a {
  display: block;
  padding: 6px 10px;
  text-decoration: none;
  color: #333 !important;
  border-radius: 0;
  transition: background 0.2s, border-bottom 0.2s;
  font-size: 14px;
  white-space: nowrap;
}

/* Keep rounded corners for buttons */
.secondary-menu .btn,
.secondary-menu .nav li .btn,
.secondary-menu .nav-tabs li .btn {
  border-radius: 4px !important;
}

/* Ensure white text for primary buttons in secondary menu */
.secondary-menu .btn-primary,
.secondary-menu .nav li .btn-primary,
.secondary-menu .nav-tabs li .btn-primary,
.secondary-menu a.btn-primary,
.secondary-menu .nav li a.btn-primary,
.secondary-menu .nav-tabs li a.btn-primary {
  color: #fff !important;
}

.secondary-menu .btn-primary:hover,
.secondary-menu .nav li .btn-primary:hover,
.secondary-menu .nav-tabs li .btn-primary:hover,
.secondary-menu a.btn-primary:hover,
.secondary-menu .nav li a.btn-primary:hover,
.secondary-menu .nav-tabs li a.btn-primary:hover {
  color: #fff !important;
  background-color: #005177 !important;
  border-color: #005177 !important;
  border-bottom: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}
.secondary-menu a:hover,
.secondary-menu .nav li a:hover,
.secondary-menu .nav-tabs li a:hover,
.secondary-menu a:focus,
.secondary-menu .nav li a:focus,
.secondary-menu .nav-tabs li a:focus {
  background: rgba(0,115,170,0.05) !important;
  border-bottom: 2px solid #0073aa !important;
  padding-bottom: 6px !important;
  color: #333 !important;
  text-decoration: none !important;
}
.secondary-menu li.active a,
.secondary-menu .active a {
  border-bottom: 2px solid #0073aa;
  font-weight: bold;
  padding-bottom: 6px;
}


/* 7) Buy button styling */
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #fff !important;
  background-color: #0073aa;
  border-color: #0073aa;
}

.btn-primary:hover {
  color: #fff !important;
  background-color: #005177;
  border-color: #005177;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3);
}

.btn-blue {
  background-color: #2196F3;
  border-color: #2196F3;
}

.btn-blue:hover {
  background-color: #1976D2;
  border-color: #1976D2;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-loan {
  margin-left: 10px;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}

.btn-sm.btn-primary {
  color: #fff !important;
}

/* Libertex-static (placeholder or ad banner) - reserved for other purposes */

/* 8) Price Summary Section: matching market-overview.css style */
.price-summary {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  margin: 20px 0;
  overflow-x: auto;
}

/* 9) Price Summary Items */
.price-summary-item {
  flex: 1 1 calc(20% - 12px);
  min-width: 150px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 10) Price Summary headings and values */
.price-summary-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
  color: #333;
}
.price-summary-item p {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}

/* 11) Green/red text and arrows */
.green {
  color: #0da059;
}
.red {
  color: #ea3323;
}

/* 12) Investment section styling (styled like blockquote) */
.investment {
  background: #eef6fc;
  border-left: 4px solid #0073aa;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
  line-height: 1.6;
  color: #333;
}
.investment strong {
  font-weight: 600;
}

/* 13) Currency Forecast Rating */
.currency-forecast-rating {
  display: inline-block;
  background: #4caf50;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9em;
  margin: 0 5px;
}

/* 14) Investment Q&A link */
.investment a {
  color: #0073aa;
  text-decoration: underline;
}
.investment a:hover {
  text-decoration: none;
}

/* 15) Q&A item title colors */
.qa-item-title {
  color: #333;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.qa-item-title:hover {
  color: #0073aa;
  text-decoration: underline;
}

/* 16) Crypto Other Forecasts link - blue underlined text */
.crypto--other-forecasts {
  display: inline;
  margin-left: 10px;
  color: #0073aa;
  text-decoration: underline;
  font-size: 14px;
  transition: color 0.2s;
}
.crypto--other-forecasts:hover {
  color: #005a8b;
  text-decoration: underline;
}

/* 17) Forecast chart subtitle - center aligned */
.forecast-chart-subtitle {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  color: #333;
  margin: 10px 0 20px;
  line-height: 1.4;
}

/* 18) Forecast Price Target Wrapper */
.forecast-price-target-wrapper {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.forecast-price-target-wrapper h2 {
  margin-top: 0;
}

/* 19) Forecast Price Target content */
.forecast-price-target {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}
.forecast-price-target strong {
  color: #333;
  font-weight: 600;
}

/* 20) Q&A Section */
.qa-box-1 {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.qa-box-1 h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
}

/* 21) QA Items */
.qa-item {
  border-bottom: 1px solid #e1e1e1;
  padding: 15px 0;
}
.qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.qa-item h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
  cursor: pointer;
}
.qa-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* 22) Etheal-text sections - reserved for other purposes */

/* 23) Forecast-sentence styled like blockquote */
.forecast-sentence {
  background: #eef6fc;
  border-left: 4px solid #0073aa;
  padding: 15px;
  margin-top: 20px;
  border-radius: 4px;
  line-height: 1.6;
  color: #333;
}

/* 24) Remove default link styles in forecast-currency-href */
.forecast-currency-href,
.forecast-currency-href:hover,
.forecast-currency-href:visited {
  color: inherit;
  text-decoration: none;
}

/* 25) Override green/red for any .bignum with those classes */
.bignum.green,
span.green.bignum {
  color: #0da059;
}
.bignum.red,
span.red.bignum {
  color: #ea3323;
}

/* 26) Mobile: two cards per row */
@media (max-width: 767px) {
  #forecast-price .col-xs-3 {
    flex: 1 1 50%;
    max-width: 50%;
  }
}

/* 27) Charts two-column override */
.panel-body > .row > .col-md-6,
.panel-body > .row > .col-sm-6 {
  width: 50%;
  float: left;
  box-sizing: border-box;
  padding: 0 15px;
  margin-bottom: 20px;
}
/* clearfix on that row */
.panel-body > .row::after {
  content: "";
  display: table;
  clear: both;
}

/* 28) Two-column mobile override */
@media (max-width: 767px) {
  .panel-body > .row > .col-md-6,
  .panel-body > .row > .col-sm-6 {
    width: 100%;
    float: none;
    padding: 0 10px;
  }
  
  .grid-view,
  .forecast-converter,
  .gridtable.qa,
  .disclaimer,
  .panel {
    margin-left: 10px;
    margin-right: 10px;
  }
}

/* 29) Ad align center */
.ad-align-center {
  text-align: center;
  margin: 20px 0;
}
.margin-top-20 {
  margin-top: 20px;
}

/* 30) Panel styles */
.panel {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.panel-default {
  border-color: #e1e1e1;
}
.panel-default > .panel-heading,
.panel-heading {
  background-color: transparent;
  border-bottom: 1px solid #e1e1e1;
  padding: 15px;
  font-weight: 600;
  color: #333;
  border-radius: 8px 8px 0 0;
}

.panel-heading h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}
.panel-body {
  padding: 20px;
}

/* 31) Page header subtitle icon */
.page-header__subtitle .icon--inline {
  width: 16px;
  height: 16px;
  margin: 0 2px;
}

/* ===========================================
   Stock Specific Styles
   =========================================== */

/* For stock pages with company info */
.company-info {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #e1e1e1;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.company-info-item {
  padding: 10px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #e1e1e1;
}

.company-info-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin: 0 0 5px 0;
}

.company-info-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* ===========================================
   Forex Specific Styles
   =========================================== */

/* Currency pair display */
.currency-pair-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.currency-flag {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e1e1e1;
}

.currency-pair-separator {
  font-size: 24px;
  font-weight: 300;
  color: #999;
}

/* ===========================================
   Commodity Specific Styles
   =========================================== */

/* Commodity unit display */
.commodity-unit {
  display: inline-block;
  background: #f5f5f5;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
  margin-left: 10px;
}

/* ===========================================
   Pivot Points Table
   =========================================== */

.pivot-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  overflow: hidden;
}

.pivot-table th {
  background: #f5f5f5;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e1e1e1;
}

.pivot-table td {
  padding: 12px;
  border-bottom: 1px solid #e1e1e1;
}

.pivot-table tr:last-child td {
  border-bottom: none;
}

.pivot-table tr:hover {
  background: #f9f9f9;
}

/* ===========================================
   Historical Data Table
   =========================================== */

.historical-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.historical-table th {
  background: #0073aa;
  color: #fff;
  padding: 10px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.historical-table td {
  padding: 10px;
  border-bottom: 1px solid #e1e1e1;
  font-size: 14px;
}

.historical-table tbody tr:hover {
  background: #f5f5f5;
}

.historical-table tbody tr:nth-child(even) {
  background: #fafafa;
}

/* ===========================================
   Mobile Responsive Adjustments
   =========================================== */

@media (max-width: 991px) {
  .price-summary {
    flex-wrap: wrap;
  }
  
  .price-summary-item {
    flex: 1 1 50%;
    border-bottom: 1px solid #e1e1e1;
  }
  
  .price-summary-item:nth-child(2n) {
    border-right: none;
  }
  
  .price-summary-item:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

@media (max-width: 767px) {
  .breadcrumb-search-wrapper {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .secondary-menu ul {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .price-summary {
    gap: 10px;
    margin: 15px 0;
    padding: 0 10px;
  }
  
  .price-summary-item {
    flex: 1 1 calc(50% - 5px);
    padding: 15px 10px;
    border-right: none;
    border-bottom: 1px solid #e1e1e1;
  }
  
  .price-summary-item:last-child {
    border-bottom: none;
  }
  
  .price-summary-item h3 {
    font-size: 1.2rem;
  }
  
  .price-summary-item p {
    font-size: 1.2rem;
  }
  
  .other-forecast-grid {
    grid-template-columns: 1fr;
  }
  
  .forecast-chart-subtitle {
    font-size: 16px;
  }
  
  .forecast-price-target {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .investment {
    padding: 10px;
    margin-left: 10px;
    margin-right: 10px;
  }
  
  .currency-forecast-rating {
    font-size: 0.8em;
    padding: 2px 6px;
  }
}

/* ===========================================
   Print Styles
   =========================================== */

@media print {
  .breadcrumb-search-wrapper,
  .secondary-menu,
  .libertex-static,
  .ad-align-center,
  .etheal-text {
    display: none !important;
  }
  
  .panel-body {
    padding: 0;
  }
  
  .price-summary {
    border: 1px solid #000;
    box-shadow: none;
  }
  
  .investment {
    border: 1px solid #000;
    background: #fff;
  }
  
  #forecastdiv-14-days,
  #forecastdiv-1-year {
    max-height: 300px;
  }
}

/* ================================================
   35) Bug fixes and adjustments
   ================================================ */

/* Fix for forecast table overflow on mobile */
@media (max-width: 767px) {
  .forecast-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .forecast-table {
    min-width: 600px;
  }
}

/* Fix z-index issues with sticky headers */
.sticky-header {
  z-index: 100;
}

/* Fix text selection in price displays */
.price-summary-item p,
.other-forecast-price,
.forecast-price-target strong {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

/* ================================================
   36) Utility Classes
   ================================================ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.hidden { display: none; }
.visible { display: block; }

.bold { font-weight: 700; }
.normal { font-weight: 400; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

/* ================================================
   37) Special highlight for 1-Year Forecast
   ================================================ */

/* Find the 1-Year Forecast item and highlight it */
.price-summary-item:nth-child(3) {
  border: 2px solid #0073aa;
  position: relative;
}

.price-summary-item:nth-child(3)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0073aa, #00aaff);
  border-radius: 8px 8px 0 0;
}

/* Removed old star icon styling */
/* .price-summary-item:nth-child(3)::before {
  content: "â­";
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 16px;
}

/* Using default colors for h3 */

/* Using default colors for p */

/* Keep highlight on mobile too */

/* Handle subscript formatting in price summary */
.price-summary-item p sub {
  font-size: 0.7em;
  vertical-align: baseline;
  position: relative;
  top: 0.3em;
}

/* ================================================
   38) Table styles
   ================================================ */

/* Grid view table styling */
.grid-view {
  padding: 15px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  overflow-x: auto;
  margin: 20px 0;
}

.grid-view h2,
.grid-view .panel-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
}

.grid-view table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  margin-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.grid-view th {
  background: #0073aa;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  text-align: left;
}

.grid-view td {
  padding: 12px 10px;
  border-bottom: 1px solid #e1e1e1;
  font-size: 14px;
  white-space: nowrap;
}

.grid-view tbody tr:nth-child(odd) {
  background: #f9f9f9;
}

.grid-view tbody tr:nth-child(even) {
  background: #fff;
}

.grid-view tbody tr:hover {
  background: rgba(0,115,170,0.1);
}

.grid-view tbody tr:last-child td {
  border-bottom: none;
}

/* Table images inline */
.grid-view table img,
table img {
  display: inline-block;
  vertical-align: middle;
  width: 12px;
  height: 12px;
  margin-right: 4px;
}

/* Table headings below charts */
.forecast-table-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 20px 0 15px;
  text-align: left;
}

/* Panel body no padding */
.panel-body-no-padding {
  padding: 15px;
}

.panel-body-no-padding strong {
  font-size: 1.5rem;
}

.panel-body-no-padding .stock-info-header {
  font-size: 1rem;
}

/* Stock info header - matching panel heading h2 */
.stock-info-header {
  font-size: 1.5rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================================================
   39) Q&A Styling
   ================================================ */

/* Gridtable QA styling */
.gridtable.qa {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 20px 0;
  height: auto !important;
  min-height: 0 !important;
}

.gridtable.qa h2,
.gridtable.qa .panel-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #0073aa;
}

.forecast-question {
  border-bottom: 1px solid #e1e1e1;
  padding: 15px 0;
}

.forecast-question:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forecast-question-title {
  font-weight: 600;
  color: #333;
  margin: 0;
  cursor: pointer;
  line-height: 1.4;
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .forecast-question-title {
    font-size: 2rem;
  }
}

.forecast-question-answer {
  line-height: 1.6;
  color: #555;
}

.forecast-question-answer p {
  margin: 0;
}

.forecast-question-answer strong,
.forecast-question-answer p strong,
.gridtable.qa strong {
  color: #0073aa;
  font-weight: 600;
}

/* ================================================
   40) Forecast Converter
   ================================================ */

.forecast-converter {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.forecast-converter h2,
.forecast-converter .panel-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 15px 0;
  padding: 0;
  background: none;
  border: none;
  text-align: center;
}

.forecast-converter-convert {
  display: inline-block;
  margin: 5px;
}

.forecast-converter-convert a {
  display: inline-block;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: inherit;
  transition: all 0.2s;
}

.forecast-converter-convert a:hover {
  background: #e8f4fc;
  border-color: #0073aa;
  color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ================================================
   41) See Our Other Forecasts
   ================================================ */

.list-group {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.list-group-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.list-group-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
  font-size: inherit;
}

.list-group-item:hover {
  background-color: #e8f4fc;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #0073aa;
  border-color: #0073aa;
}

/* Icon inline styles - matching market-overview asset-icon */
.icon--inline {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.list-group-item .icon--inline {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

/* ================================================
   42) Additional Table Styles
   ================================================ */

/* Bootstrap-like table styles - matching historical table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
  margin-bottom: 1rem;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.table tbody tr:nth-child(odd) {
  background: #f9f9f9;
}

.table tbody tr:nth-child(even) {
  background: #fff;
}

.table-hover tbody tr:hover {
  background: rgba(0,115,170,0.1);
}

.table-bordered {
  border: 1px solid #e1e1e1;
}

.table-bordered th,
.table-bordered td {
  border: 1px solid #e1e1e1;
  padding: 8px 12px;
  font-size: 14px;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.table-condensed th,
.table-condensed td {
  padding: 5px 8px;
  font-size: 14px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ================================================
   43) Column Layout Styles
   ================================================ */

/* Bootstrap-like columns */
.col-md-6 {
  width: 50%;
  float: left;
  padding: 0 15px;
  box-sizing: border-box;
}

.col-md-12 {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
}

.row {
  margin: 0 -15px;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 991px) {
  .col-md-6,
  .col-md-12 {
    width: 100%;
    float: none;
  }
}

/* ================================================
   44) Disclaimer Boxes
   ================================================ */

.disclaimer {
  margin: 20px 0;
}

.disclaimer-box {
  position: relative;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  line-height: 1.6;
  color: #333;
  text-align: center;
}

.disclaimer-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0073aa, #00aaff);
  border-radius: 8px 8px 0 0;
}

/* ================================================
   45) Swap Blocks Layout
   ================================================ */

.swap-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 20px;
}

.swap-blocks > .col-md-12 {
  flex: 1 1 calc(50% - 10px);
  min-width: 280px;
}

@media (max-width: 991px) {
  .swap-blocks {
    flex-direction: column;
    padding: 0 10px;
  }
  
  .swap-blocks > .col-md-12 {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }
}

/* ================================================
   46) Chart Styling
   ================================================ */

/* Chart containers - no grey background */
#forecastdiv-14-days,
#forecastdiv-1-year,
.chart-wrapper {
  background-color: transparent;
  padding: 0;
}

/* Remove any grey backgrounds from chart parent containers */
.panel-body > .row,
.panel-body .col-md-6,
.panel-body .col-sm-6 {
  background-color: transparent;
}

/* Gauge Chart Styling */

#gaugeChartDiv {
  width: 270px;
  height: 250px;
  position: relative;
  margin: 0 auto;
}

/* ================================================
   47) Rating Badge Styles
   ================================================ */
.currency-forecast-rating {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 5px;
}

/* Rating color scheme */
.currency-forecast-rating.rating-aplus {
  background: #0f7938;
  color: #fff;
}

.currency-forecast-rating.rating-a {
  background: #14a350;
  color: #fff;
}

.currency-forecast-rating.rating-bplus {
  background: #4caf50;
  color: #fff;
}

.currency-forecast-rating.rating-b {
  background: #8bc34a;
  color: #fff;
}

.currency-forecast-rating.rating-c {
  background: #ffeb3b;
  color: #333;
}

.currency-forecast-rating.rating-d {
  background: #ff9800;
  color: #fff;
}

.currency-forecast-rating.rating-dminus {
  background: #ff5722;
  color: #fff;
}

.currency-forecast-rating.rating-e {
  background: #f44336;
  color: #fff;
}

.currency-forecast-rating.rating-eminus {
  background: #b71c1c;
  color: #fff;
}

.currency-forecast-rating.rating-none,
.currency-forecast-rating.rating- {
  background: #e0e0e0;
  color: #999;
}

/* Media queries for price summary responsive layout */
@media (max-width: 1200px) {
  .price-summary {
    flex-wrap: wrap;
  }
  .price-summary-item {
    flex: 1 1 calc(33.333% - 10px);
  }
}

@media (max-width: 991px) {
  .price-summary-item {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 767px) {
  .price-summary {
    flex-wrap: wrap;
  }
  .price-summary-item {
    flex: 1 1 calc(50% - 8px);
    min-width: unset;
  }
  /* Last item full width if odd number */
  .price-summary-item:nth-child(odd):last-child {
    flex: 1 1 100%;
  }
}

/* Override any theme green hover effects on single crypto pages */
.single-crypto .secondary-menu a:hover,
.single-crypto .secondary-menu .nav li a:hover,
.single-crypto .secondary-menu .nav-tabs li a:hover,
body.single-crypto .secondary-menu a:hover,
body.single-crypto .secondary-menu .nav li a:hover,
body.single-crypto .secondary-menu .nav-tabs li a:hover {
  color: #333 !important;
  background: rgba(0,115,170,0.05) !important;
  border-bottom: 2px solid #0073aa !important;
}

/* Force all link colors in secondary menu */
.secondary-menu a,
.secondary-menu a:link,
.secondary-menu a:visited,
.secondary-menu a:active {
  color: #333 !important;
}

/* Remove nav-tabs border-bottom - Override theme styles */
.nav-tabs {
  border-bottom: none !important;
}

/* Change price-summary to use padding instead of margin for animation visibility */
.price-summary {
  padding: 20px 0;
  margin: 0;
}