@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html{
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    max-width: 100%;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FFFFFF;
}
::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ---------------------------------- Laptops and Desktops ------------------------- */

@media (min-width: 1400px){

.max-width{
    max-width: 3000px;
    margin: auto;
    min-width:inherit;
}

section .title{
  position: relative;
  text-align: center;
  color: #000000;
  font-size: 40px;
  font-weight: 500;
  margin-top: 5%;
  font-family: 'Ubuntu', sans-serif;
}

.fre{
  display: flex;
  color: #000000; /* Color of Name, and moving text in first page*/
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Ubuntu', sans-serif;
}

.fill1 {
  position: relative;
  margin-top: 10%;
  margin-bottom: 10%;
  top: 0%;
  left: 0%;
  transform: translate(-50%, -50%);
  float: left;
}

.fill1 {
  position: relative;
  margin-top: 10px;
}

.radio-container {
  display: flex;
  align-items: center;
}

.form {
  margin-right: 20px;
}

input[type="radio"] {
  margin-right: 5px;
}


/* Matrix Styles */
.matrix {
  border-collapse: collapse;
  margin: 20px 0;
  font-family: 'Courier New', Courier, monospace;
}

.matrix td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: center;
}

.matrix tr:nth-child(even) {
  background-color: #f2f2f2;
}

.matrix tr:hover {
  background-color: #e6e6e6;
}


}

/* ----------------------------------------- Big Tabs ------------------------------------------ */

@media (max-width: 1200px) and (min-width: 768px){

  
.max-width{
    max-width: 1024px;
    padding: 0 40px;
    margin: auto;
}
  
section .title{
  position: relative;
  text-align: center;
  color: #000000;
  font-size: 40px;
  font-weight: 500;
  margin-top: 10%;
  width: 80%;
  font-family: 'Ubuntu', sans-serif;
}
  
.fre{
  display: flex;
  color: #000000; /* Color of Name, and moving text in first page*/
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Ubuntu', sans-serif;
}
  
.fill1 {
    position: relative;
    margin-left: 25%;
    margin-top: 20%;
    top: 0%;
    left: 0%;
    transform: translate(-50%, -50%);
    float: left;
}

.form1{
  position: relative;
  margin-left: -20%;
  margin-top: 30%;
  margin-bottom: 20%;
}

.figureLast{
    margin-left: -30%;
}
  
}

/* ----------------------------------------- Small Tabs ------------------------------------------ */

@media (max-width: 768px) and (min-width: 720px){

  
.max-width{
  max-width: 1024px;
  padding: 0 40px;
  margin: auto;
}

section .title{
position: relative;
text-align: center;
color: #000000;
font-size: 40px;
font-weight: 500;
margin-top: 10%;
font-family: 'Ubuntu', sans-serif;
}

.fre{
display: flex;
color: #000000; /* Color of Name, and moving text in first page*/
background-size: cover;
background-attachment: fixed;
font-family: 'Ubuntu', sans-serif;
}

.fill1 {
  position: relative;
  margin-left: 25%;
  margin-top: 20%;
  top: 0%;
  left: 0%;
  transform: translate(-50%, -50%);
  float: left;
}

.form1{
  position: relative;
  margin-left: 20%;
  margin-top: 30%;
  margin-bottom: 20%;
}

.figureLast{
  margin-left: 0%;
}

}

/* ----------------------------------------------- Large Phones ---------------------------------- */

@media (max-width: 1000px) and (min-width: 420px){

  
.max-width{
    max-width: 1000px;
    margin: auto;
}
  
section .title{
  position: relative;
  text-align: center;
  color: #000000;
  font-size: 40px;
  font-weight: 500;
  margin-top: 10%;
  width: 80%;
  font-family: 'Ubuntu', sans-serif;
}
  
.fre{
  display: flex;
  color: #000000; /* Color of Name, and moving text in first page*/
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Ubuntu', sans-serif;
}

.fill1 {
    position: relative;
    margin-left: 35%;
    margin-top: 20%;
    top: 0%;
    left: 0%;
    transform: translate(-50%, -50%);
    float: left;
}

.form1{
  position: relative;
  margin-left: 20%;
  margin-top: 30%;
  margin-bottom: 20%;
}

.figureLast{
    margin-left: 0%;
}

}

