/* ===== main-styles.css ===== */
/* Reset and Base Styles */
::before,
::after {
  --tw-content: '';
}

/* ========== Base Styles & Reset ========== */
:root {
    /* Color Palette from design reference */
    --primary-dark: #0f2c52;
    --primary-green: #008805;
    --primary-red: #c81111;
    --accent-orange: #f2672a;
    --text-primary: #0f2c52;
    --text-secondary: #6a7687;
    --border-color: #e4e6eb;
    --light-green-bg: #e3ffde;
    --white: #fff;
    
    /* Spacing */
    --margin-sm: 16px;
    --margin-md: 32px;
    
    /* Font Sizes */
    --font-size-h4: 20px;
    --font-size-h5: 18px;
    --font-size-body: 16px;
    --font-size-caption: 12px;
}

* {
  box-sizing: border-box;
  text-underline-offset: 0.134em;
  font-family: 'Mulish', sans-serif;
}

html,
:host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
  min-height: 100vh;
  background-color: #fff;
  font-family: 'Mulish', sans-serif;
}

hr {
  height: 0;
  color: inherit;
  border-top-width: 1px;
}

/* Typography */
.desktop-desktop-body-regular {
  color: #6a7687;
  font-size: 16px;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  line-height: 1.563;
  letter-spacing: 0px;
}

.desktop-desktop-h4-bold {
  color: #c81111;
  font-size: 20px;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0px;
}

.desktop-desktop-caption-regular {
  color: #008805;
  font-size: 12px;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0px;
}

.desktop-desktop-h5-bold {
  color: #0f2c52;
  font-size: 18px;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 700;
  line-height: 1.444;
  letter-spacing: 0px;
}

.desktop-desktop-h5-regular {
  color: #6a7687;
  font-size: 18px;
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400;
  line-height: 1.444;
  letter-spacing: 0px;
}

/* UI Components */
.btn-light {
  display: flex;
  background-color: #e3ffde;
  padding: 9px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.btn-light:hover {
  filter: brightness(0.85);
}

/* Trading Dashboard Specific Styles */
.container {
    padding: 0px 50px !important;
}

.container-fluid {
  padding: 60px 80px 69px 80px;
  overflow: auto;
}

/* Back Link */
.row-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  align-self: start;
  color: #0f2c52;
  padding: 1px 0;
  margin-bottom: 30px;
}

.img-left {
  transform-origin: 50% 50%;
  margin-left: -3px;
  margin-top: 2px;
  width: 12px;
  flex-shrink: 0;
}

.text-back {
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  color: #0f2c52;
}

.text-back:hover {
  filter: brightness(0.85);
  cursor: pointer;
}

/* Tabs Navigation */
.nav-tabs {
  border-bottom: 1px solid #e4e6eb;
  margin-bottom: 0;
}

.nav-tabs .nav-link {
  color: #6a7687;
  font-size: 18px;
  font-weight: 400;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background-color: transparent;
}

.nav-tabs .nav-link:hover {
  border-color: #e4e6eb #e4e6eb #fff;
  color: #0f2c52;
}

.nav-tabs .nav-link.active {
  color: #0f2c52;
  font-weight: 700;
  background-color: #fff;
  border-color: #e4e6eb #e4e6eb #fff;
  border-bottom-color: transparent;
}

/* Tab Content */
.tab-content {
  border: 1px solid #e4e6eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background-color: #fff;
}

/* Time Period Buttons */
.d-flex.flex-wrap.gap-2.mb-3 .btn {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f2c52;
  font-style: normal;
  letter-spacing: 0px;
  background-color: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 4px;
  padding: 9px 19px;
  font-size: 14px;
  font-weight: 400;
}

.d-flex.flex-wrap.gap-2.mb-3 .btn:hover {
  filter: brightness(0.85);
}

.d-flex.flex-wrap.gap-2.mb-3 .btn.active,
.d-flex.flex-wrap.gap-2.mb-3 .btn.btn-primary {
  color: #fff;
  background-color: #f2672a;
  border-color: #f2672a;
}

