/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
  }
  
  body {
    background: #f9fafb;
    color: #111;
    transition: background 0.3s, color 0.3s;
  }
  
  /* Dark Mode */
  body.dark {
    background: #1a1a1a;
    color: #f0f0f0;
  }
  body.dark .form-container,
  body.dark .progress-container,
  body.dark .navbar {
    background: #2a2a2a;
    color: #f0f0f0;
  }
  body.dark input,
  body.dark textarea,
  body.dark select {
    background: #333;
    color: #fff;
    border: 1px solid #555;
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: #fff;
    border-bottom: 1px solid #eee;
  }
  body.dark .navbar {
    background: #222;
    border-bottom: 1px solid #444;
  }
  .logo {
    height: 32px;
  }
  #darkModeToggle {
    padding: 8px 12px;
    border: none;
    background: #4cafef;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
  }
  #darkModeToggle:hover {
    background: #3b8fd8;
  }
  
  /* Main Layout */
  .container {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
  }
  
  /* Left Form */
  .form-container {
    flex: 2;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  .form-container h2 {
    margin-bottom: 20px;
    font-size: 22px;
  }
  .autofill-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  .autofill-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
  }
  .autofill-box button {
    background: #4cafef;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: 0.3s;
  }
  .autofill-box button:hover {
    background: #3b8fd8;
  }
  form label {
    display: block;
    margin: 15px 0 5px;
    font-size: 14px;
    font-weight: 600;
  }
  form input, form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
  }
  .save-btn {
    margin-top: 20px;
    padding: 12px;
    background: #16a34a;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
  }
  .save-btn:hover {
    background: #15803d;
  }
  
  /* Custom Category Dropdown */
  select[multiple] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    height: auto;
    min-height: 45px;
    background: #fff;
    cursor: pointer;
  }
  select[multiple]:focus {
    outline: none;
    border-color: #4cafef;
  }
  select[multiple] option {
    padding: 8px;
    border-radius: 6px;
    margin: 2px;
  }
  body.dark select[multiple] {
    background: #333;
    color: #fff;
    border: 1px solid #555;
  }
  
  /* Right Progress */
  .progress-container {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-left: 20px;
  }
  .progress-bar {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
  }
  #progressFill {
    height: 100%;
    width: 0%;
    background: #16a34a;
    transition: width 0.4s ease-in-out;
  }
  #progressPercent {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  #progressChecklist {
    list-style: none;
    margin-top: 20px;
  }
  #progressChecklist li {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
  }
  #progressChecklist li span {
    margin-right: 8px;
    font-weight: bold;
  }
  
  /* Popup Modal */
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
  }
  .hidden {
    display: none;
  }
  .popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transform: scale(0.9);
    animation: zoomIn 0.3s ease-in-out forwards;
  }
  body.dark .popup-content {
    background: #2a2a2a;
    color: #fff;
  }
  .popup-content h2 {
    margin-bottom: 15px;
    font-size: 22px;
    color: #16a34a;
  }
  .popup-content p {
    margin: 8px 0;
    font-size: 14px;
  }
  .popup-content a {
    color: #4cafef;
    text-decoration: none;
  }
  .popup-content button {
    margin-top: 20px;
    padding: 10px 15px;
    background: #4cafef;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
  }
  .popup-content button:hover {
    background: #3b8fd8;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0.8; }
    to { transform: scale(1); opacity: 1; }
  }
  