* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
  }
  
  body {
    background: linear-gradient(135deg, #7F00FF, #E100FF);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
  }
  
  .app {
    background: #fff;
    width: 95%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    padding: 25px;
  }
  
  header {
    text-align: center;
    margin-bottom: 20px;
  }
  header h1 { color: #7F00FF; }
  header p { color: #666; }
  
  .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
  }
  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 10px;
  }
  .switch input { display: none; }
  .slider {
    position: absolute;
    cursor: pointer;
    background: #ccc;
    border-radius: 24px;
    top: 0; left: 0; right: 0; bottom: 0;
  }
  .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }
  input:checked + .slider {
    background-color: #7F00FF;
  }
  input:checked + .slider::before {
    transform: translateX(26px);
  }
  
  .task-input {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
  }
  .task-input input, .task-input select {
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #7F00FF;
    flex: 1;
  }
  .task-input button {
    background: #7F00FF;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
  }
  .task-input button:hover { background: #9226FF; }
  
  .progress-container {
    height: 8px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
  }
  .progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7F00FF, #E100FF);
    border-radius: 10px;
  }
  
  ul { list-style: none; }
  li {
    background: #f6f6ff;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  li span { flex: 1; }
  li.done span { text-decoration: line-through; color: #999; }
  
  .tag {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #fff;
  }
  .Work { background: #007bff; }
  .Study { background: #28a745; }
  .Personal { background: #ff9800; }
  .Shopping { background: #e91e63; }
  
  .overdue {
    border-left: 5px solid red;
  }
  
  .actions {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 15px;
  }
  .actions button {
    background: #f0f0ff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
  }
  .actions button:hover {
    background: #e4dbff;
  }
  
  footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
  }
  
  /* Dark Mode */
  body.dark {
    background: #1a1a1a;
    color: #f4f4f4;
  }
  body.dark .app { background: #2c2c2c; color: #f4f4f4; }
  body.dark li { background: #3a3a3a; color: #fff; }
  body.dark .task-input input, body.dark .task-input select {
    border-color: #E100FF; background: #333; color: #fff;
  }
  body.dark .task-input button { background: #E100FF; }
  body.dark .progress-container { background: #444; }
  