*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root{
    --main-color-blue: #121826;
    --secondary-color-blue: #1F2937;
    --button-color-blue: #3ABEFF;
    --very-light-blue: #E5F6FD;
    --secondary-text-color: #94A3B8;


    --font-poppins: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;
}







.statsDashboard .section{
    width: 95%;
    margin: 0 auto 50px;
    padding: 25px 0;
    border-bottom: solid 1px rgba(58, 189, 255, 0.25);
    
}

.statsDashboard .section h2{
    font-size: 1.5rem;
    margin-bottom: 30px;
}


/* Over view grid */
.overview-grid{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;

}

.overview-grid .stat-card-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    width: 100%; 
    gap: 10px;
    flex-wrap: wrap;
}

.overview-grid .stat-card-container > div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}
.overview-grid .stat-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    text-align: center;
}

.stat-card{
    background: #0f1a2b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px;                    
    box-shadow: 0px 3px 10px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}



.statsDashboard h1{
    text-align: center;
    padding: 25px 0 50px;
}


/* ----------- R-Tables Section (Flex Version) ----------- */

.r-tables {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.r-tables .table-container-container{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; 
    padding: 40px 20px;
}

/* Container holding each chart */
.table-container{
    background: #0f1a2b;               /* matches dashboard dark */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px;
    width: 480px;                      /* consistent width → clean layout */
    box-shadow: 0px 3px 10px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}

/* Hover effect to feel interactive */
.table-container:hover, .stat-card:hover {
    transform: translateY(-4px);
}

/* Chart Titles */
.table-container h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Chart Images */
.table-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}








/* Recommendation Section */

.recommendation-container{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}


.recommend-box{
    background: #0f1a2b;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    padding: 20px;
    width: auto;                     
    box-shadow: 0px 3px 10px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}













/* New CSS Code */


.top-lists-grid .top-list-card {
  flex: 1;
  min-width: 320px;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 20px;
}

.mini-table {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-table-head {
  display: flex;
  justify-content: space-between;
  opacity: 0.8;
  font-size: 0.9rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(58, 189, 255, 0.25);
}

.mini-table-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-row {
  display: flex;
  justify-content: space-between;
  opacity: 0.95;
  font-size: 0.95rem;
}

/* --- NEW: Chart cards --- */
.charts-grid .chart-card {
  flex: 1;
  min-width: 320px;
  flex-direction: column;
  align-items: stretch;
}

.chart-card canvas {
  margin-top: 12px;
  width: 100% !important;
  height: 260px !important;
}
