@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

* {
  box-sizing: border-box;
}

html,
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: #dbdbdb #fafafa;
  width: 100%;
  background: white;
}

::-webkit-scrollbar {
  width: 5px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #dbdbdb;
  border-radius: 90px;
}

::-webkit-scrollbar-track {
  background-color: #fafafa;
  border-radius: 90px;
}


.fill {
  font-variation-settings:
    'FILL' 1,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24
}


.trade_activity__wrap {
  display: flex;
  width: 100%;
  height: 100%;
  font-size: 14px;
}

.trade_menu {
  min-width: 250px;
  border-right: 1px solid #e7e7e9;
  padding: 20px 10px 10px 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ededed #ffffff;
}

.trade-menu-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  color: #525254;
  margin-bottom: 10px;
  padding-left: 30px;
  padding-bottom: 30px;
}

.trade-menu-label span {
  font-size: 19px;
}

.trade-menu-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.trade-menu-item {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  height: 35px;
  color: black;
  cursor: pointer;
  padding: 0 5px;
  border-radius: 5px;
}

.trade-menu-item span {
  font-size: 22px;
}

.trade-item-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.trade-item-label span {
  font-size: 11px;
  background: #f7f7f7;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 5px;
  color: #3d3b40;
}

.trade_content {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.trade-header-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-page-title {
  font-weight: bold;
  font-size: 20px;
}

.trade-page-description {
  color: #525264;
}

.trade-header-options {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trade-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding-right: 10px;
  cursor: pointer;
}

.trade-time span {
  height: 6px;
  display: flex;
  width: 6px;
  background: #7e48da;
  border-radius: 90px;
  outline: 3px solid #7e48da2e;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    background: #7e48da;
    box-shadow: 0 0 5px #7e48da, 0 0 10px #7e48da2e;
    opacity: 1;
  }
  50% {
    background: #a164f7;
    box-shadow: 0 0 10px #7e48da, 0 0 20px #7e48da, 0 0 30px #7e48da2e;
    opacity: 0.8;
  }
  100% {
    background: #7e48da;
    box-shadow: 0 0 5px #7e48da, 0 0 10px #7e48da2e;
    opacity: 1;
  }
}

#totalTradesCount span {
  height: 6px;
  display: flex;
  width: 6px;
  background: #7e48da;
  border-radius: 90px;
  outline: 3px solid #7e48da2e;
  animation: pulse-glow 2s ease-in-out infinite;
}

.trade-export {
  gap: 5px;
  height: 35px;
  display: flex;
  align-items: center;
  font-size: 12px;
  padding: 0 13px 0 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #e5e5e5;
}

.trade-export span {
  font-size: 20px;
}

