:root {
    --primary: #27b814;
    --primary-gradient: linear-gradient(90deg, #cf0822, #c21414, #10dac9);
    --secondary: #ee2424;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4caf50;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
  }
  
  body {
    background-color: #ecfdf5;
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
  }

  .dashboard {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    position: relative;
  }

  h1 {
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .search-container {
    margin-bottom: 1rem;
    position: relative;
  }

  .search-container input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
  }

  .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
  }

  .table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    width: 100%;
    overflow-x: auto;
  }

  .table-container::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

  .table-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
  }

  .table-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
  }

  table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  th {
    background: var(--primary-gradient);
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
  }

  th:first-child {
    border-top-left-radius: 8px;
  }

  th:last-child {
    border-top-right-radius: 8px;
  }

  td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  tr:last-child td {
    border-bottom: none;
  }

  tr:hover td {
    background-color: #f0fdfa;
  }

  .completed {
    text-decoration: line-through;
    color: #888;
    background-color: #f8f8f8;
  }

  .btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(20, 184, 166, 0.3);
  }

  .btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 8px rgba(20, 184, 166, 0.4);
  }

  .btn-danger {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
  }

  .btn-danger:hover {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
  }

  .stars {
    display: flex;
    gap: 4px;
    justify-content: center;
  }

  .star {
    color: #ccc;
    font-size: 1.2rem;
  }

  .filled {
    color: #f59e0b;
  }

  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--box-shadow);
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal h2 {
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
  }

  input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Lexend', sans-serif;
  }

  .error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
  }

  .priority-wrapper {
    display: flex;
    gap: 10px;
  }

  .priority-option {
    cursor: pointer;
    color: #ccc;
    font-size: 1.5rem;
  }

  .priority-option.selected {
    color: #f59e0b;
  }

  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
  }

  footer {
    text-align: center;
    padding: 2rem;
    background-color: white;
    margin-top: auto;
    border-top: 1px solid #eee;
  }

  a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-word;
  }

  a:hover {
    text-decoration: underline;
  }

  .status-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .container {
      padding: 0 0.5rem;
      margin: 1rem auto;
    }
    
    .dashboard {
      padding: 1rem;
    }
    
    td, th {
      padding: 0.75rem 0.5rem;
    }
    
    .modal-content {
      padding: 1.5rem;
    }
    
    .btn {
      padding: 0.6rem 1.2rem;
    }
  }
  
  @media (max-width: 480px) {
    h1 {
      font-size: 1.5rem;
    }
    
    .stars {
      flex-direction: row;
    }
    
    .modal-actions {
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .modal-actions .btn {
      width: 100%;
    }
  }

  .field-optional {
    color: #888;
    font-size: 0.8rem;
    margin-left: 0.25rem;
  }

  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
  }

  .empty-state-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
  }

  .empty-state h2 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--secondary);
  }

  .empty-state p {
    color: #666;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
  }
  
  .empty-state .btn {
    margin-top: 1rem;
  }
  
  .pulse-animation {
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
  }
  
  .hidden {
    display: none;
  }