.d-flex.flex-wrap.gap-2.mb-3 .btn.btn-outline-secondary {
  color: #6a7687;
  border: 1px solid #e4e6eb;
}

/* Filter and Sort Controls */
.d-flex.flex-wrap.align-items-center.gap-3.mb-4 .btn-outline-secondary {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6a7687;
  font-style: normal;
  letter-spacing: 0px;
  background-color: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 4px;
  padding: 9px;
  font-size: 14px;
  font-weight: 400;
}

.d-flex.flex-wrap.align-items-center.gap-3.mb-4 .btn-outline-secondary:hover {
  filter: brightness(0.85);
}

/* Dropdown Menus */
.dropdown-menu {
  border: 1px solid #e4e6eb;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  color: #6a7687;
  font-size: 14px;
  padding: 8px 16px;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #0f2c52;
}

/* Trader Card */
.trader-row .card {
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  margin-bottom: 0 !important;
}

.trader-row .card-body {
  padding: 20px;
}

/* Trader Logo */
.trader-logo {
  width: 82px;
  height: 82px;
  object-fit: cover;
}

/* Trader Name and Info */
.trader-name {
  color: #0f2c52;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.trader-name a:hover {
	text-decoration: underline !important;
}

.trader-strategy {
  color: #6a7687;
  font-size: 16px;
  font-weight: 400;
  line-height: 0;
  margin-bottom: 8px;
  padding-bottom: 10px;
}

/* Badges */
.badge {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.75;
  border-radius: 4px;
}

.bg-primary {
  background-color: #e3ffde !important;
  color: #008805 !important;
}

.bg-success {
  background-color: #e3ffde !important;
  color: #008805 !important;
}

.bg-warning.text-dark {
  background-color: #fff3cd !important;
  color: #856404 !important;
}

.bg-danger {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}

/* Metrics */
.trader-amount-following,
.trader-investors,
.trader-live-points,
.trader-roi {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.trader-amount-following {
  color: #0f2c52;
}

.trader-investors {
  color: #0f2c52;
}

.trader-live-points {
  color: #c81111;
}

.trader-roi {
  color: #008805;
}

/* Column Text Labels */
.column-text1 {
  color: #6a7687;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.563;
  margin-bottom: 4px;
}

/* Buttons */
.trader-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0f2c52;
  background-color: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
}

.trader-share-btn:hover {
  filter: brightness(0.85);
}

.trader-copy-btn,
.btn-b {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: #f2672a;
  border: none;
  border-radius: 8px;
  padding: 8px 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 135px;
}

.trader-copy-btn:hover,
.btn-b:hover {
  filter: brightness(1.2);
}

/* Load More Button */
#load-more-btn-top,
#load-more-btn-amount,
#load-more-btn-1year,
#load-more-btn-rising,
.all-provider-section-btn11 {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: #f2672a;
  border: none;
  border-radius: 8px;
  padding: 8px 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 30px auto 0;
}

#load-more-btn-top:hover,
#load-more-btn-amount:hover,
#load-more-btn-1year:hover,
#load-more-btn-rising:hover,
.all-provider-section-btn11:hover {
  filter: brightness(1.2);
}

/* Refresh Button */
.all-provider-section-btn10 {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: #f2672a;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
}

.all-provider-section-btn10:hover {
  filter: brightness(1.2);
}

/* Divider Lines */
.all-provider-section-line {
  height: 0;
  border-top: 1px solid #e4e6eb;
  margin: 20px 0;
}

/* Performance Chart */
.performance-chart {
  width: 100% !important;
  height: 40px !important;
}

/* Modal */
.modal-content {
  border: 1px solid #e4e6eb;
  border-radius: 8px;
}

.modal-header {
  border-bottom: 1px solid #e4e6eb;
  padding: 16px 20px;
}

.modal-title {
  color: #0f2c52;
  font-size: 18px;
  font-weight: 700;
}

.modal-body .card {
  border: 1px solid #e4e6eb;
  border-radius: 4px;
  transition: all 0.2s;
}

.modal-body .card:hover {
  filter: brightness(0.95);
}

