/* ===== GLOBAL DARK THEME ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: #1e2329;
  color: #dde1e7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding-left: 240px;
}

body.no-sidebar {
  padding-left: 0;
}

a { color: #4a9eff; text-decoration: none; }
a:hover { color: #6ab0ff; }

#icon{
	text-decoration: none;
	color: #dde1e7;
}

.page-link{
	color:grey;
}

.page-item{
	color:grey;
}
#figures{
	height:150px;
	width:100%;
	
}
#filter{
	height:80px;

}

#chart_div{
	
  z-index: 900; 

  display: flex;
  justify-content: center;
 
 }  
 
 .tablebeta{
 	
 	width: 100%;
 
 }
.order-container{
	padding-top: 24px;
    margin: 20px;
	padding-bottom: 60px;
}

#systemViewDiv{
	
	display: flex;
  justify-content: center;
  width: 100%;
}
 /* .sortField{
	 height: 30px;
	 width: 30px;
	 } */
	 
/* #mainTable{
	width: 100%;
	
}*/

/* table.table-fit {
  width: auto !important;
  table-layout: auto !important;
}
table.table-fit thead th,
table.table-fit tbody td,
table.table-fit tfoot th,
table.table-fit tfoot td {
  width: auto !important;
} */

table {
      border-collapse: collapse;
      width: 100%;
      z-index: 800; 
     
} 
th, td {
  border: 1px solid #3a4149;
  text-align: left;
  padding: 8px;
  color: #dde1e7;
}

th {
  background: #2b313a;
  color: #9eaab8;
}

tr:hover {
  background-color: #2b313a;
}
#searchFields{
	      border-collapse: collapse;
	      width:100%;
	      
	
}
 
.table th .sortField {
    cursor: pointer; 
} 
.table th{
font-size: 14px;	
padding-left:1px;
text-align: center;
	
}

.sidebar {
  height: 83%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 40px;
  
  Right: 0;
  background-color:white;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 80px;
  
}
.sidebar a:hover {
  color: #f1f1f1;
}

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 30px;
  margin-left: 50px;
  color:black;
  margin-top:30;
}

.sidebar a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}


 #sidepanelContent {
    padding: 20px;
  }
textarea {
	margin-left:20px;
	margin-right:20px;
	background-color: #dddddd;
    width: 310px;
    height: 100px;
    resize: none;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
  }
#saveButton {
	margin-left:20px;
    background-color: #dddddd;
    color: black;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
#notes-updated {
  display: none;
}
 
#notes-updated.show {
  display: block;
}
/* #header legacy — replaced by .site-nav below */
/*  login page style*/
.login-container { 
			width: 290px; 
			height: 250px; 
			background: #fff; 
			box-shadow: 0 10px 15px rgba(179, 179, 179, 0.7); 
			position: absolute; 
			top: 50%; 
			left: 50%; 
			transform: translate(-50%, -50%); 
			border-radius: 7px; 
			display: flex; 
			flex-direction: column; 
			justify-content: space-evenly; 
			padding: 1rem; 
		} 
#logo{
   			 display: flex;
   			 margin-left:30%;
   			 margin-right:50%;
		
}
/* ===== FOOTER ===== */
.footer-body { margin: 0; padding: 0; }

.footer-container {
  position: fixed;
  bottom: 0;
  left: 240px;
  width: calc(100% - 240px);
  z-index: 900;
  background: #1e2329;
  border-top: 1px solid #3a4149;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 24px;
  font-size: 13px;
}

.footer-link {
  color: #9eaab8;
  transition: color 0.15s;
}

