/* brokeree-profile-styles.css */

/* ========== 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;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Mulish', sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.5;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

h3, .strategy-title {
    font-size: var(--font-size-h4);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: var(--font-size-h5);
    font-weight: 700;
    line-height: 1.444;
}

h5 {
    font-size: var(--font-size-body);
    font-weight: 700;
    line-height: 1.563;
}

h6 {
    font-size: var(--font-size-body);
    font-weight: 700;
}

.card-title {
    font-size: var(--font-size-h5);
    font-weight: 700;
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-secondary) !important;
    font-weight: 400;
}

.text-primary {
    color: var(--primary-dark) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

.text-danger {
    color: var(--primary-red) !important;
}

.text-warning {
    color: var(--accent-orange) !important;
}

/* Body text */
p, .text-body {
    font-size: var(--font-size-body);
    font-weight: 400;
    /* color: var(--text-secondary); */  
    line-height: 1.563;
}

/* Caption text */
small, .text-caption {
    font-size: var(--font-size-caption);
    font-weight: 400;
    line-height: 1.75;
}

/* Bold variations */
.text-bold {
    font-weight: 700;
}

/* ========== Components ========== */

/* Back Link */
.back-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: var(--font-size-body);
    font-weight: 400;
}

.back-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white);
}

.card-body {
    padding: 29px;
}

/* Badges */
.badge {
    font-size: var(--font-size-caption);
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

.bg-warning {
    background-color: var(--accent-orange) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

/* Buttons */
.btn {
    font-family: 'Mulish', sans-serif;
    font-size: var(--font-size-body);
    font-weight: 700;
    border-radius: 8px;
    padding: 15px 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
/*
.btn.active {
	background-color: 
	border-color: none;
}
*/
.btn-primary {
    background-color: var(--accent-orange);
    color: white;
}

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

.btn-outline-primary {
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #f8f9fa;
    border-color: var(--border-color);
}

.btn-outline-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: var(--border-color);
}

.btn-sm {
    padding: 9px;
    font-size: var(--font-size-caption);
    border-radius: 4px;
}

/* Light button (for Risk tag) */
.btn-light-tag {
    background-color: var(--light-green-bg);
    color: var(--primary-green);
    padding: 9px;
    border-radius: 4px;
    font-size: var(--font-size-caption);
    font-weight: 400;
    border: none;
}

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

/* Icons */
.bi {
    vertical-align: middle;
}

/* Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    font-size: var(--font-size-body);
    font-weight: 400;
    border: none;
    padding: 10px 20px;
}

.nav-tabs .nav-link.active {
    color: var(--text-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--text-primary);
    background-color: transparent;
}

/* Progress bars */
.progress {
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-green);
    border-radius: 10px;
}

.progress-bar.bg-danger {
    background-color: var(--primary-red) !important;
}

/* Tables */
.table {
    color: var(--text-primary);
}

.table th {
    font-weight: 700;
    font-size: var(--font-size-caption);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.table td {
    border-color: var(--border-color);
    font-weight: 400;
    color: var(--text-secondary);
}

/* List groups */
.list-group-item {
    border-color: var(--border-color);
    padding: 8px 0;
    font-size: var(--font-size-body);
}

.list-group-item .text-muted {
    font-weight: 400;
}

/* Form controls */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-family: 'Mulish', sans-serif;
    font-size: var(--font-size-body);
}

.form-control:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 0.25rem rgba(242, 103, 42, 0.25);
}

/* Charts */
canvas {
    max-width: 100%;
}

