*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

body{
background-color: #efefef;
min-height: 170vh;
width:100%;
color:#111;
}

/*----------------Main content start-------*/

.main-container{
margin-left:55px;
display: grid;
grid-template-rows:30px 1fr;
min-height:180vh;
background-color:#efefef ;
}

main{
display: grid;
grid-template-rows: 10% 40% 39% ;
grid-row-gap:0.5%;
margin:0.6%;
}

/* card base */
.c{
background-color:white;
border-radius:10px;
border-left:8px solid green;
padding:1.5%;
display:flex;
flex-direction:column;
justify-content:center;
}

.c .title{
font-size:0.9rem;
color:#666;
margin-bottom:8px;
}

.c .value{
font-size:1.35rem;
font-weight:700;
color:#111;
}

/* keep existing specific classes to preserve your layout */
.c1, .c2, .c3{
display:grid;
grid-row-gap:12px;
}

/* section 1 layout */
.s1{
display: grid;
grid-template-columns:repeat(3,32%);
grid-column-gap:5px;
padding:0.2%;
}

/* section 2 layout */
.s2{
display: grid;
grid-template-columns:60% 39%;
grid-column-gap:0.5%;
padding: 0.2%;
}

.chart{
background-color:white;
padding:2%;
border-radius:10px;
max-height: 400px;   
overflow-y: auto;    
overflow-x: auto;    
display: block;      
}

/* TABLE WRAPPER */

.chart.table{
width:100%;
max-height:350px;
overflow-y:auto;
background:#f4f6fb;
border:1px solid #e2e8f0;
}

/* TABLE */
.chart.table table{
width:100%;
border-collapse:collapse;
background:#f4f6fb;
color:#334155;
font-size:13px;
}

/* HEADER */
.chart.table thead th{
position:sticky;
top:0;
z-index:10;
background:#ffffff;
color:#8e97a9;
font-weight:500;
text-align:left;
padding:14px 18px;
white-space:nowrap;
border-bottom: 1px solid #e2e8f0;
}

/* ROWS */
.chart.table tbody tr{
background:#ffffff;
transition:.15s;
}

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

.chart.table tbody tr:hover{
background:#eef4ff;
}

/* CELLS */
.chart.table tbody td{
padding:16px 18px;
color:#333;
white-space:nowrap;
border:none; /* removes your old border-bottom */
}

/* DATE COLUMN */
.chart.table tbody td:first-child{
color:#333;
font-weight:500;
}

/* P/L COLORS */
.profit{
color:#6fd37a;
font-weight:600;
}

.loss{
color:#ff6d7d;
font-weight:600;
}

/* SCROLLBAR */
.chart.table::-webkit-scrollbar{
width:6px;
}

.chart.table::-webkit-scrollbar-track{
background:#f1f5f9;
}

.chart.table::-webkit-scrollbar-thumb{
background:#cbd5e1;
border-radius:10px;
}

/* HEADER SHADOW */
.chart.table thead{
box-shadow:0 2px 10px rgba(0,0,0,.05);
}

/* right side stat list */
.note{
display:flex;
flex-direction: column;
justify-content: space-between;
gap:8px;
}

.n{
display:flex;
justify-content: space-between;
align-items:center;
padding:6px 0;
font-size:0.95rem;
}

/* section 3 grid */
.s3{
display: grid;
grid-template-columns:repeat(4, 24%);
grid-template-rows:repeat(3, 1fr);
grid-gap:8px;
margin-left:5px;
}

/* small tweaks for consistency */
.s3 .c{
min-height:70px;
border-left-width:6px;
padding:10px;
}


/*===== NAV CODE START =====*/
nav {
    background: #7e7e7e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    }

    nav h1 {
    font-size: 1.2rem;
    color: #fff;
    }

    .nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    }

    .nav-links i {
    font-size: 1.3rem;
    cursor: pointer;
    }

    .nav-links button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    }

    .nav-links button:hover {
    background: #555;
    }

/*===== NAV CODE END =====*/

/*===SIDEBAR CODE START====*/

aside{
position: fixed;
top:0;
left: 0;
background-color:#202020;
min-height:100vh;
width:55px;
align-items: center;
justify-content: center;
padding-left: 10px;
}

.logo{
padding-bottom:25%;
}

.logo i{
color:blue;
font-size:30px;
font-weight:1000;
}

ul {
list-style: none;
padding: 0;
margin: 0;
}


.list-items ul li a,
.profile ul li a{
color:white;
text-decoration:none;
line-height: 30px;
font-size: 16px;
padding-left: 8px;
}

.profile{
position:absolute;
bottom:0;
}
/*-----------------sidebar end----------------------*/

/* responsiveness */
@media (max-width: 980px){
.s1{ grid-template-columns:repeat(1, 100%);}
.s2{ grid-template-columns:100%;}
.s3{ grid-template-columns:repeat(2, 48%);}
.main-container{ margin-left:60px;}
}

@media (max-width: 520px){
.s3{ grid-template-columns:repeat(1, 100%);}
.main-container{ margin-left:55px;}
}
