/* Reset & basics */
* {
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    margin: 0;
    padding: 20px;
    color: #333;
  }
  
  /* Container */
  .container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
    padding: 30px 40px;
  }
  
  /* Heading */
  h1 {
    font-weight: 700;
    font-size: 2.4rem;
    margin-bottom: 25px;
    color: #111;
    user-select: none;
  }
  
  /* Category color variables */
  :root {
    --color-fitness: #27ae60;
    --color-bibleStudy: #2980b9;
    --color-health: #e67e22;
    --color-techBreak: #9b59b6;
    --color-budget: #f39c12;
    --active-color: var(--color-fitness);
  }
  
  /* Category Tabs */
  .category-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
  }
  .tab-btn {
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 15px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    color: #666;
    transition: background 0.3s, color 0.3s;
    user-select: none;
  }
  .tab-btn:hover {
    color: #000;
    background: #f0f0f0;
  }
  .tab-btn.active {
    color: var(--active-color);
    background: #fff;
    border-bottom: 2px solid var(--active-color);
    font-weight: 700;
    cursor: default;
  }
  
  /* Category Images */
  .category-input img {
    display: block;
    margin: 0 auto 20px;
    filter: grayscale(50%);
    transition: filter 0.3s;
    max-width: 70px;
    user-select: none;
  }
  .category-input img:hover {
    filter: grayscale(0);
  }
  
  /* Input Elements */
  .category-input input[type="text"],
  .category-input input[type="number"],
  .category-input input[type="date"],
  .category-input select,
  .category-input textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 15px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.25s ease;
    resize: vertical;
  }
  .category-input textarea {
    min-height: 100px;
    font-family: 'Courier New', Courier, monospace;
  }
  .category-input input:focus,
  .category-input textarea:focus,
  .category-input select:focus {
    outline: none;
    border-color: var(--active-color);
    background: #fff;
    box-shadow: 0 0 6px var(--active-color);
  }
  
  /* Buttons */
  .btn-primary,
  .btn-secondary {
    background-color: var(--active-color);
    border: none;
    color: white;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    margin-top: 5px;
  }
  .btn-primary:hover {
    background-color: #1e8e4a;
  }
  .btn-secondary {
    background-color: #eee;
    color: #555;
    margin-right: 10px;
  }
  .btn-secondary:hover {
    background-color: #ddd;
  }
  
  /* Fitness Task List */
  .task-list {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 0 4px #f0f0f0;
  }
  .task-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    color: #444;
  }
  .task-list li:last-child {
    border-bottom: none;
  }
  .task-info strong {
    font-weight: 600;
  }
  .task-info em {
    color: #888;
    font-style: normal;
    margin-left: 6px;
    font-size: 0.9rem;
  }
  
  /* Priority Badges */
  .priority-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 8px;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: #eee;
    color: #666;
  }
  .priority-high {
    background-color: #ff6b6b;
    color: white;
  }
  .priority-medium {
    background-color: #f1c40f;
    color: #333;
  }
  .priority-low {
    background-color: #95a5a6;
    color: white;
  }
  
  /* Remove Button */
  .remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    transition: color 0.3s;
  }
  .remove-btn:hover {
    color: #ff6b6b;
  }
  
  /* Fitness Progress */
  #fitnessProgressContainer label {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: #444;
  }
  #fitnessProgressContainer input[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
  }
  #fitnessProgressBar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
  }
  #fitnessProgressBarInner {
    height: 100%;
    width: 0;
    background-color: var(--color-fitness);
    transition: width 0.5s ease;
    border-radius: 10px 0 0 10px;
  }
  #fitnessProgressText {
    text-align: right;
    font-size: 0.9rem;
    margin-top: 4px;
  }
  
  /* Fitness Log */
  #fitnessLogList {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
  }
  #fitnessLogList li {
    background: #fafafa;
    padding: 6px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  /* Labels for Tech Break */
  .category-input label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #555;
    margin-top: 15px;
  }
  
  /* Budget Table */
  #budgetTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  #budgetTable th,
  #budgetTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 0.9rem;
  }
  #budgetTable th {
    background-color: #f0f0f0;
    font-weight: 700;
  }
  #budgetTable button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #c0392b;
    transition: color 0.3s;
  }
  #budgetTable button:hover {
    color: #e74c3c;
  }
  
  /* Budget Summary */
  #budgetSummary {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
  }
  #budgetSummary li {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  /* Notes Section */
  .notes-section {
    margin-top: 30px;
  }
  .notes-section h2 {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  .note-preview {
    padding: 20px;
  }
  