body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }
  
  h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  /* Legend Styles */
  .legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 10px;
  }
  
  .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }
  
  /* Table Styles */
  .routine-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  }
  
  .routine-table th,
  .routine-table td {
    border: 1px solid #e0e0e0;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .header-row th {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
  }
  
  .day {
    font-weight: bold;
    background-color: #34495e;
    color: white;
    text-transform: uppercase;
  }
  
  /* Subject Styles */
  .subject {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .subject:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
  }
  
  .subject-content {
    opacity: 0.9;
    transition: opacity 0.3s ease;
  }
  
  .subject:hover .subject-content {
    opacity: 1;
  }
  
  .subject-content h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
  }
  
  .subject-content p {
    margin: 0;
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.7);
  }
  
  /* Break Cell */
  .break-cell {
    writing-mode: vertical-lr;
    text-orientation: upright;
    background: linear-gradient(to bottom, #2c3e50, #3498db);
    color: white;
    font-weight: bold;
    padding: 15px 5px;
    letter-spacing: 3px;
  }
  
  /* Color Schemes */
  .ai-bg,
  .legend .ai {
    background-color: #ff7675;
  }
  
  .web-bg,
  .legend .web {
    background-color: #74b9ff;
  }
  
  .cyber-bg,
  .legend .cyber {
    background-color: #a8e6cf;
  }
  
  .management-bg,
  .legend .management {
    background-color: #ffd3b6;
  }
  
  .design-bg,
  .legend .design {
    background-color: #d4a5ff;
  }
  
  /* Responsive Design */
  @media screen and (max-width: 768px) {
    .container {
      padding: 10px;
    }
  
    .routine-table th,
    .routine-table td {
      padding: 8px;
      font-size: 0.8em;
    }
  
    .subject-content h4 {
      font-size: 0.9em;
    }
  
    .subject-content p {
      font-size: 0.7em;
    }
  
    .legend {
      gap: 10px;
    }
  
    .legend-item {
      font-size: 0.8em;
    }
  }
  
  /* Animation for subjects */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .subject {
    animation: fadeIn 0.5s ease-out;
  }
  
  /* Empty cell styling */
  .routine-table td:empty {
    background-color: #f8f9fa;
  }
  
  /* Additional hover effects */
  .header-row th:hover {
    background-color: #34495e;
  }
  
  .day:hover {
    background-color: #2c3e50;
  }
  
  