/* ------------------------------------- Small Phones ------------------------------------ */

@media (max-width: 420px){

  
.max-width{
    max-width: 460px;
    padding: 0 40px;
    margin: auto;
}
 
section .title{
  position: relative;
  text-align: center;
  color: #000000;
  font-size: 40px;
  font-weight: 500;
  margin-top: 10%;
  width: 80%;
  font-family: 'Ubuntu', sans-serif;
}
  
.fre{
  display: flex;
  color: #000000; /* Color of Name, and moving text in first page*/
  background-size: cover;
  background-attachment: fixed;
  font-family: 'Ubuntu', sans-serif;
}

.fill1 {
    position: relative;
    margin-left: 30%;
    margin-top: 20%;
    top: 0%;
    left: 0%;
    transform: translate(-50%, -50%);
    float: left;
}


  
.form1{
  position: relative;
  margin-left: 0%;
  margin-top: 30%;
  margin-bottom: 20%;
}

.figureLast{
    margin-left: 0%;
}
  
}

/* ----------------------------------------- Plot Button -----------------------------------------------------*/

.buttonTotal {
  display: block;
  margin-bottom: 40px;
  font-size: 100%;
  position: relative;
  padding: 10px 20px;
  background-color: #98CB3B;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin-left: 0%;
  margin-top: 10%;
}

.buttonTotal:hover {
  background-color: #2C9AD1;
  transform: scale(1.05);
}

/* ---------------------------------------------------- Tabs -------------------------------------------- */

/* .tab {
  overflow: hidden;
  border: 1px solid #FFFFFF;
  background-color: #FFFFFF;
}

/* Style the buttons inside the tab */
/* .tab button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  font-size: 17px;
} */

/* Change background color of buttons on hover */
/* .tab button:hover {
  background-color: #ddd;
} */

/* Create an active/current tablink class */
/* .tab button.active {
  background-color: #ccc;
  border-style: solid;
  border-radius: 10px;
  border-color: #98CB3B;
  color: #176696;
} */ 



/* ------------------------------------------ Table ------------------------------------ */

table,td,tr {
        padding: 10%;
        border: 3px solid black;
        border-collapse: collapse;
}

th{
  border: 3px solid black;
  background-color: #AAA;
}

/* ------------------------------------------- Image ----------------------------------- */

.expandable-figure {
  max-width: 100%;
  cursor: pointer;
  margin-left: -5%;
  margin-top: 10%;
}

.expanded {
  max-width: none;
}

/* ------------------------------------------- Image ----------------------------------- */


.columns-container {
  display: flex;
  justify-content: space-between;
  margin-top: 20px; /* Adjust as needed */
  flex-wrap: wrap;
  gap: 15px; /* Use gap for consistent spacing */
}
.left-column {
    flex: 1; /* Reduced from 4 to make it smaller */
    background-color: #f0f0f0;
    border: 2px solid #98CB3B;
    border-radius: 10px;
    padding: 20px;
  }
  
  .center-column {
    flex: 2; /* Increased ratio for wider center */
    background-color: #ffffff;
    border: 2px solid #98CB3B;
    border-radius: 10px;
    padding: 20px;
  }
  
  .right-column {
    flex: 1; /* Reduced from 3 to make it smaller */
    background-color: #f0f0f0;
    border: 2px solid #98CB3B;
    border-radius: 10px;
    padding: 20px;
  }

/* TASK2 specific styling */
#TASK2 .right-column {
    flex: 2; /* Wider right column for chart in TASK2 */
}



:root {
    --primary-color: #98CB3B;
    --secondary-color: #2980b9;
    --accent-color: Red;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --text-color: #333;
    --light-text: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}



.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 2.2rem;
    color: black;
}

.header p {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #666;
}