.footer-link:hover { color: #dde1e7; }

.footer-divider { color: #4a5260; }

.footer-copy { color: #6b7685; }
/* ===== SIDEBAR NAV (Instagram-style) ===== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #1e2329;
  border-right: 1px solid #3a4149;
  display: flex;
  flex-direction: column;
  padding: 8px 12px 16px;
  z-index: 900;
  overflow-y: auto;
}

.side-nav-logo {
  padding: 16px 12px 20px;
}

.side-nav-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.side-nav-logo img { border-radius: 6px; }

.side-nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: #f0f4f8;
  letter-spacing: -0.3px;
}

.side-nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #dde1e7;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.side-nav-link i {
  font-size: 22px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.side-nav-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.side-nav-link.active {
  font-weight: 700;
  color: #fff;
}

.side-nav-link.active i {
  color: #fff;
}

.side-nav-signup {
  background: #238636;
  color: #fff !important;
  border: 1px solid rgba(63,185,80,0.35);
  margin-top: 4px;
}

.side-nav-signup:hover { background: #2ea043 !important; }

.side-nav-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid #3a4149;
  margin-top: 12px;
}

.side-nav-auth {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: #9eaab8;
  overflow: hidden;
}

.side-nav-user i {
  font-size: 22px;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
  color: #6b7685;
}

.side-nav-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#logout-button { margin: 0; }




/*  monthlyreturns style*/
#monthlyreturns {
	display: flex;
	justify-content: center;
	align-items: center;
	
}



.box {
	margin-right: 10px;
	width: 195px;
	height: 60px;
	border: 1px solid black;
	background-color: white;
	margin: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
	
	
}


 .popover {
            max-width: none; /* Allow custom width */
            width: 800px; /* Set your custom width */
        }
        .popover-body {
            padding: 0;
        }
        #chartContainer {
            width: 100%;
            height: 400px; /* Set the desired height for the chart */
        }
        
        
.bottom-info-bar {
    margin-bottom:30px;
   
    width: 100%;
    background-color: #E6E6E6;
    color: black; 
    display: flex;
    justify-content: center; 
    padding: 10px 0; /* Padding for some space */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Slight shadow for effect */
    z-index: 1000; /* Ensure it stays on top */
}

.bottom-info-bar span {
    margin: 0 20px 0 0;  /* Space between items */
    font-size: 16px; /* Adjust font size */
    font-weight: normal; /* Bold text */
}
#chartContainer {
    position: relative;
    width: 100%; /* Ensures the chart takes full width of the container */
    height: 400px; /* Set a fixed height for the chart */
    overflow: hidden; /* Hide any overflow */
}

/* blog user view styling 
 */
#blog-navbar {
	background-color: #ADD8E6
}

#search_container {
	width: 100%;
	max-width: 800px;
	margin-left: auto; /* Center the table */
	margin-right: auto; /* Center the table */
}

.close-comment {
	margin-bottom: 10px; /* Add some space below the button */
}

.btn-read-more {
	background-color: #007bff;
	color: white;
	border-radius: 5px;
	transition: background-color 0.3s;
}

.btn-read-more:hover {
	background-color: #0056b3;
}
.user_blog_pagination{
	
	margin-bottom : 100px;
}




#stock_container{
	margin-top: 24px;
	margin-bottom: 90px;
}
#myDiv{
	
	margin-bottom: 10px;
}

.comma::after {
    content: ', ';
}
----

#equity_chart_div,
#column_chart_div {
  max-width: 800px;
  width: 100%;
height: calc(100vh - 200px)  margin: auto;
}

#column_chart_div {
  max-width: 800px;
  width: 100%;
  height: 400px; /* Adjust height as needed */
  margin: auto;
}

-----------

/* ======================================================
   FEED v2 — Instagram-inspired dark trading feed
   ====================================================== */

body.feed-page {
  background: #1e2329;
  color: #dde1e7;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.feed-wrapper {
  max-width: 990px;
  margin: 24px auto 60px 32px;
  padding: 0 12px;
}

.feed-loader {
  text-align: center;
  padding: 28px;
  color: #6b7685;
  font-size: 14px;
  letter-spacing: 0.3px;
}

/* ---- Post Card ---- */
.post-card {
  background: #2b313a;
  border: 1px solid #3a4149;
  border-radius: 16px;
  margin-bottom: 28px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.post-card:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.5);
}

/* ---- Card Header ---- */
.post-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #343b44;
}

.post-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d9bf0 0%, #0052cc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.post-meta {
  flex: 1;
  min-width: 0;
}

