
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f8dc;
  padding: 30px;
  color: #333;
}


.title {
  text-align: center;
  color: #2c3e50;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 26px;
}


table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 50px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
  font-size: 14px;
}

th {
  background-color: #00bcd4;
  color: white;
  font-weight: bold;
}

.course-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.day {
  background-color: #b2ebf2;
  font-weight: bold;
}

.code1 { color: #d32f2f; font-weight: bold; }   /* Red */
.code2 { color: #388e3c; font-weight: bold; }   /* Green */
.code3 { color: #1976d2; font-weight: bold; }   /* Blue */
.code4 { color: #f57c00; font-weight: bold; }   /* Orange */
.code5 { color: #7b1fa2; font-weight: bold; }   /* Purple */
.code6 { color: #0288d1; font-weight: bold; }   /* Cyan */
.code7 { color: #c2185b; font-weight: bold; }   /* Pink */
.code8 { color: #512da8; font-weight: bold; }   /* Deep Purple */
.code9 { color: #00796b; font-weight: bold; }   /* Teal */

@media screen and (max-width: 768px) {
  table, thead, tbody, th, td, tr {
    display: block;
  }

  th {
    background-color: #0097a7;
  }

  td {
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
    padding-left: 50%;
    position: relative;
  }

  td::before {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
  }

  .routine-table td::before {
    content: attr(data-label);
  }

  .course-table td::before {
    content: attr(data-label);
  }
}
.code1 {
  background-color: #ffcdd2; 
  font-weight: bold;
}

.code2 {
  background-color: #c8e6c9;  
  font-weight: bold;
}

.code3 {
  background-color: #bbdefb;  
  font-weight: bold;
}

.code4 {
  background-color: #ffe0b2;  
  font-weight: bold;
}

.code5 {
  background-color: #e1bee7;  
  font-weight: bold;
}

.code6 {
  background-color: #b2ebf2;  
  font-weight: bold;
}

.code7 {
  background-color: #f8bbd0;  
  font-weight: bold;
}

.code8 {
  background-color: #d1c4e9;  
  font-weight: bold;
}

.code9 {
  background-color: #b2dfdb;  
  font-weight: bold;
}