#input-section {
    flex: 1 1 20%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#simulation-section {
    flex: 1 1 50%;
    position: relative;
}
#output-section {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#input-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin-top: 0;
}
.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
label {
    font-weight: 500;
    margin-bottom: 5px;
}
input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
    background-color: #f0f0f0;
}
button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.1s;
    width: 100%;
}
button:hover {
    background-color: var(--secondary-color);
}
button:active {
    transform: translateY(2px);
}
button.accent {
    background-color: var(--accent-color);
}
button.accent:hover {
    background-color: #c0392b;
}
button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.simulation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 450px;
    width: 100%;
    margin: 0 auto 20px;
    overflow: hidden; /* Prevents overflow issues */
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    flex: 1;
    position: relative; /* Add positioning context */
    text-align: center; /* Ensure text is centered */
}

.column-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
    width: 100%; /* Ensure label takes full width */
    text-align: center;
}

.antenna {
    width: 40px;
    height: 50px;
    margin: 7.5px auto; /* Changed from 7.5px 0 to center horizontally */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g stroke='black' stroke-width='5' fill='none' stroke-linecap='round'><circle cx='50' cy='50' r='25'/><circle cx='50' cy='50' r='15'/><circle cx='50' cy='50' r='5'/><line x1='50' y1='75' x2='50' y2='90'/><line x1='35' y1='90' x2='65' y2='90'/></g></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s;
    display: block; /* Ensures block-level behavior */
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: contain; /* Maintains aspect ratio while fitting in container */
}

.simulation-footer {
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.info-block {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}
.info-block p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}
.error-message {
    color: #e74c3c;
    text-align: center;
    font-weight: 500;
    padding: 10px;
    margin: 10px 0;
    display: none;
}

#output-section h3 {
    text-align: center;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}