.post-symbol {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #f0f4f8;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-name-label {
  display: block;
  font-size: 12px;
  color: #9eaab8;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-status-badge {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.post-status-badge.win    { background: rgba(63,185,80,0.12);  color: #3fb950; border: 1px solid rgba(63,185,80,0.3); }
.post-status-badge.loss   { background: rgba(248,81,73,0.12);  color: #f85149; border: 1px solid rgba(248,81,73,0.3); }
.post-status-badge.active { background: rgba(210,153,34,0.12); color: #d29922; border: 1px solid rgba(210,153,34,0.3); }

/* ---- Chart ---- */
.post-chart-wrap {
  background: #1e2329;
  border-bottom: 1px solid #343b44;
}

.post-chart {
  width: 100%;
  height: 300px;
}

/* ---- Stats Row ---- */
.post-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #343b44;
  border-bottom: 1px solid #343b44;
}

.post-stat {
  padding: 11px 10px;
  background: #2b313a;
  text-align: center;
}

.post-stat-label {
  display: block;
  font-size: 10px;
  color: #6b7685;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.post-stat-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #dde1e7;
}

.post-stat-value.bull   { color: #3fb950; }
.post-stat-value.bear   { color: #f85149; }
.post-stat-value.win    { color: #3fb950; }
.post-stat-value.loss   { color: #f85149; }
.post-stat-value.active { color: #d29922; }

/* ---- Dates Row ---- */
.post-dates {
  display: flex;
  gap: 20px;
  padding: 9px 16px;
  border-bottom: 1px solid #343b44;
  font-size: 12px;
  color: #9eaab8;
}

.post-dates span { display: flex; align-items: center; gap: 5px; }
.post-dates i { font-size: 11px; color: #6b7685; }

/* ---- Notes ---- */
.post-notes {
  padding: 13px 16px;
  font-size: 14px;
  color: #dde1e7;
  line-height: 1.55;
  border-bottom: 1px solid #343b44;
}

.post-notes.empty {
  color: #6b7685;
  font-style: italic;
  font-size: 13px;
}

/* ---- Action Bar ---- */
.post-actions {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  gap: 2px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #9eaab8;
  font-size: 15px;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.action-btn:hover {
  background: rgba(255,255,255,0.06);
  color: #f0f4f8;
}

.action-btn .like-count {
  font-size: 13px;
  font-weight: 500;
}

.action-btn.liked         { color: #f85149; }
.action-btn.liked:hover   { background: rgba(248,81,73,0.08); }
.action-btn.bookmarked       { color: #d29922; }
.action-btn.bookmarked:hover { background: rgba(210,153,34,0.08); }

.action-btn.ml-auto { margin-left: auto; }

/* ---- Comment Section ---- */
.post-comment-section {
  display: none;
  padding: 12px 16px;
  border-top: 1px solid #343b44;
}

.comment-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-text-input {
  flex: 1;
  padding: 9px 15px;
  border-radius: 20px;
  border: 1px solid #3a4149;
  background: #1e2329;
  color: #dde1e7;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.comment-text-input::placeholder { color: #6b7685; }
.comment-text-input:focus { border-color: #4a9eff; }

.comment-post-btn {
  padding: 9px 18px;
  border-radius: 20px;
  border: none;
  background: #1d9bf0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  white-space: nowrap;
}

.comment-post-btn:hover { background: #1a8cd8; }

.comment-list {
  max-height: 220px;
  overflow-y: auto;
}

.comment-item {
  padding: 8px 0;
  border-bottom: 1px solid #343b44;
  font-size: 13px;
  color: #dde1e7;
  line-height: 1.45;
}

.comment-item:last-child { border-bottom: none; }
/* FORCE GOOGLE CANDLESTICK COLORS */

.google-visualization-candlestick-rising path {
    fill: #0f9d58 !important;
    stroke: #0f9d58 !important;
}

.google-visualization-candlestick-falling path {
    fill: #a52714 !important;
    stroke: #a52714 !important;
}
/* FIX BOOTSTRAP POPOVER FOR CHARTS */
.popover {
    max-width: none !important;
    width: auto !important;
}

.popover-body {
    padding: 0 !important;
}
/* FORCE SYSTEM VIEW TO ALIGN WITH MAIN CONTENT */
/* OUTER CENTERING CONTAINER
#systemViewContainer {
  width: 1200px;
  margin: 0 auto;
}

#systemViewDiv {
  width: 1200px;
  height: 420px;
}
*/
#equity_chart_div,
#column_chart_div,
#systemViewDiv {
    width: 100%;
    max-width: 1170px;
    height: 400px;
    margin: 20px auto;
    position: relative;
}

/* ===== BLOG PAGE ===== */
.blog-wrapper {
  max-width: 990px;
  margin: 24px auto 80px 32px;
  padding: 0 16px;
}

.blog-page-title {
  font-size: 22px;
  font-weight: 700;
  color: #f0f4f8;
  margin-bottom: 20px;
}

.blog-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.blog-search-input {
  flex: 1;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid #3a4149;
  background: #2b313a;
  color: #dde1e7;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.blog-search-input::placeholder { color: #6b7685; }
.blog-search-input:focus { border-color: #4a9eff; }

.blog-search-btn {
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid #3a4149;
  background: #2b313a;
  color: #dde1e7;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.blog-search-btn:hover { background: #343b44; color: #f0f4f8; }

/* Blog card */
.blog-card {
  background: #2b313a;
  border: 1px solid #3a4149;
  border-radius: 14px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.blog-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.45); }

.blog-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 10px;
}

.blog-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #f0f4f8;
  margin: 0;
  line-height: 1.4;
}

.blog-card-date {
  font-size: 12px;
  color: #6b7685;
  white-space: nowrap;
  margin-top: 3px;
}

.blog-card-body {
  padding: 0 20px 14px;
  font-size: 14px;
  color: #9eaab8;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid #343b44;
  font-size: 12px;
  color: #9eaab8;
}

.blog-card-meta i { color: #6b7685; margin-right: 4px; }

.blog-meta-link { color: #4a9eff; }
.blog-meta-link:hover { color: #6ab0ff; }

.blog-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid #343b44;
}

.blog-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: all 0.15s;
}

.blog-btn-read {
  background: #238636;
  color: #fff;
  border-color: rgba(63,185,80,0.4);
}

.blog-btn-read:hover { background: #2ea043; color: #fff; }

.blog-btn-like, .blog-btn-comment, .blog-btn-share {
  background: transparent;
  color: #9eaab8;
  border-color: #3a4149;
}

.blog-btn-like:hover   { color: #f85149; border-color: rgba(248,81,73,0.4); background: rgba(248,81,73,0.06); }
.blog-btn-comment:hover { color: #4a9eff; border-color: rgba(88,166,255,0.4); background: rgba(88,166,255,0.06); }
.blog-btn-share:hover  { color: #3fb950; border-color: rgba(63,185,80,0.4); background: rgba(63,185,80,0.06); }

/* Blog comment section */
.blog-comment-section {
  padding: 14px 20px;
  border-top: 1px solid #343b44;
}

.blog-comment-input {
  width: 100%;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #3a4149;
  background: #1e2329;
  color: #dde1e7;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  outline: none;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

.blog-comment-input::placeholder { color: #6b7685; }
.blog-comment-input:focus { border-color: #4a9eff; }

.blog-comment-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-comment-item {
  padding: 8px 0;
  border-bottom: 1px solid #343b44;
  font-size: 13px;
}

.blog-comment-item:last-child { border-bottom: none; }

.blog-comment-user {
  font-size: 11px;
  color: #6b7685;
  display: block;
  margin-bottom: 3px;
}

.blog-comment-text {
  color: #dde1e7;
  margin: 0;
  line-height: 1.5;
}

/* Blog pagination */
.blog-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.blog-page-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #3a4149;
  background: #2b313a;
  color: #9eaab8;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}

.blog-page-btn:hover { background: #343b44; color: #f0f4f8; }
.blog-page-btn.current { background: #238636; color: #fff; border-color: rgba(63,185,80,0.4); }
.blog-page-btn.disabled { opacity: 0.35; pointer-events: none; }

/* ===== DARK FORMS (global) ===== */
input[type="text"], input[type="email"], input[type="password"],
input[type="search"], input[type="number"], select, textarea {
  background: #2b313a;
  color: #dde1e7;
  border: 1px solid #3a4149;
  border-radius: 6px;
}

select option { background: #2b313a; color: #dde1e7; }

/* ===== DARK TABLES (override bootstrap) ===== */
.table { color: #dde1e7 !important; }
.table thead th { background: #2b313a !important; color: #9eaab8 !important; border-color: #3a4149 !important; }
.table td, .table th { border-color: #3a4149 !important; }
.table-striped tbody tr:nth-of-type(odd) { background: rgba(255,255,255,0.02) !important; }
.table-hover tbody tr:hover { background: #2b313a !important; }

/* ===== DARK BOOTSTRAP OVERRIDES ===== */
.card { background: #2b313a !important; border-color: #3a4149 !important; color: #dde1e7 !important; }
.card-body { color: #dde1e7 !important; }
.text-muted { color: #9eaab8 !important; }
.bg-light { background: #1e2329 !important; }
.btn-primary { background: #238636 !important; border-color: #2ea043 !important; }
.btn-primary:hover { background: #2ea043 !important; }
.btn-outline-primary { color: #4a9eff !important; border-color: #4a9eff !important; }
.btn-outline-primary:hover { background: rgba(88,166,255,0.1) !important; }
.form-control {
  background: #2b313a !important;
  color: #dde1e7 !important;
  border-color: #3a4149 !important;
}
.form-control::placeholder { color: #6b7685 !important; }
.form-control:focus { border-color: #4a9eff !important; box-shadow: 0 0 0 3px rgba(88,166,255,0.15) !important; }
.pagination .page-link { background: #2b313a !important; color: #9eaab8 !important; border-color: #3a4149 !important; }
.pagination .page-item.active .page-link { background: #238636 !important; border-color: #2ea043 !important; color: #fff !important; }
.pagination .page-item.disabled .page-link { opacity: 0.4 !important; }