.modal-body small {
  color: #6a7687;
  font-size: 12px;
}

/* Loading Indicator */
#loading-indicator .spinner-border {
  color: #f2672a;
}

/* Responsive Design */
/* Container queries for flex rows */
@container (width < 839px) {
  .all-provider-section-row-top {
    flex-direction: column;
    align-items: center;
    gap: 13px;
  }
  
  .all-provider-section-row-top > * {
    margin-right: unset !important;
    margin-top: unset !important;
    text-align: center;
  }
}

@container (width < 691px) {
  .all-provider-section-row1 {
    flex-direction: column;
    align-items: center;
    gap: 13px;
  }
  
  .all-provider-section-row1 > * {
    text-align: center;
  }
}

@container (width < 1195px) {
  .all-provider-section-row2 {
    margin-left: 0;
    margin-right: 0;
    flex-direction: column;
    align-items: center;
    gap: 13px;
  }
  
  .all-provider-section-row2 > * {
    text-align: center;
  }
  
  .all-provider-section-row2 > .all-provider-section-row3 {
    width: 100%;
  }
}

@container (width < 882px) {
  .all-provider-section-row3 {
    flex-direction: column;
    align-items: center;
    gap: 13px;
  }
  
  .all-provider-section-row3 > * {
    text-align: center;
  }
}

@container (width < 1139px) {
  .row {
    flex-direction: column;
    align-items: center;
    gap: 17px;
  }
  
  .row > * {
    margin-left: unset !important;
    margin-top: unset !important;
    text-align: center;
  }
  
  .row .row-row-top {
    align-self: center;
  }
  
  .row > .row-col2 {
    width: 100%;
    max-width: 321px;
    align-items: center;
  }
  
  .row .row-img-top {
    align-self: center;
  }
  
  .row > .row-col-right {
    align-items: center;
  }
}

