* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
h5{
    font-weight: bold;
}



main {
    flex: 1;
    display: flex;
    padding: 5px;
}

.left-section, .right-section {
    padding: 10px;
}

.left-section {
flex: 3;
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto; /* Adjust for two rows */
gap: 20px;
}

/* New full-width card styling for left section */
.full-width-card {
grid-column: 1 / -1; /* Span across both columns */
}
.right-section {
    flex: 2;
    display: flex;
    align-items: flex-start;
}

.card {
    background-color: #f5f5f5;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    text-align: center;
    position: relative; /* Allow positioning of the canvas */
}
.text-box-container {
display: flex;
justify-content: space-between;
padding: 0 0;
}

.text-box-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 5px;
}

.text-box {
padding: 5px 10px;
background-color: #e9ecef;
border-radius: 4px;
font-weight: bold;
}


.card-large {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 20px;
}

.card-title {
    text-align: center;
    margin-bottom: 20px;
}

footer {
    background-color: #99ceff;
    text-align: center;
    color: #fff;
    color: rgb(137, 2, 2);
}

/* Style for canvas elements */
canvas {
    margin-top: 10px;
    width: 90% !important;  /* Full width of card */
    height: 200px !important; /* Fixed height */
}
#data-table1, #data-table2 {
width: 100%;
border-collapse: collapse; /* Ensures no double borders */
font-family: Arial, sans-serif; /* Optional: Set a font family */
}

#data-table1 th, #data-table2 th,
#data-table1 td, #data-table2 td {
border: 1px solid #ddd; /* Light grey border */
padding: 8px; /* Space within cells */
text-align: left; /* Align text to the left */
}

#data-table1 th, #data-table2 th {
background-color: #f2f2f2; /* Light grey background for header */
color: #000; /* Black text color */
font-weight: bold; /* Bold text */
}

#data-table1 tr:nth-child(even), #data-table2 tr:nth-child(even) {
background-color: #f9f9f9; /* Optional: Add alternating row colors */
}

#data-table1 tr:hover, #data-table2 tr:hover {
background-color: #e0e0e0; /* Optional: Row highlight on hover */
}
.card-header {
display: flex;
flex-direction: column;
align-items: center;
}

.dropdown-container {
display: flex;
justify-content: center;
width: 100%;
}


#loading-spinner {
position: absolute;  /* Position the spinner absolutely inside the card */
top: 50%;
left: 50%;
transform: translate(-50%, -50%);  /* Offset to center exactly */
text-align: center;
display: none;  /* Hidden by default */
}

.spinner {
border: 4px solid #f3f3f3;  /* Light grey */
border-top: 4px solid #3498db;  /* Blue */
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 2s linear infinite;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}



body {
margin: 0;
padding: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
}

section {
min-height: 100vh;
}
.card-header1 {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
padding-bottom: 5px;
background-color: #e0ebeb;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header1 h5 {
margin: 0;
flex-shrink: 0;
/* Prevent the title from resizing */
}

.card-header1 .text-end {
text-align: right;
display: flex;
flex-direction: column; /* Stack the rows in one column */
}

.card-header1 h6 {
margin: 0; /* Remove default margins for better alignment */
font-weight: normal;
font-size: 0.9rem; /* Adjust font size as needed */
}


.toggle-group {
  position: relative;
  display: inline-flex;
  background: #ddd;
  border-radius: 999px;
  overflow: hidden;

  /* Responsive width & height */
  width: 14em;
  height: 2.6em;
  font-size: clamp(12px, 2vw, 16px); /* Scales font size */
}

.toggle-group input {
  display: none;
}

.toggle-group label {
  flex: 1;
  text-align: center;
  line-height: 2.4em; /* same as container height */
  z-index: 2;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
}

.toggle-group .slider {
  position: absolute;
  top: 0.2em; left: 0.2em;
  width: calc(50% - 0.2em);
  height: calc(100% - 0.4em);
  background: #4CAF50;
  border-radius: 999px;
  transition: transform 0.3s ease;
  z-index: 1;
}

/* When RIGHT is selected, move slider */
#right:checked ~ .slider {
  transform: translateX(100%);
}

/* Optional: Highlight active text */
#left:checked + label {
  color: #fff;
}
#right:checked + label + input + label {
  color: #fff;
}