.trade-add {
    gap: 5px;
    height: 35px;
    display: flex;
    align-items: center;
    background: linear-gradient(45deg, #7e48da, #5a2cab);
    font-size: 12px;
    color: white;
    padding: 0 13px 0 10px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.trade-add:hover {
    background: linear-gradient(45deg, #a164f7, #7e48da, #5a2cab);
}


.trade-add span {
  font-size: 20px;
}

.trade-table {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  box-shadow: 0px 0px 15px #00000010;
}

.trade-table-head {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.trade-head-col {
  width: 100%;
  display: flex;
  align-items: center;
}

.all-trades {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: bold;
  gap: 10px;
}

.trade-head-col div div {
  display: flex;
  align-items: center;
  font-size: 11px;
  border: 1px solid #e5e5e5;
  height: 25px;
  padding: 0 8px;
  border-radius: 4px;
  gap: 6px;
  font-weight: bold;
  cursor: pointer;
}

.trade-head-col div div span {
  height: 6px;
  display: flex;
  width: 6px;
  background: #7e48da;
  border-radius: 90px;
}

.trade-search-input {
  display: flex;
  align-items: center;
  margin: 0 auto 0 10%;
  border: 1px solid #e5e5e5;
  padding: 0 6px;
  border-radius: 5px;
  gap: 5px;
}

.trade-search-input span {
  font-size: 20px;
  color: #656568;
}

.trade-search-input input {
  border: none;
  height: 32px;
  outline: none;
}

.trade-table-wrap {
  flex-grow: 1;
  overflow: visible;
}

table {
  border-collapse: collapse;
  width: 100%;
}


th {
  text-align: left;
  font-size: 11px;
  background: #fafafa;
  color: #4e4e4e;
  padding: 5px 5px;
  height: 40px;
  border: none;
}

tr {
  border-bottom: 1px solid #e6e6e6;
  cursor: pointer;
}

tr:hover {
  background: #edf6ff;
	box-shadow: 0px 0px 10px #00000010;
}


.trade-symbol-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.trade-symbol-wrap img {
    width: 35px;
    border-radius: 9px;
}

.trade-symbol-wrap div {display: block;flex-direction: column;gap: 2px;}

.trade-symbol {
    font-weight: bold;
    font-size: 13px;
    color: black;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.trade-company {
    font-size: 13px;
    color: #525264;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: end;
  padding-right: 15px;
}

.table-actions span {
  color: #6f6f74;
  font-size: 22px;
  cursor: pointer;
}

.table-actions span:hover {
	color: black;
}

.trade-table-pagging {
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e5e5e5;
  min-height: 60px;
  align-items: center;
  font-size: 12px;
}

.trade-current-page {
  font-weight: bold;
}

.trade-page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trade-previous {
  gap: 5px;
  height: 35px;
  display: flex;
  align-items: center;
  font-size: 12px;
  padding: 0 15px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #e5e5e5;
  opacity: 1;
}

.trade-next {
  gap: 5px;
  height: 35px;
  display: flex;
  align-items: center;
  font-size: 12px;
  padding: 0 15px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #dcdcde;
}


.trade-menu-item:hover {
  background: #f4f4f6;
}

.trade-menu-item.active {
  color: #7e48da;
  background: #f4f4f6;
  font-weight: bold;
}

.timeline__label {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.timeline__checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  background-color: #f9f9f9;
}

.check-icon {
  display: none;
  color: white;
  font-size: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.timeline__checkbox:checked {
  background-color: #7e48da;
  border-color: #7e48da;
}

.timeline__checkbox:checked+.check-icon {
  display: block;
}

th:first-child, td:first-child { width:50px; padding-left:10px;}
th:last-child, td:last-child { width:80px;}



.trade-table-wrap td:not([style*="color"]) {
	font-size: 13px;
	color: #646464 !important;
}

.trade-table-wrap td[style*="color"] {
	font-size: 13px;
}

.trade-next:hover,
.trade-previous:hover,
.trade-export:hover {
	background:#edf6ff;
}


.mute { 
  opacity: 0.5;
  cursor: not-allowed !important;
}
.mute:hover { 
  background: none;
}

/* Styles for Analytics Panels from Image */
.analytics-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

.analytics-panel {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  box-shadow: 0px 0px 15px #00000010;
}

.price-chart-container {
  flex: 2; /* Make the chart panel wider */
  overflow: hidden; /* Helps to contain the image */
}

.traffic-sources-container {
  flex: 1; /* Make the traffic panel narrower */
}

.analytics-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.analytics-panel .panel-title {
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.analytics-panel .panel-title .material-symbols-outlined {
    font-size: 16px;
    color: #999;
}

.panel-subtitle {
  font-size: 12px;
  color: #525264;
}

.gain {
  color: #2e9364;
  font-weight: bold;
  background-color: #eaf5f0;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #525264;
    font-size: 12px;
}
.header-right .material-symbols-outlined {
    cursor: pointer;
    font-size: 20px;
}

.time-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    background-color: #f7f7f7;
    padding: 3px;
    border-radius: 5px;
}
.time-tabs span {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.time-tabs span.active {
    background-color: #fff;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.score {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mds {
    background-color: #eaf5f0;
    color: #2e9364;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.chart-image-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 0 0;
  max-height: 250px; 
}

/* Traffic Sources Panel */
.dropdown-menu {
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.traffic-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10px;
}

.traffic-item {
  display: grid;
  grid-template-columns: 90px 1fr 60px;
  gap: 15px;
  align-items: center;
  font-size: 13px;
}

.source-name {
    color: #333;
}

.source-value {
    color: #555;
    text-align: right;
    font-weight: 500;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #667eea 0%, #7c3aed 50%, #a855f7 100%);
  border-radius: 4px;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 
    0 0 4px rgba(124, 58, 237, 0.8),
    0 0 8px rgba(124, 58, 237, 0.6),
    0 0 12px rgba(168, 85, 247, 0.4);
  animation: progress-glow 2s ease-in-out infinite;
}

@keyframes progress-glow {
  0%, 100% {
    opacity: 0.6;
    box-shadow: 
      0 0 4px rgba(124, 58, 237, 0.8),
      0 0 8px rgba(124, 58, 237, 0.6),
      0 0 12px rgba(168, 85, 247, 0.4);
  }
  50% {
    opacity: 1;
    box-shadow: 
      0 0 8px rgba(124, 58, 237, 1),
      0 0 16px rgba(124, 58, 237, 0.8),
      0 0 24px rgba(168, 85, 247, 0.6);
  }
}

/* Share Dialog Styles */
.share-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.share-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: all 0.2s ease;
  min-width: 400px;
  max-width: 500px;
}

.share-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.share-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.share-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.share-close:hover {
  background: #f5f5f5;
  color: #666;
}

.share-content {
  padding: 20px 24px 24px 24px;
}

.share-content p {
  margin: 0 0 16px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.share-url-container {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.share-url-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  color: #333;
  background: #f8f9fa;
  transition: border-color 0.2s ease;
}

.share-url-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.copy-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  font-size: 16px;
}

.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.copy-button:active {
  transform: translateY(0);
}

.copy-feedback {
  background: #28a745;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

/* Help Icon Tooltip Styles */
.help-icon {
  font-size: 18px !important;
  color: #999;
  cursor: help;
  margin-left: 8px;
  transition: color 0.2s ease;
  vertical-align: middle;
}

.help-icon:hover {
  color: #667eea;
}

/* OTC Badge Styles */
.otc-badge {
  background-color: #ffc107;
  color: #856404;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #ffd54f;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}

.traffic-footer {
  border-top: 1px solid #e5e5e5;
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.payout-value {
    font-size: 16px;
}

/* Chart Slide-out Panel */
.chart-slide-panel {
  position: fixed;
  top: 0;
  right: -80%;
  width: 80%;
  height: 100vh;
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: right 0.3s ease-in-out;
  border-left: 1px solid #e5e5e5;
}

.chart-slide-panel.active {
  right: 0;
}

.chart-slide-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.chart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.chart-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* Styles for Analytics Panels from Image */
.analytics-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: stretch;
}

.analytics-panel {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  box-shadow: 0px 0px 15px #00000010;
}

.price-chart-container {
  flex: 2; /* Make the chart panel wider */
  overflow: hidden; /* Helps to contain the image */
}

.traffic-sources-container {
  flex: 1; /* Make the traffic panel narrower */
}

.analytics-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.analytics-panel .panel-title {
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.analytics-panel .panel-title .material-symbols-outlined {
    font-size: 16px;
    color: #999;
}

.panel-subtitle {
  font-size: 12px;
  color: #525264;
  margin-top: 10px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gain {
  color: #2e9364;
  font-weight: bold;
  background-color: #eaf5f0;
  padding: 2px 5px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #525264;
    font-size: 12px;
}
.header-right .material-symbols-outlined {
    cursor: pointer;
    font-size: 20px;
}

.time-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    background-color: #f7f7f7;
    padding: 3px;
    border-radius: 5px;
}
.time-tabs span {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.time-tabs span.active {
    background-color: #fff;
    font-weight: bold;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.score {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mds {
    background-color: #eaf5f0;
    color: #2e9364;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.chart-container {
  position: relative;
  width: 100%;
  height: 250px;
  margin-top: 20px;
}

#portfolioChart {
  width: 100%;
  height: 100%;
}

.chart-image-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 0 0;
  max-height: 250px; 
}