.matrix-display, .metrics-display {
    margin-bottom: 15px;
    overflow-x: auto;
}
table.matrix {
    border-collapse: collapse;
    margin: 0 auto;
    font-variant-numeric: tabular-nums;
}
table.matrix td {
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    text-align: center;
    min-width: 50px;
    white-space: nowrap; /* This new line prevents content from wrapping */
}
table.matrix th {
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    text-align: center; /* This centers the header text */
    background-color: #f2f2f2; /* Adds a light background to the header */
    font-weight: bold;
    white-space: nowrap; /* This prevents headers like "Capacity (bps/Hz)" from wrapping */
}
.metric-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}
.metric {
    padding: 10px 15px;
    background-color: var(--light-bg);
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    flex-grow: 1;
}
.metric span {
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    font-size: 1.2rem;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    .main-layout {
        flex-direction: column;
    }
    
    .max-width {
        padding: 0 20px;
    }
    
    .columns-container {
      padding: 15px;
      gap: 12px;
    }
    
    .left-column, .right-column {
      margin: 0;
    }
    
    .center-column {
      margin: 0;
    }
}
@media (max-width: 992px) {
  .max-width {
    padding: 0 15px;
  }
  
  .fre {
    padding: 0 5px;
  }
  
  .columns-container {
    flex-direction: column;
    padding: 10px 12px;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .left-column, .center-column, .right-column {
    flex: 1 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 15px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  
  .simulation-container {
    min-height: 400px;
    align-items: center;
    justify-content: center;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
  
  .column {
    align-items: center;
  }
  
  .antenna {
    margin: 7.5px auto; /* Ensure horizontal centering */
  }
}

/* Medium-Large Phones (600px - 768px) */
@media (max-width: 768px) and (min-width: 600px) {
  .max-width {
    padding: 0 12px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .fre {
    padding: 0 8px !important;
  }
  
  .columns-container {
    padding: 10px 12px !important;
    gap: 10px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }
  
  .left-column, .center-column, .right-column {
    padding: 12px !important;
    margin: 0 0 10px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-width: 2px !important;
  }
  
  section .title {
    font-size: 22px;
  }
  
  .simulation-container {
    min-height: 280px;
    justify-content: center;
    align-items: center;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 5px !important;
  }
  
  .column {
    min-height: 250px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .antenna {
    width: 32px;
    height: 38px;
    margin: 5px auto;
  }
  
  button {
    padding: 8px 12px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .info-block {
    padding: 12px;
    margin: 12px 0;
    font-size: 0.9rem;
    border-left-width: 4px;
  }
  
  .info-block p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  input {
    padding: 6px !important;
    font-size: 0.9rem !important;
  }
  
  canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  table.matrix td {
    padding: 4px 6px !important;
    min-width: 35px !important;
    font-size: 0.85rem !important;
  }
  
  table.matrix th {
    padding: 4px 6px !important;
    font-size: 0.85rem !important;
  }
  
  .tab-button {
    padding: 8px 16px;
    font-size: 14px;
    margin: 0 3px;
  }
}

/* Standard Medium Phones (500px - 600px) */
@media (max-width: 600px) and (min-width: 500px) {
  .max-width {
    padding: 0 10px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .fre {
    padding: 0 6px !important;
  }
  
  .columns-container {
    padding: 8px 10px !important;
    gap: 8px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }
  
  .left-column, .center-column, .right-column {
    padding: 10px !important;
    margin: 0 0 8px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-width: 2px !important;
  }
  
  section .title {
    font-size: 20px;
  }
  
  .simulation-container {
    min-height: 250px;
    justify-content: center;
    align-items: center;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 3px !important;
  }
  
  .column {
    min-height: 220px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .antenna {
    width: 30px;
    height: 35px;
    margin: 4px auto;
  }
  
  button {
    padding: 7px 10px;
    font-size: 0.85rem;
    margin-bottom: 7px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  h3 {
    font-size: 1.05rem;
  }
  
  .info-block {
    padding: 10px;
    margin: 10px 0;
    font-size: 0.85rem;
    border-left-width: 4px;
  }
  
  .info-block p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  input {
    padding: 5px !important;
    font-size: 0.85rem !important;
  }
  
  canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  table.matrix td {
    padding: 3px 5px !important;
    min-width: 30px !important;
    font-size: 0.8rem !important;
  }
  
  table.matrix th {
    padding: 3px 5px !important;
    font-size: 0.8rem !important;
  }
  
  .tab-button {
    padding: 7px 14px;
    font-size: 13px;
    margin: 0 2px;
  }
}

/* Small-Medium Phones (400px - 500px) */
@media (max-width: 500px) and (min-width: 400px) {
  .max-width {
    padding: 0 8px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .fre {
    padding: 0 5px !important;
  }
  
  .columns-container {
    padding: 6px 8px !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }
  
  .left-column, .center-column, .right-column {
    padding: 8px !important;
    margin: 0 0 6px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-width: 1.5px !important;
  }
  
  section .title {
    font-size: 19px;
  }
  
  .simulation-container {
    min-height: 220px;
    justify-content: center;
    align-items: center;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 2px !important;
  }
  
  .column {
    min-height: 200px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .antenna {
    width: 28px;
    height: 32px;
    margin: 3px auto;
  }
  
  button {
    padding: 6px 8px;
    font-size: 0.8rem;
    margin-bottom: 6px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  h3 {
    font-size: 1rem;
  }
  
  .info-block {
    padding: 9px;
    margin: 9px 0;
    font-size: 0.8rem;
    border-left-width: 3px;
  }
  
  .info-block p {
    font-size: 0.8rem;
    line-height: 1.35;
  }
  
  input {
    padding: 5px !important;
    font-size: 0.8rem !important;
  }
  
  canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  table.matrix td {
    padding: 2.5px 4px !important;
    min-width: 28px !important;
    font-size: 0.75rem !important;
  }
  
  table.matrix th {
    padding: 2.5px 4px !important;
    font-size: 0.75rem !important;
  }
  
  .tab-button {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 2px;
  }
}

/* Small Phones (300px - 400px) */
@media (max-width: 400px) and (min-width: 300px) {
  .max-width {
    padding: 0 8px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .fre {
    padding: 0 5px !important;
  }
  
  .columns-container {
    padding: 5px 6px !important;
    gap: 5px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }
  
  .left-column, .center-column, .right-column {
    padding: 6px !important;
    margin: 0 0 5px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-width: 1px !important;
  }
  
  section .title {
    font-size: 18px;
  }
  
  .simulation-container {
    min-height: 200px;
    justify-content: center;
    align-items: center;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }
  
  .column {
    min-height: 180px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .antenna {
    width: 26px;
    height: 28px;
    margin: 2.5px auto;
  }
  
  button {
    padding: 5px 7px;
    font-size: 0.75rem;
    margin-bottom: 5px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  h3 {
    font-size: 0.95rem;
  }
  
  .info-block {
    padding: 8px;
    margin: 8px 0;
    font-size: 0.75rem;
    border-left-width: 3px;
  }
  
  .info-block p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  input {
    padding: 4px !important;
    font-size: 0.75rem !important;
  }
  
  canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  table.matrix td {
    padding: 2px 3px !important;
    min-width: 26px !important;
    font-size: 0.7rem !important;
  }
  
  table.matrix th {
    padding: 2px 3px !important;
    font-size: 0.7rem !important;
  }
  
  .tab-button {
    padding: 5px 10px;
    font-size: 11px;
    margin: 0 1px;
  }
}

/* Ultra small screens (below 300px) */
@media (max-width: 300px) {
  .max-width {
    padding: 0 6px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .fre {
    padding: 0 4px !important;
  }
  
  .columns-container {
    padding: 4px 5px !important;
    gap: 4px !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
  }
  
  .left-column, .center-column, .right-column {
    padding: 5px !important;
    margin: 0 0 4px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-width: 1px !important;
  }
  
  section .title {
    font-size: 16px;
  }
  
  .simulation-container {
    min-height: 180px;
    justify-content: center;
    align-items: center;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }
  
  .column {
    min-height: 160px;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .antenna {
    width: 22px;
    height: 24px;
    margin: 2px auto;
  }
  
  button {
    padding: 4px 6px;
    font-size: 0.7rem;
    margin-bottom: 4px;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  h3 {
    font-size: 0.9rem;
  }
  
  .info-block {
    padding: 6px;
    margin: 6px 0;
    font-size: 0.7rem;
    border-left-width: 2px;
  }
  
  .info-block p {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  input {
    padding: 3px !important;
    font-size: 0.7rem !important;
  }
  
  canvas {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  table.matrix td {
    padding: 1.5px 2px !important;
    min-width: 22px !important;
    font-size: 0.65rem !important;
  }
  
  table.matrix th {
    padding: 1.5px 2px !important;
    font-size: 0.65rem !important;
  }
  
  .tab-button {
    padding: 4px 8px;
    font-size: 10px;
    margin: 0 1px;
  }
}

/* Improve matrix display on all screen sizes */
.matrix-display {
  width: 100%;
  overflow-x: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

table.matrix {
  margin: 0 auto;
  font-size: 0.9rem;
}

/* Ensure buttons have proper spacing */
button {
  margin-bottom: 10px;
}

.info-block {
  width: 100%;
  box-sizing: border-box;
}

.tab-button {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-button:hover {
    background-color: #d0d0d0;
}

.tab-button.active {
    background-color: #3498db;
    color: white;
}

/* Tab Container Styles - Replace inline styling with CSS class */
.tab-container {
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #98CB3B;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* ... existing css ... */

/* FIND AND REPLACE the existing .v-content ol styles with this block */

.v-content ol {
    counter-reset: item;
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

.v-content ol li {
    display: block;
    position: relative;
    
    /* Reserve space for the number */
    padding-left: 35px;
    
    margin-bottom: 12px;
    font-size: clamp(0.9rem, 2vw, 1.0rem);
    line-height: 1.6;
    transition: all 0.3s ease;
    
    /* Padding for the highlight background */
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 8px;
    border-radius: 4px;
    border-left: 4px solid transparent;
}

.v-content ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    
    /* Position number absolutely within the padding area */
    position: absolute;
    left: 10px;
    top: 8px;
    
    font-weight: 700;
    color: #98CB3B; /* Green matching the theme */
}

.v-content ol li strong {
    color: #333;
    font-weight: 600;
}

/* New Active Class */
.active-instruction {
    background-color: #f1f8e9; /* Light green background */
    border-left: 4px solid #98CB3B !important; /* Green accent border */
    color: #2e7d32; /* Dark green text */
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

