// To Do Chart specific styles
.to-do-chart-container {
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.todo-table-container {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px; // Add margin at the bottom for spacing
  
  .todo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    
    th, td {
      padding: 12px;
      text-align: left;
      border-bottom: 1px solid #ddd;
    }
    
    th {
      background-color: #f2f2f2;
      font-weight: bold;
      position: sticky;
      top: 0;
      z-index: 10;
    }
    
    tr:hover {
      background-color: #f5f5f5;
    }
    
    .c-col {
      width: 50px;
    }
    
    // Add padding at the bottom of the table body
    tbody {
      tr:last-child td {
        padding-bottom: 20px; // Extra padding for the last row
      }
    }
  }
}

.add-todo-section {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding: 20px; // Increased padding all around
  border-top: 1px solid #eee;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
  
  .todo-input {
    flex: 1;
    padding: 12px; // Increased padding for better touch targets
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .add-button {
    white-space: nowrap;
    padding: 12px 20px; // Increased padding for better touch targets
  }
}

.remove-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px; // Increased padding for better touch targets
  border-radius: 3px;
  color: #dc3545;
  
  &:hover {
    background-color: #e0e0e0;
  }
}

.filter-section {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.filter-group {
  margin-bottom: 15px;
  
  h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
  }
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-item {
  flex: 1 1 300px;
  min-width: 250px;
  padding: 10px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.filter-label {
  font-weight: 500;
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
}

.filter-input {
  width: 100%;
  
  .filter-text-input,
  .filter-select,
  .filter-date {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
  }
  
  .filter-select {
    height: 34px;
  }
}

.multiselect-container {
  position: relative;
}

.multiselect-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  min-height: 34px;
  
  .multiselect-label {
    flex: 1;
    font-size: 14px;
  }
  
  .multiselect-value {
    color: #666;
    font-size: 12px;
    margin-right: 8px;
  }
  
  .dropdown-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  
  &:hover {
    border-color: #999;
  }
}

.multiselect-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-height: 200px;
  overflow-y: auto;
  
  .checkbox-group {
    padding: 8px;
    
    .checkbox-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 0;
      
      .checkbox-label {
        margin: 0;
        font-size: 14px;
        cursor: pointer;
      }
    }
  }
}

.date-range {
  .date-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .date-separator {
    margin: 0 5px;
    color: #777;
  }
}

.toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  
  .toggle-label {
    margin: 0;
    font-size: 14px;
    cursor: pointer;
  }
}

.filter-actions {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  
  .btn {
    font-size: 13px;
  }
}

// New header row styling
.header-row {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  
  .chart-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
  }
}

// Responsive design
@media (max-width: 768px) {
  .filter-controls {
    flex-direction: column;
  }
  
  .filter-item {
    min-width: 100%;
  }
  
  .header-row {
    .chart-title {
      font-size: 16px;
    }
  }
  
  .add-todo-section {
    flex-direction: column;
  }
  
  .to-do-chart-container {
    padding: 15px; // Adjust padding for mobile
  }
}