@container (width < 294px) {
  .row-row-left {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .row-row-left > * {
    margin-top: unset !important;
    text-align: center;
  }
  
  .row-row-left .row-row-bottom2 {
    align-self: center;
  }
  
  .row-row-left > .row-col1 {
    align-items: center;
  }
}

@container (width < 289px) {
  .row-row-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .row-row-top > * {
    margin-left: unset !important;
    margin-right: unset !important;
  }
}

@container (width < 320px) {
  .row-row-bottom3 {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .row-row-bottom3 > * {
    margin-left: unset !important;
    margin-right: unset !important;
  }
  
  .row-row-bottom3 > .row-col3 {
    width: 100%;
  }
}

/* Media Queries */
@media screen and (max-width: 1280px) {
  .container-fluid {
    padding-left: 32px;
    padding-right: 32px;
  }
  
  .all-provider-section-row2,
  .all-provider-section-col2 {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media screen and (max-width: 992px) {
  .container-fluid {
    padding: 40px 24px;
  }
  
  .trader-row .row > div {
    margin-bottom: 20px;
  }
  
  .trader-row .row > div:last-child {
    margin-bottom: 0;
  }
  
  .trader-copy-btn,
  .btn-b {
    width: 100%;
    max-width: 200px;
  }
}

@media screen and (max-width: 768px) {
  .container-fluid {
    padding: 30px 16px;
  }
  
  .nav-tabs .nav-link {
    padding: 8px 16px;
    font-size: 16px;
  }
  
  .d-flex.flex-wrap.gap-2.mb-3 .btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .trader-name {
    font-size: 18px;
  }
  
  .trader-strategy {
    font-size: 14px;
  }
}

p + h6 {
    margin-top: 0em !important;
}

.row {
    margin-bottom: 0px !important;
}
@media screen and (max-width: 576px) {
  .container-fluid {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .nav-tabs .nav-item {
    flex-shrink: 0;
  }
  
  .d-flex.flex-wrap.align-items-center.gap-3.mb-4 {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .d-flex.flex-wrap.align-items-center.gap-3.mb-4 > div {
    width: 100%;
  }
  
  .dropdown {
    width: 100%;
  }
  
  .dropdown .btn {
    width: 100%;
  }
  
  .trader-logo {
    /*
    width: 60px;
    height: 60px;
      */
  }
}

/* Utility Classes */
.hover-dark:hover {
  filter: brightness(0.85);
}

.hover-bright:hover {
  filter: brightness(1.2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-4 {
  margin-top: 1rem !important;
}

.mb-3 {
  /*margin-bottom: 0.75rem !important;*/
}

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

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

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

.px-5 {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
}

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

.gap-3 {
  gap: 0.75rem !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

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

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

.justify-content-md-start {
  justify-content: flex-start !important;
}

@media (min-width: 768px) {
  .justify-content-md-start {
    justify-content: flex-start !important;
  }
}

.rounded-bottom {
  border-bottom-right-radius: var(--bs-border-radius) !important;
  border-bottom-left-radius: var(--bs-border-radius) !important;
}

.border {
  border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}

.border-top-0 {
  border-top: 0 !important;
}

/* Chart.js Responsive Fix */
canvas {
  max-width: 100%;
  height: auto;
}



/* Sharing Modal Style */
/* Modern Social Share Modal Styles */
#socialShareModal .modal-content {
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#socialShareModal .modal-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

#socialShareModal .modal-body {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

/* Trader Statistics Card */
.trader-stats-card {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    backdrop-filter: blur(2px);
    transition: transform 0.3s ease;
}

.trader-stats-card:hover {
    transform: translateY(-2px);
}

/* Social Share Icons */
.social-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f0f2f5;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-share-icon:hover {
    transform: translateY(-3px);
    background: #e9ecef;
    color: #0d6efd;
}

/* Button hover effects */
#downloadShareImage:hover,
#copyProfileLink:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

#shareCaptureArea span, #shareCaptureArea p, #shareCaptureArea h4, #shareCaptureArea h5{
	color: azure;
}
.display-6 {
	font-size: 1.5rem;
}

.modal-title {
	font-size: 2rem;
}
#qrCodeContainer {
	/*background: white;*/
	padding: 0.5rem;
	border: thin white solid;
	border-radius: 1rem;
	display: inline-flex;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#dynamicQrImage {
	width: 128px;
	height: 128px;
	display: block;
	background: white;
	border-radius: 0.5rem;
}


/* Social Share Modal Styles */
.trader-stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.trader-stats-card:hover {
    transform: translateY(-2px);
}

.social-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-share-icon:hover {
    transform: translateY(-3px);
    background: #e9ecef;
    color: #0d6efd;
}

.social-share-icon i {
    font-size: 1.25rem;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
	border-color: var(--accent-orange);
}

.btn:hover, .btn-primary:hover {
    filter: brightness(1.2);
    background-color: var(--accent-orange);
	border-color: var(--accent-orange);
    color: white;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .trader-stats-card {
        padding: 15px !important;
    }
    
    .social-share-icon {
        width: 38px;
        height: 38px;
    }
    
    .social-share-icon i {
        font-size: 1rem;
    }
}


/*******************************/
/* Quick Search Section Styles */
/*******************************/
.search-result-message {
	min-height: 30px;
	font-size: 0.75rem;
}
.search-result-message.text-danger {
	color: #dc3545 !important;
}
.search-result-message.text-success {
	color: #198754 !important;
}
.search-result-message i {
	margin-right: 4px;
}
#toggleQuickSearch {
	font-size: 0.9rem;
	transition: all 0.3s ease;
}
#toggleQuickSearch:hover {
	background-color: rgba(0,0,0,0.05);
}
#toggleIcon {
	transition: transform 0.3s ease;
}
#toggleIcon.rotated {
	transform: rotate(180deg);
}
.input-group-sm .btn {
	padding: 0.25rem 0.75rem;
}
input#searchByNickname, input#searchByAccount {
  width: 200px !important;
  display: inline-block !important;
  margin-bottom: 0px !important;
}

/* Apply icon via CSS only */
.icon-info::after {
    content: "\F430";      /* Unicode for info-circle-fill [citation:3] */
    font-family: "bootstrap-icons";
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
	color: #0f2c52；
}