/* Avatar circles */
.rounded-circle {
    background-color: var(--primary-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Social sharing button */
.btn-outline-secondary.bi-share {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ========== Utility Classes ========== */
.border-bottom {
    border-bottom: 1px solid var(--border-color) !important;
}

/* Hover effects */
.hover-dark:hover {
    filter: brightness(0.85);
}

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

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    .card-body {
        padding: var(--margin-sm);
    }
    
    .btn {
        padding: 12px 24px;
    }
    
    h3, .strategy-title {
        font-size: var(--font-size-h5);
    }
}

@media (max-width: 576px) {
    :root {
        --font-size-h4: 18px;
        --font-size-h5: 16px;
        --font-size-body: 14px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: var(--font-size-caption);
    }
}

/* Sticky sidebar for right column */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}

/* Calendar specific styles */
.calendar-day {
    height: 80px;
    vertical-align: top;
}

.calendar-day .text-success {
    color: var(--primary-green) !important;
    font-weight: 700;
}

.calendar-day .text-danger {
    color: var(--primary-red) !important;
    font-weight: 700;
}

.calendar-day .text-primary {
    color: var(--primary-dark) !important;
    font-weight: 700;
}

/* Discussion board */
.discussion-avatar {
    width: 35px;
    height: 35px;
    font-size: var(--font-size-caption);
    font-weight: 700;
}

/* Grid items alignment */
.text-center h5 {
    margin-bottom: 0.25rem;
}

/* Ensure proper spacing */
.mb-1 {
    margin-bottom: 0.25rem !important;
}

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

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

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

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

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

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

/* Custom scrollbar for discussion board */
#discussion {
    max-height: 500px;
    overflow-y: auto;
}

#discussion::-webkit-scrollbar {
    width: 6px;
}

#discussion::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#discussion::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

#discussion::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

#copyStrategyBtn {
    padding: 8px !important;
}

.fc-toolbar-title {
	font-size: 18px !important;
}

.fc .fc-col-header-cell-cushion { 
	color: #666;
}

.fc .fc-daygrid-day-number {
	color: #333;
	font-weight: 900;
	/*font-size: 1.2em;*/
}
table.fc-col-header {
	margin: 0 0 0 0 !important;
}
.fc-daygrid-block-event .fc-event-time, .fc-daygrid-block-event .fc-event-title {
	width: 100%;
	text-align: center;
}
/*
.fc-toolbar-title::before {
    content: "PnL Calendar ";
    font-weight: bold;
	
}
*/


/* Loading spinner styles */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Modal loading overlay */
.modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

/* Table row hover effect */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Stat cards in modal */
.modal .border.rounded {
    transition: all 0.2s ease;
}

.modal .border.rounded:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


/* 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;
}

.profit-legend {
	width: 100px;
	display: inline-block;
	background-color: #84bc7d;
}

.loss-legend {
	width: 100px;	
	display: inline-block;
	background-color: #d4817f;
}

/* Calendar Event Styles */
.fc-event-title {
    font-size: 16px !important;    /* Adjust size */
    /*font-weight: bold !important;  /* Make bold */
}





/* Portfolio Chart External Legend Styles */
.portfolio-chart-container {
    margin-top: 1rem;
}

.chart-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-wrapper {
    /*background: #f8f9fa;*/
    border-radius: 8px;
    padding: 12px;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.legend-header {
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.legend-scroll-container {
    flex: 1;
    overflow-y: auto;
    max-height: 240px;
    font-size: 0.8rem;
}

/* Custom scrollbar styling */
.legend-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.legend-scroll-container::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.legend-scroll-container::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.legend-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #6c757d;
}

/* Legend item styles */
.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.legend-item:hover {
    background-color: #e9ecef;
}

.legend-item.highlight {
    background-color: #e2e3e5;
}

.legend-color-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 10px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem;
    color: #495057;
}

.legend-value {
    font-weight: 600;
    font-size: 0.75rem;
    color: #212529;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .legend-wrapper {
        min-height: auto;
    }
    
    .legend-scroll-container {
        max-height: 200px;
    }
    
    .legend-label {
        font-size: 0.7rem;
    }
    
    .legend-value {
        font-size: 0.7rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991.98px) {
    .legend-scroll-container {
        max-height: 260px;
    }
    
    .legend-label {
        font-size: 0.7rem;
    }
}

/* Loading state */
.legend-loading {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}


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