  body {
    font-family: Segoe UI, sans-serif;
    background: #f4f7fb;
    margin: 10px;
  }

 .table-container {
    width: 80%;
    max-width: 900px;
    overflow-x: auto;
    margin: 20px auto;
    
  }

  table {
    width: 100%;
    border-collapse: collapse;
 
    font-size: 15px;
    color: #333;
    background: white;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    border-radius: 6px;
    min-width: 300px;
    font-weight: bold;
  }

  thead {
    background: #6a0dad;
    color: white;
  }

  tbody tr:nth-child(even) { background: #f9f9f9; }
  tbody tr:hover { background: #e6f2ff; }

  th, td {
      
    padding: 10px 12px;
   
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    word-break: break-word;
  }
  



  .sno {   width: 40px; text-align: left;}
  .rno {   width: 70px;  text-align: left;}
  .rname {   width: 200px;  }
  .time {   width: 80px; text-align: center; }
  .start1 { width: 80px; text-align: center; }



  th {
    background-color: #b479ed;
    color: white;
    font-weight: bold;
        border-radius: 3px;
  }



  .title {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  color: #6a0dad;
  background: linear-gradient(to right, #f3e8ff, #ffffff);
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(106, 13, 173, 0.2);
  width: fit-content;
  margin: 20px auto;
  letter-spacing: 1px;
}



.back-btn {
  display: block;
  margin: 0 auto 25px;
  background-color: #6a0dad;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.back-btn:hover {
  background-color: #8b27e0;
  transform: scale(1.05);
}


 .scroll-btn {position: fixed;right: 15px;width: 45px; height: 45px; border-radius: 50%;border: 1px solid #999; background: rgba(255, 255, 255, 0.2); color: #333;
      font-size: 20px; backdrop-filter: blur(4px); transition: 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.2);}
    .scroll-btn:hover {  background: rgba(255, 255, 255, 0.4); transform: scale(1.1); }
       #up { bottom: 70px; }
      #down { bottom: 15px; }
      










  /* Mobile adjustments */
  @media (max-width: 600px) {
    .table-container {
     width: 95%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    table {
        
      font-size: 11px;
      min-width: 200px; /* Keep columns visible by scrolling instead of stacking */
    }

 .sno {   width: 25px; }
  .rno {   width: 35px;  }
  .rname {   width: 100px;  }
  .time {   width: 55px; }
  .start1 { width: 45px; }


    th, td {
      padding: 4px 5px;
    }
    
      th {
    background-color: #b479ed;
    color: white;
    font-weight: bold;
    border-radius: 3px;
  }
    
 
    
    
  }