body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
  }
  
  .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.2rem;
  }
  
  h2 {
    color: #34495e;
    font-size: 1.5rem;
    margin: 0;
  }
  
  h3 {
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
  }
  
  .card {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .toggle-btn {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
  }
  
  .toggle-btn:hover {
    color: #3498db;
  }
  
  .value, .status {
    font-size: 18px;
    margin: 8px 0;
  }
  
  .value {
    color: #2c3e50;
  }
  
  .status {
    font-weight: bold;
  }
  
  .status[data-status="Good"],
  .status[data-status="Normal"] {
    color: #27ae60;
  }
  
  .status[data-status="Moderate"] {
    color: #f39c12;
  }
  
  .status[data-status="Bad"],
  .status[data-status="Overheat"],
  .status[data-status="Low"] {
    color: #e74c3c;
  }
  
  .status[data-status="Unknown"] {
    color: #95a5a6;
  }
  
  .graph {
    display: none;
    margin-top: 20px;
    height: 300px;
    background-color: #f9f9f9;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .description {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .description p {
    font-size: 16px;
    color: #34495e;
    margin: 10px 0;
  }
  
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .date-display {
    font-size: 16px;
    font-weight: bold;
    color: #ecf0f1;
  }
  
  .controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  .controls label {
    color: #ecf0f1;
    font-weight: 500;
  }
  
  #date-picker {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #bdc3c7;
    background-color: #ecf0f1;
    color: #2c3e50;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #95a5a6;
    transition: .4s;
    border-radius: 34px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #3498db;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  #mode-label {
    font-weight: bold;
    min-width: 60px;
    color: #ecf0f1;
  }
  
  .history-controls {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: right;
  }
  
  .stats-summary {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .stat-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
  }
  
  .export-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .export-btn:hover {
    background-color: #2980b9;
  }
  
  @media (max-width: 768px) {
    .header {
      flex-direction: column;
      align-items: stretch;
      padding: 15px;
      gap: 15px;
    }
    
    .controls {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      width: 100%;
    }
    
    .controls label {
      width: 100%;
      font-size: 15px;
    }
    
    #date-picker {
      width: 100%;
      padding: 10px;
      box-sizing: border-box;
    }
    
    .switch {
      align-self: flex-start;
      margin-top: 5px;
      width: 50px !important;
    }
    
    #mode-label {
      align-self: flex-start;
    }
    
    .card {
      padding: 18px;
      margin-bottom: 18px;
    }
    
    h1 {
      font-size: 1.8rem;
      margin-bottom: 25px;
    }
    
    h2 {
      font-size: 1.3rem;
    }
    
    .value, .status {
      font-size: 16px;
    }
    
    .graph {
      height: 280px;
    }
    
    .history-controls {
      padding: 15px;
    }
    
    .export-btn {
      width: 100%;
      padding: 12px;
      font-size: 15px;
    }
    
    .stat-item {
      flex-direction: column;
      gap: 5px;
    }
    
    .description {
      padding: 18px;
    }
    
    .description p {
      font-size: 15px;
      line-height: 1.5;
    }
  }
  